Holds a global set of Vector3[] int[] etc arrays. They're always a constant length.
Static Public Member Functions | |
static BlockBuffer | GetBuffer () |
Gets a vert buffer from the pool. More... | |
static void | Return (BlockBuffer bufferStart, BlockBuffer bufferEnd) |
Returns one or more buffers as a linked list. More... | |
static void | Clear () |
Clears out both buffer pools, freeing some memory. More... | |
Public Attributes | |
const int | BlockCount =64 |
Blocks per buffer. More... | |
const int | TriangleBufferSize =BlockCount * 6 |
Standard size of the triangle buffers. Must be divisible by 6, otherwise optimisations will fail. More... | |
const int | VertexBufferSize =BlockCount * 4 |
Standard size of the vert buffers. More... | |
Static Private Attributes | |
static BlockBuffer | FirstBuffer |
Pool of Vector3[],Vector2[] etc buffers. More... | |
|
inlinestatic |
Clears out both buffer pools, freeing some memory.
|
inlinestatic |
Gets a vert buffer from the pool.
|
inlinestatic |
Returns one or more buffers as a linked list.
const int Blaze.MeshDataBufferPool.BlockCount =64 |
Blocks per buffer.
|
staticprivate |
Pool of Vector3[],Vector2[] etc buffers.
const int Blaze.MeshDataBufferPool.TriangleBufferSize =BlockCount * 6 |
Standard size of the triangle buffers. Must be divisible by 6, otherwise optimisations will fail.
const int Blaze.MeshDataBufferPool.VertexBufferSize =BlockCount * 4 |
Standard size of the vert buffers.