ScummVM API documentation
Twp::Gfx Class Reference

Public Member Functions

void init ()
 
void camera (const Math::Vector2d &size)
 
Math::Vector2d camera () const
 
Math::Vector2d cameraPos () const
 
void cameraPos (const Math::Vector2d &pos)
 
ShadergetShader ()
 
void use (Shader *shader)
 
void setRenderTarget (RenderTexture *target)
 
void clear (const Color &color)
 
void drawPrimitives (uint32 primitivesType, Vertex *vertices, int v_size, const Math::Matrix4 &transf=Math::Matrix4(), Texture *texture=NULL)
 
void drawPrimitives (uint32 primitivesType, Vertex *vertices, int v_size, uint32 *indices, int i_size, const Math::Matrix4 &transf=Math::Matrix4(), Texture *texture=NULL)
 
void drawLines (Vertex *vertices, int count, const Math::Matrix4 &trsf=Math::Matrix4())
 
void drawLinesLoop (Vertex *vertices, int count, const Math::Matrix4 &trsf=Math::Matrix4())
 
void draw (Vertex *vertices, int v_size, uint32 *indices, int i_size, const Math::Matrix4 &trsf=Math::Matrix4(), Texture *texture=NULL)
 
void drawQuad (const Math::Vector2d &size, const Color &color=Color(), const Math::Matrix4 &trsf=Math::Matrix4())
 
void drawSprite (const Common::Rect &textRect, Texture &texture, const Color &color=Color(), const Math::Matrix4 &trsf=Math::Matrix4(), bool flipX=false, bool flipY=false)
 
void drawSprite (Texture &texture, const Color &color=Color(), const Math::Matrix4 &trsf=Math::Matrix4(), bool flipX=false, bool flipY=false)
 

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