Rasterfarm-SDK
|
#include <vertexbuffer.h>
Public Types | |
typedef UnorderedMap< BufferType, size_t > | TypeSizeMap |
Public Member Functions | |
VertexBuffer (ShaderBufferType bufferType, DrawUsageHint usage, size_t componentSize, BufferType type) | |
VertexBuffer (const VertexBuffer &other) | |
virtual | ~VertexBuffer () |
virtual void | bind ()=0 |
void | commit (void *pBuffer, const size_t arrayLength) |
void | modify (void *pBuffer, const size_t arrayLength, size_t offset=0) |
Public Attributes | |
size_t | arrayLength |
VertexBufferHandle | vbo |
DrawUsageHint | usage |
ShaderBufferType | bufferType |
BufferType | type |
size_t | componentSize |
size_t | componentPitch |
Static Public Attributes | |
static TypeSizeMap | typeSize |
typedef UnorderedMap< BufferType, size_t > VertexBuffer::TypeSizeMap |
VertexBuffer::VertexBuffer | ( | ShaderBufferType | bufferType, |
DrawUsageHint | usage, | ||
size_t | componentSize, | ||
BufferType | type ) |
VertexBuffer::VertexBuffer | ( | const VertexBuffer & | other | ) |
|
virtual |
|
pure virtual |
Implemented in AttributeBuffer, and ElementBuffer.
void VertexBuffer::commit | ( | void * | pBuffer, |
const size_t | arrayLength ) |
void VertexBuffer::modify | ( | void * | pBuffer, |
const size_t | arrayLength, | ||
size_t | offset = 0 ) |
size_t VertexBuffer::arrayLength |
ShaderBufferType VertexBuffer::bufferType |
size_t VertexBuffer::componentPitch |
size_t VertexBuffer::componentSize |
BufferType VertexBuffer::type |
|
static |
DrawUsageHint VertexBuffer::usage |
VertexBufferHandle VertexBuffer::vbo |