Oxygine  1
2g game engine
Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
oxygine::IVideoDriver Class Referenceabstract
Inheritance diagram for oxygine::IVideoDriver:
oxygine::VideoDriverGL oxygine::VideoDriverNull oxygine::VideoDriverGLES20

Classes

class  Stats
 

Public Types

enum  PRIMITIVE_TYPE {
  PT_POINTS, PT_LINES, PT_LINE_LOOP, PT_LINE_STRIP,
  PT_TRIANGLES, PT_TRIANGLE_STRIP, PT_TRIANGLE_FAN, PT_COUNT
}
 
enum  BLEND_TYPE {
  BT_ZERO, BT_ONE, BT_SRC_COLOR, BT_ONE_MINUS_SRC_COLOR,
  BT_SRC_ALPHA, BT_ONE_MINUS_SRC_ALPHA, BT_DST_ALPHA, BT_DST_COLOR,
  BT_ONE_MINUS_DST_ALPHA, BT_ONE_MINUS_DST_COLOR
}
 
enum  CULL_FACE_TYPE { CULL_FACE_FRONT_AND_BACK, CULL_FACE_FRONT, CULL_FACE_BACK }
 
enum  STATE { STATE_BLEND, STATE_CULL_FACE, STATE_NUM }
 

Public Member Functions

virtual void reset ()=0
 
virtual void restore ()=0
 
virtual bool isReady () const =0
 
virtual spNativeTexture createTexture ()=0
 
virtual void clear (const Color &color)=0
 
virtual void begin (const Rect &viewport, const Color *color)=0
 
virtual void draw (PRIMITIVE_TYPE pt, const VertexDeclaration *decl, const void *verticesData, unsigned int verticesDataSize)=0
 
virtual void draw (PRIMITIVE_TYPE pt, const VertexDeclaration *decl, const void *verticesData, unsigned int verticesDataSize, const unsigned short *indicesData, unsigned int numIndices)=0
 
virtual void getViewport (Rect &r) const =0
 
virtual bool getScissorRect (Rect &) const =0
 
virtual spNativeTexture getRenderTarget () const =0
 
virtual ShaderProgramgetShaderProgram () const =0
 
virtual const VertexDeclarationgetVertexDeclaration (bvertex_format) const =0
 
virtual void setScissorRect (const Rect *)=0
 
virtual void setDefaultSettings ()=0
 
virtual void setViewport (const Rect &viewport)=0
 
virtual void setRenderTarget (spNativeTexture)=0
 
virtual void setShaderProgram (ShaderProgram *)=0
 
virtual void setTexture (int sampler, spNativeTexture)=0
 
virtual void setState (STATE, unsigned int value)=0
 
virtual void setBlendFunc (BLEND_TYPE src, BLEND_TYPE dest)=0
 
virtual void setUniform (const char *id, const Vector4 *v, int num)=0
 
virtual void setUniform (const char *id, const Vector3 *v, int num)=0
 
virtual void setUniform (const char *id, const Vector2 *v, int num)=0
 
virtual void setUniform (const char *id, const Matrix *)=0
 
virtual void setUniform (const char *id, float v)=0
 
virtual void setUniformInt (const char *id, int v)=0
 
void _debugAddPrimitives (PRIMITIVE_TYPE pt, int num)
 

Static Public Attributes

static Stats _stats
 
static IVideoDriverinstance
 

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