Detailed Description

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...
 

Member Function Documentation

static void Blaze.MeshDataBufferPool.Clear ( )
inlinestatic

Clears out both buffer pools, freeing some memory.

static BlockBuffer Blaze.MeshDataBufferPool.GetBuffer ( )
inlinestatic

Gets a vert buffer from the pool.

static void Blaze.MeshDataBufferPool.Return ( BlockBuffer  bufferStart,
BlockBuffer  bufferEnd 
)
inlinestatic

Returns one or more buffers as a linked list.

Member Data Documentation

const int Blaze.MeshDataBufferPool.BlockCount =64

Blocks per buffer.

BlockBuffer Blaze.MeshDataBufferPool.FirstBuffer
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.