2 #include "oxygine-include.h" 3 #include "VideoDriverGL.h" 4 #include "core/Restorable.h" 5 #include "../ShaderProgram.h" 16 void reset()
override;
17 void restore()
override;
19 spNativeTexture createTexture()
override;
21 bool isReady()
const override;
23 void begin(
const Rect& viewport,
const Color* clearColor)
override;
24 void clear(
const Color& color)
override;
26 ShaderProgram* getShaderProgram()
const override {
return _p; }
28 void draw(PRIMITIVE_TYPE pt,
const VertexDeclaration* decl,
const void* verticesData,
unsigned int verticesDataSize)
override;
29 void draw(PRIMITIVE_TYPE pt,
const VertexDeclaration* decl,
const void* verticesData,
unsigned int verticesDataSize,
const unsigned short* indicesData,
unsigned int numIndices)
override;
30 void setDefaultSettings()
override;
32 void setViewport(
const Rect& viewport)
override;
34 void setTexture(
int sampler, spNativeTexture)
override;
35 void setUniformInt(
const char*
id,
int v)
override;
36 void setUniform(
const char*
id,
const Vector4* v,
int num)
override;
37 void setUniform(
const char*
id,
const Vector3* v,
int num)
override;
38 void setUniform(
const char*
id,
const Vector2* v,
int num)
override;
39 void setUniform(
const char*
id,
const Matrix* mat)
override;
40 void setUniform(
const char*
id,
float val)
override;
Definition: VertexDeclaration.h:6
Definition: ShaderProgram.h:7
Definition: VideoDriverGLES20.h:10
–oxgl-end–!
Definition: Actor.h:14
Definition: VideoDriverGL.h:13