|
| DefaultGpuBufferAllocator () |
|
virtual | ~DefaultGpuBufferAllocator () |
|
void | allocateVertexBuffers (Terrain *forTerrain, size_t numVertices, HardwareVertexBufferSharedPtr &destPos, HardwareVertexBufferSharedPtr &destDelta) |
| Allocate (or reuse) vertex buffers for a terrain LOD.
|
|
void | freeAllBuffers () |
| Free any buffers we're holding.
|
|
void | freeVertexBuffers (const HardwareVertexBufferSharedPtr &posbuf, const HardwareVertexBufferSharedPtr &deltabuf) |
| Free (or return to the pool) vertex buffers for terrain.
|
|
HardwareIndexBufferSharedPtr | getSharedIndexBuffer (uint16 batchSize, uint16 vdatasize, size_t vertexIncrement, uint16 xoffset, uint16 yoffset, uint16 numSkirtRowsCols, uint16 skirtRowColSkip) |
| Get a shared index buffer for a given number of settings.
|
|
void | warmStart (size_t numInstances, uint16 terrainSize, uint16 maxBatchSize, uint16 minBatchSize) |
| 'Warm start' the allocator based on needing x instances of terrain with the given configuration.
|
|
| GpuBufferAllocator () |
|
virtual | ~GpuBufferAllocator () |
|
Standard implementation of a buffer allocator which re-uses buffers.