Concrete vertex buffer class for cpu subvision. More...
#include <cpuVertexBuffer.h>
Public Member Functions | |
~CpuVertexBuffer () | |
Destructor. More... | |
void | UpdateData (const float *src, int startVertex, int numVertices) |
int | GetNumElements () const |
Returns how many elements defined in this vertex buffer. More... | |
int | GetNumVertices () const |
Returns how many vertices allocated in this vertex buffer. More... | |
float * | BindCpuBuffer () |
Returns the address of CPU buffer. More... | |
Static Public Member Functions | |
static CpuVertexBuffer * | Create (int numElements, int numVertices) |
Creator. Returns NULL if error. More... | |
Protected Member Functions | |
CpuVertexBuffer (int numElements, int numVertices) | |
Constructor. More... | |
Concrete vertex buffer class for cpu subvision.
CpuVertexBuffer implements the VertexBufferInterface. An instance of this buffer class can be passed to CpuComputeController
Definition at line 40 of file cpuVertexBuffer.h.
~CpuVertexBuffer | ( | ) |
Destructor.
|
protected |
Constructor.
float* BindCpuBuffer | ( | ) |
Returns the address of CPU buffer.
|
static |
Creator. Returns NULL if error.
int GetNumElements | ( | ) | const |
Returns how many elements defined in this vertex buffer.
int GetNumVertices | ( | ) | const |
Returns how many vertices allocated in this vertex buffer.
void UpdateData | ( | const float * | src, |
int | startVertex, | ||
int | numVertices | ||
) |
This method is meant to be used in client code in order to provide coarse vertices data to Osd.