Interface used to by the Terrain instance to allocate GPU buffers.
More...
#include <OgreTerrain.h>
|
| GpuBufferAllocator () |
|
virtual | ~GpuBufferAllocator () |
|
virtual void | allocateVertexBuffers (Terrain *forTerrain, size_t numVertices, HardwareVertexBufferSharedPtr &destPos, HardwareVertexBufferSharedPtr &destDelta)=0 |
| Allocate (or reuse) vertex buffers for a terrain LOD. More...
|
|
virtual void | freeAllBuffers ()=0 |
| Free any buffers we're holding. More...
|
|
virtual void | freeVertexBuffers (const HardwareVertexBufferSharedPtr &posbuf, const HardwareVertexBufferSharedPtr &deltabuf)=0 |
| Free (or return to the pool) vertex buffers for terrain. More...
|
|
virtual HardwareIndexBufferSharedPtr | getSharedIndexBuffer (uint16 batchSize, uint16 vdatasize, size_t vertexIncrement, uint16 xoffset, uint16 yoffset, uint16 numSkirtRowsCols, uint16 skirtRowColSkip)=0 |
| Get a shared index buffer for a given number of settings. More...
|
|
void | operator delete (void *ptr) |
|
void | operator delete (void *ptr, void *) |
|
void | operator delete (void *ptr, const char *, int, const char *) |
|
void | operator delete[] (void *ptr) |
|
void | operator delete[] (void *ptr, const char *, int, const char *) |
|
void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info More...
|
|
void * | operator new (size_t sz) |
|
void * | operator new (size_t sz, void *ptr) |
| placement operator new More...
|
|
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info More...
|
|
void * | operator new[] (size_t sz) |
|
Interface used to by the Terrain instance to allocate GPU buffers.
◆ GpuBufferAllocator()
Ogre::Terrain::GpuBufferAllocator::GpuBufferAllocator |
( |
| ) |
|
|
inline |
◆ ~GpuBufferAllocator()
virtual Ogre::Terrain::GpuBufferAllocator::~GpuBufferAllocator |
( |
| ) |
|
|
inlinevirtual |
◆ allocateVertexBuffers()
virtual void Ogre::Terrain::GpuBufferAllocator::allocateVertexBuffers |
( |
Terrain * |
forTerrain, |
|
|
size_t |
numVertices, |
|
|
HardwareVertexBufferSharedPtr & |
destPos, |
|
|
HardwareVertexBufferSharedPtr & |
destDelta |
|
) |
| |
|
pure virtual |
Allocate (or reuse) vertex buffers for a terrain LOD.
- Parameters
-
numVertices | The total number of vertices |
destPos | Pointer to a vertex buffer for positions, to be bound |
destDelta | Pointer to a vertex buffer for deltas, to be bound |
Implemented in Ogre::Terrain::DefaultGpuBufferAllocator.
◆ freeAllBuffers()
virtual void Ogre::Terrain::GpuBufferAllocator::freeAllBuffers |
( |
| ) |
|
|
pure virtual |
◆ freeVertexBuffers()
virtual void Ogre::Terrain::GpuBufferAllocator::freeVertexBuffers |
( |
const HardwareVertexBufferSharedPtr & |
posbuf, |
|
|
const HardwareVertexBufferSharedPtr & |
deltabuf |
|
) |
| |
|
pure virtual |
◆ getSharedIndexBuffer()
virtual HardwareIndexBufferSharedPtr Ogre::Terrain::GpuBufferAllocator::getSharedIndexBuffer |
( |
uint16 |
batchSize, |
|
|
uint16 |
vdatasize, |
|
|
size_t |
vertexIncrement, |
|
|
uint16 |
xoffset, |
|
|
uint16 |
yoffset, |
|
|
uint16 |
numSkirtRowsCols, |
|
|
uint16 |
skirtRowColSkip |
|
) |
| |
|
pure virtual |
Get a shared index buffer for a given number of settings.
- Parameters
-
batchSize | The batch size along one edge |
vdatasize | The size of the referenced vertex data along one edge |
vertexIncrement | The number of vertices to increment for each new indexed row / column |
xoffset | The x offset from the start of vdatasize, at that resolution |
yoffset | The y offset from the start of vdatasize, at that resolution |
numSkirtRowsCols | Number of rows and columns of skirts |
skirtRowColSkip | The number of rows / cols to skip in between skirts |
Implemented in Ogre::Terrain::DefaultGpuBufferAllocator.
◆ operator delete() [1/3]
◆ operator delete() [2/3]
◆ operator delete() [3/3]
◆ operator delete[]() [1/2]
◆ operator delete[]() [2/2]
◆ operator new() [1/3]
template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new |
( |
size_t |
sz, |
|
|
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
func |
|
) |
| |
|
inlineinherited |
operator new, with debug line info
◆ operator new() [2/3]
◆ operator new() [3/3]
◆ operator new[]() [1/2]
template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] |
( |
size_t |
sz, |
|
|
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
func |
|
) |
| |
|
inlineinherited |
array operator new, with debug line info
◆ operator new[]() [2/2]
The documentation for this class was generated from the following file: