ScummVM API documentation
Tetraedge::TeRenderer Class Referenceabstract

Classes

class  TransparentMeshProperties
 

Public Types

enum  MatrixMode { MM_GL_PROJECTION = 0, MM_GL_MODELVIEW = 1, MM_GL_TEXTURE = 2 }
 
enum  ShadowMode { ShadowModeNone = 0, ShadowModeCreating = 1, ShadowModeDrawing = 2 }
 
enum  Buffer {
  DepthBuffer = 1, ColorBuffer = 2, StencilBuffer = 4, ColorAndDepth = DepthBuffer | ColorBuffer,
  AllBuffers = DepthBuffer | ColorBuffer | StencilBuffer
}
 

Public Member Functions

void addTransparentMesh (const TeMesh &mesh, uint i1, uint i2, uint i3)
 
void checkError (const Common::String &str)
 
virtual void clearBuffer (Buffer buf)=0
 
virtual void colorMask (bool r, bool g, bool b, bool a)=0
 
void create ()
 
TeMatrix4x4 currentMatrix ()
 
virtual void disableAllLights ()=0
 
virtual void disableTexture ()=0
 
virtual void disableWireFrame ()=0
 
virtual void disableZBuffer ()=0
 
virtual void drawLine (const TeVector3f32 &from, const TeVector3f32 &to)=0
 
virtual void enableAllLights ()=0
 
virtual void enableTexture ()=0
 
virtual void enableWireFrame ()=0
 
virtual void enableZBuffer ()=0
 
virtual void init (uint width, uint height)=0
 
void loadIdentityMatrix ()
 
void loadMatrix (const TeMatrix4x4 &matrix)
 
void loadCurrentMatrixToGL ()
 
virtual void loadProjectionMatrix (const TeMatrix4x4 &matrix)=0
 
void multiplyMatrix (const TeMatrix4x4 &matrix)
 
void optimiseTransparentMeshProperties ()
 
void popMatrix ()
 
void pushMatrix ()
 
virtual Common::String renderer ()=0
 
virtual void renderTransparentMeshes ()=0
 
virtual void reset ()=0
 
void rotate (const TeQuaternion &rot)
 
void rotate (float angle, float rx, float ry, float rz)
 
void scale (float xs, float ys, float zs)
 
bool scissorEnabled () const
 
int scissorHeight () const
 
int scissorWidth () const
 
int scissorX () const
 
int scissorY () const
 
void sendModelMatrix (const TeMatrix4x4 &matrix)
 
virtual void setClearColor (const TeColor &col)=0
 
void setCurrentCamera (TeCamera *camera)
 
virtual void setCurrentColor (const TeColor &col)=0
 
virtual void setMatrixMode (enum MatrixMode mode)=0
 
void setScissor (int x, int y, int w, int h)
 
void setScissorEnabled (bool val)
 
virtual void setViewport (int x, int y, int w, int h)=0
 
virtual void shadowMode (enum ShadowMode mode)=0
 
enum ShadowMode shadowMode () const
 
void translate (float x, float y, float z)
 
virtual Common::String vendor ()=0
 
void dumpTransparentMeshProps () const
 
void dumpTransparentMeshData () const
 
const TeColorcurrentColor () const
 
virtual void updateScreen ()=0
 
virtual void updateGlobalLight ()=0
 
virtual void applyMaterial (const TeMaterial &m)=0
 

Static Public Member Functions

static TeRenderermakeInstance ()
 

Protected Member Functions

virtual void loadMatrixToGL (const TeMatrix4x4 &matrix)=0
 

Protected Attributes

TeCamera_currentCamera
 
TeColor _currentColor
 
TeColor _clearColor
 
bool _textureEnabled
 
ShadowMode _shadowMode
 
MatrixMode _matrixMode
 
bool _scissorEnabled
 
int _scissorHeight
 
int _scissorWidth
 
int _scissorX
 
int _scissorY
 
uint _numTransparentMeshes
 
Common::Array< TeVector3f32_transparentMeshVertexes
 
Common::Array< TeVector3f32_transparentMeshNormals
 
Common::Array< TeVector2f32_transparentMeshCoords
 
Common::Array< TeColor_transparentMeshColors
 
Common::Array< unsigned short > _transparentMeshVertexNums
 
int _pendingTransparentMeshProperties
 
Common::Array< TransparentMeshProperties_transparentMeshProps
 
TeMatriciesStack _matriciesStacks [3]
 

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