Rasterfarm-SDK
|
#include <elementbuffer.h>
Public Member Functions | |
ElementBuffer (uint *pBuffer, size_t arrayLength, DrawUsageHint usage=STATIC) | |
virtual | ~ElementBuffer () |
virtual void | bind () |
void | drawElements (uint cnt, DrawPrimitive drawPrimitive) |
Public Member Functions inherited from VertexBuffer | |
VertexBuffer (ShaderBufferType bufferType, DrawUsageHint usage, size_t componentSize, BufferType type) | |
VertexBuffer (const VertexBuffer &other) | |
virtual | ~VertexBuffer () |
void | commit (void *pBuffer, const size_t arrayLength) |
void | modify (void *pBuffer, const size_t arrayLength, size_t offset=0) |
Additional Inherited Members | |
Public Types inherited from VertexBuffer | |
typedef UnorderedMap< BufferType, size_t > | TypeSizeMap |
Public Attributes inherited from VertexBuffer | |
size_t | arrayLength |
VertexBufferHandle | vbo |
DrawUsageHint | usage |
ShaderBufferType | bufferType |
BufferType | type |
size_t | componentSize |
size_t | componentPitch |
Static Public Attributes inherited from VertexBuffer | |
static TypeSizeMap | typeSize |
ElementBuffer::ElementBuffer | ( | uint * | pBuffer, |
size_t | arrayLength, | ||
DrawUsageHint | usage = STATIC ) |
|
virtual |
|
virtual |
Implements VertexBuffer.
void ElementBuffer::drawElements | ( | uint | cnt, |
DrawPrimitive | drawPrimitive ) |