PrimitiveBatch::Init

PrimitiveBatch::Init
void Init(Primitive* p, BatchType type, unsigned meshIndex, unsigned meshCount);
Description

Init is called by Create instead of constructor for initializing the primitive and the mesh index/count.

Parameters
Parameters 
Description 
Primitive* p 
Pointer to Primitive which is to be initialized. 
BatchType type 
The type of batch rendering. 
unsigned meshIndex 
The index of the mesh in the buffer. 
unsigned meshCount 
The number of meshes in the buffer.