ScummVM API documentation
TinyGL::FrameBuffer Struct Reference

Public Member Functions

 FrameBuffer (int width, int height, const Graphics::PixelFormat &format, bool enableStencilBuffer)
 
Graphics::PixelFormat getPixelFormat ()
 
byte * getPixelBuffer ()
 
int getPixelBufferWidth ()
 
int getPixelBufferHeight ()
 
int getPixelBufferPitch ()
 
int getPixelBufferBpp ()
 
const uint * getZBuffer ()
 
Graphics::SurfacecopyFromFrameBuffer (const Graphics::PixelFormat &dstFormat)
 
void getSurfaceRef (Graphics::Surface &surface)
 
FORCEINLINE void writePixel (int pixel, byte aSrc, byte rSrc, byte gSrc, byte bSrc)
 
void clear (int clear_z, int z, int clear_color, int r, int g, int b, bool clearStencil, int stencilValue)
 
void clearRegion (int x, int y, int w, int h, bool clearZ, int z, bool clearColor, int r, int g, int b, bool clearStencil, int stencilValue)
 
void setScissorRectangle (const Common::Rect &rect)
 
void resetScissorRectangle ()
 
void enableBlending (bool enable)
 
void setBlendingFactors (int sFactor, int dFactor)
 
void enableAlphaTest (bool enable)
 
void setAlphaTestFunc (int func, int ref)
 
void enableDepthTest (bool enable)
 
void setDepthFunc (int func)
 
void enableDepthWrite (bool enable)
 
void enableStencilTest (bool enable)
 
void setStencilWriteMask (uint stencilWriteMask)
 
void enablePolygonStipple (bool enable)
 
void setPolygonStipplePattern (const byte *stipple)
 
void setStencilTestFunc (int stencilFunc, int stencilValue, uint stencilMask)
 
void setStencilOp (int stencilSfail, int stencilDpfail, int stencilDppass)
 
void setOffsetStates (int offsetStates)
 
void setOffsetFactor (float offsetFactor)
 
void setOffsetUnits (float offsetUnits)
 
void setTexture (const TexelBuffer *texture, uint wraps, uint wrapt)
 
void setTextureSizeAndMask (int textureSize, int textureSizeMask)
 
void setFogEnabled (bool enable)
 
void setFogColor (float colorR, float colorG, float colorB)
 
void fillTriangleTextureMappingPerspectiveSmooth (ZBufferPoint *p0, ZBufferPoint *p1, ZBufferPoint *p2)
 
void fillTriangleTextureMappingPerspectiveFlat (ZBufferPoint *p0, ZBufferPoint *p1, ZBufferPoint *p2)
 
void fillTriangleDepthOnly (ZBufferPoint *p0, ZBufferPoint *p1, ZBufferPoint *p2)
 
void fillTriangleFlat (ZBufferPoint *p0, ZBufferPoint *p1, ZBufferPoint *p2)
 
void fillTriangleSmooth (ZBufferPoint *p0, ZBufferPoint *p1, ZBufferPoint *p2)
 
void plot (ZBufferPoint *p)
 
void fillLine (ZBufferPoint *p1, ZBufferPoint *p2)
 
void fillLineZ (ZBufferPoint *p1, ZBufferPoint *p2)
 

The documentation for this struct was generated from the following file: