|
C3D_API | VertexBuffer (Engine &p_engine, BufferDeclaration const &p_declaration) |
| Constructor. More...
|
|
C3D_API | ~VertexBuffer () |
| Destructor. More...
|
|
C3D_API bool | Create () |
| Creation function. More...
|
|
BufferDeclaration const & | GetDeclaration () const |
| Gets buffer declaration. More...
|
|
template<typename ItType > |
void | LinkCoords (ItType p_begin, ItType p_end) |
| Link all elements to this buffer. More...
|
|
void | Destroy () |
| Destruction function. More...
|
|
void | Cleanup () |
| Cleanup function. More...
|
|
bool | Initialise (eBUFFER_ACCESS_TYPE p_type, eBUFFER_ACCESS_NATURE p_nature) |
| Initialisation function, initialises GPU buffer. More...
|
|
uint8_t * | Lock (uint32_t p_offset, uint32_t p_count, uint32_t p_flags) |
| Locks the buffer, id est maps it into memory so we can modify it. More...
|
|
void | Unlock () |
| Unlocks the buffer, id est unmaps it from memory so no modification can be made after that. More...
|
|
bool | Fill (uint8_t const *p_buffer, ptrdiff_t p_size, Castor3D::eBUFFER_ACCESS_TYPE p_type, Castor3D::eBUFFER_ACCESS_NATURE p_nature) |
| Transmits data to the GPU buffer from RAM. More...
|
|
bool | Bind () |
| Activation function, to tell the GPU it is active. More...
|
|
void | Unbind () |
| Deactivation function, to tell the GPU it is inactive. More...
|
|
void | SetElement (uint32_t p_index, uint8_t const &p_value) |
| Sets element value at given index. More...
|
|
void | AddElement (uint8_t const &p_value) |
| Adds a value at the end of the buffer. More...
|
|
uint32_t | GetSize () const |
| Retrieves the filled buffer size. More...
|
|
uint32_t | GetCapacity () const |
| Retrieves the allocated buffer size. More...
|
|
void | Resize (uint32_t p_uiNewSize) |
| Sets the allocated size of the buffer. More...
|
|
void | Reserve (uint32_t p_uiIncrement) |
| Increases the allocated size of the buffer. More...
|
|
void | Clear () |
| Clears the buffer. More...
|
|
bool | IsToDelete () const |
| Retrieves the delete status of the buffer. More...
|
|
bool | IsAssigned () const |
| Retrieves the assignment status of the buffer. More...
|
|
GpuBufferSPtr | GetGpuBuffer () const |
| Retrieves the GPU buffer. More...
|
|
void | Assign () |
| Sets the assignment status to true . More...
|
|
void | Unassign () |
| Sets the assignment status to false . More...
|
|
uint8_t const * | data () const |
| Retrieves the data pointer. More...
|
|
uint8_t * | data () |
| Retrieves the data pointer. More...
|
|
Vertex buffer representation.
- Author
- Sylvain DOREMUS
- Version
- 0.1
- Date
- 09/02/2010