#include <VertexBufferManager.h>
◆ Group
Enumerator |
---|
DEFAULT | |
TERRAIN | |
WATER | |
COUNT | |
◆ CVertexBufferManager()
◆ AllocateChunk()
Try to allocate a vertex buffer of the given size and type.
AllocateChunk: try to allocate a buffer of given number of vertices (each of given size), with the given type, and using the given texture - return null if no free chunks available.
- Parameters
-
vertexSize | size of each vertex in the buffer |
numberOfVertices | number of vertices in the buffer |
type | buffer type |
dynamic | will be buffer updated frequently or not |
backingStore | if not dynamic, this is nullptr; else for dynamic, this must be a copy of the vertex data that remains valid for the lifetime of the VBChunk |
- Returns
- chunk, or empty handle if no free chunks available
◆ GetBytesAllocated()
size_t CVertexBufferManager::GetBytesAllocated |
( |
| ) |
const |
◆ GetBytesReserved()
size_t CVertexBufferManager::GetBytesReserved |
( |
| ) |
const |
◆ Release()
Returns the given chunk
to its owning buffer.
◆ m_Buffers
List of all known vertex buffers.
◆ m_Device
The documentation for this class was generated from the following files: