|
Public Member Functions | |
AtlasChunkGeomCollisionBufferGenerator (U32 gridSize) | |
void | clear () |
Reset the generator. | |
void | insertBinList (Point2I bin, Vector< U16 > &binList) |
Add a list to the buffer. | |
void | store (U32 &indexCount, U16 *&indices, U32 &offsetCount, U16 *&offsets) |
Update two buffers to contain index and offset data. | |
Private Attributes | |
U32 | mGridSize |
Vector< U16 > | mTriangles |
The triangle buffer. | |
Vector< U16 > | mBinOffsets |
Stores the start of each bin's data. |
AtlasChunkGeomCollisionBufferGenerator::AtlasChunkGeomCollisionBufferGenerator | ( | U32 | gridSize | ) |
void AtlasChunkGeomCollisionBufferGenerator::clear | ( | ) |
Reset the generator.
Add a list to the buffer.
void AtlasChunkGeomCollisionBufferGenerator::store | ( | U32 & | indexCount, | |
U16 *& | indices, | |||
U32 & | offsetCount, | |||
U16 *& | offsets | |||
) |
Update two buffers to contain index and offset data.
The triangle buffer.
This encodes lists of triangles contained in each bin.
Stores the start of each bin's data.