|
| VertexBufferPN (int size=0, GLenum usage=GL_STATIC_DRAW) |
|
virtual void | setVertex (int idx, const STK::Vector3f &position, const STK::Vector3f &normal, const STK::Vector2f &texcoord, const STK::RGBA &color, const STK::Vector4f &boneWeights, const unsigned char *boneIndices) |
|
virtual STK::Vector3f | getPosition (int idx) const |
|
virtual STK::Vector3f | getNormal (int idx) const |
|
void | setVertex (int idx, const STK::Vector3f &position, const STK::Vector3f &normal) |
|
void | addVertex (const STK::Vector3f &position, const STK::Vector3f &normal) |
|
void | addVertex (const VertexPN &vtx) |
|
virtual void | applyVertexAttribs (ShaderProgram &program) |
|
virtual void | disableVertexAttribs (ShaderProgram &program) |
|
virtual void | initBuffer () |
|
virtual int | getSize () const |
|
virtual void | setSize (int size) |
|
char * | data () |
|
const char * | data () const |
|
| VertexBuffer (GLenum usage=GL_STATIC_DRAW) |
|
void | setUsage (GLenum usage) |
|
GLenum | getUsage () const |
|
virtual void | setVertex (int idx, const STK::Vector3f &position, const STK::Vector3f &normal, const STK::Vector2f &texcoord, const STK::RGBA &color, const STK::Vector4f &boneWeights, const unsigned char *boneIndices)=0 |
|
void | setVertex (int idx, const STK::Vector3f &position, const STK::Vector3f &normal, const STK::Vector2f &texcoord) |
|
void | setVertex (int idx, const STK::Vector3f &position) |
|
void | setVertex (int idx, const STK::Vector3f &position, const STK::RGBA &color) |
|
void | setNormal (int idx, const STK::Vector3f &normal) |
|
void | setTexCoord (int idx, const STK::Vector2f &texcoord) |
|
void | setVertex (int idx, const STK::Vector3f &position, const STK::Vector3f &normal, const STK::Vector2f &texcoord, const STK::Vector4f &boneWeights, const unsigned char *boneIndices) |
|
void | addVertex (const STK::Vector3f &position) |
|
void | addVertex (const STK::Vector3f &position, const STK::Vector3f &normal) |
|
void | addVertex (const STK::Vector3f &position, const STK::Vector3f &normal, const STK::Vector2f &texcoord, const STK::RGBA &color, const STK::Vector4f &boneWeights, const unsigned char *boneIndices) |
|
virtual STK::Vector3f | getPosition (int idx) const =0 |
|
virtual STK::Vector3f | getNormal (int) const |
|
virtual STK::RGBA | getColor (int) const |
|
virtual STK::Vector2f | getTexCoord (int) const |
|
virtual STK::Vector4f | getBoneWeights (int) const |
|
virtual const unsigned char * | getBoneIndices (int) const |
|
virtual void | initBuffer ()=0 |
|
virtual void | applyVertexAttribs (ShaderProgram &program)=0 |
|
virtual void | disableVertexAttribs (ShaderProgram &program)=0 |
|
virtual int | getSize () const =0 |
|
virtual void | setSize (int size)=0 |
|
void | deleteBuffer () |
|
void | setDirty (bool dirty) |
|
bool | isDirty () const |
|
virtual char * | data ()=0 |
|
virtual const char * | data () const =0 |
|
VertexBufferPN - Vertex buffers for Point and Normal vector data. This vertex buffer class contains interleaved position and normal vector data