Blaze.BlockBuffer Class Reference

Detailed Description

A single buffer which holds a fixed number of blocks. Used whilst building a mesh.

Public Member Functions

 BlockBuffer ()
 The UV1 set of the current rendering mesh. More...
 
void RequireNormals ()
 
void RequireUV3 ()
 

Public Attributes

BlockBuffer Next
 When pooled, this is a linked list of buffers in the pool. When in use, this is the linked list of buffers which collectively hold the full set. More...
 
BlockBuffer Previous
 When in use, this is the previous buffer in the linked list. More...
 
Vector3[] Normals
 The normals of the current rendering mesh. More...
 
Vector3[] Vertices
 The vertices of the current rendering mesh. More...
 
Color[] Colours
 The colours for the current rendering mesh. More...
 
int[] Triangles
 The triangles for the current rendering mesh. Structured around 2 tris per 4 verts. More...
 
Vector2[] UV1
 The UV1 set of the current rendering mesh. More...
 
Vector2[] UV2
 The UV1 set of the current rendering mesh. X is used for AO. More...
 
Vector2[] UV3
 The UV1 set of the current rendering mesh. More...
 
int Offset
 The number of verts that are before this buffer. More...
 
int BlocksBefore
 The number of blocks that are before this buffer. More...
 
PowerUI.DynamicMesh Mesh
 The current host DynamicMesh. More...
 

Constructor & Destructor Documentation

Blaze.BlockBuffer.BlockBuffer ( )
inline

The UV1 set of the current rendering mesh.

The tangents for the current rendering mesh.

Member Function Documentation

void Blaze.BlockBuffer.RequireNormals ( )
inline
void Blaze.BlockBuffer.RequireUV3 ( )
inline

Member Data Documentation

int Blaze.BlockBuffer.BlocksBefore

The number of blocks that are before this buffer.

Color [] Blaze.BlockBuffer.Colours

The colours for the current rendering mesh.

PowerUI.DynamicMesh Blaze.BlockBuffer.Mesh

The current host DynamicMesh.

BlockBuffer Blaze.BlockBuffer.Next

When pooled, this is a linked list of buffers in the pool. When in use, this is the linked list of buffers which collectively hold the full set.

Vector3 [] Blaze.BlockBuffer.Normals

The normals of the current rendering mesh.

int Blaze.BlockBuffer.Offset

The number of verts that are before this buffer.

BlockBuffer Blaze.BlockBuffer.Previous

When in use, this is the previous buffer in the linked list.

int [] Blaze.BlockBuffer.Triangles

The triangles for the current rendering mesh. Structured around 2 tris per 4 verts.

Vector2 [] Blaze.BlockBuffer.UV1

The UV1 set of the current rendering mesh.

Vector2 [] Blaze.BlockBuffer.UV2

The UV1 set of the current rendering mesh. X is used for AO.

Vector2 [] Blaze.BlockBuffer.UV3

The UV1 set of the current rendering mesh.

Vector3 [] Blaze.BlockBuffer.Vertices

The vertices of the current rendering mesh.