|
|||||||||||||||||||||||||||||||||||||||||
Public Member Functions | |
| ChunkTriangleBufferGenerator (U32 gridSize) | |
| void | clear () |
| Reset the generator. | |
| void | insertBinList (Point2I bin, Vector< U16 > &binList) |
| Add a list to the buffer. | |
| bool | write (Stream *s) |
Private Attributes | |
| U32 | mGridSize |
| Vector< U16 > | mTriangles |
| The triangle buffer. | |
| Vector< U16 > | mBinOffsets |
| Stores the start of each bin's data. | |
| ChunkTriangleBufferGenerator::ChunkTriangleBufferGenerator | ( | U32 | gridSize | ) | [inline] |
| void ChunkTriangleBufferGenerator::clear | ( | ) | [inline] |
Reset the generator.
Add a list to the buffer.
U32 ChunkTriangleBufferGenerator::mGridSize [private] |
Vector<U16> ChunkTriangleBufferGenerator::mTriangles [private] |
The triangle buffer.
This encodes lists of triangles contained in each bin.
Vector<U16> ChunkTriangleBufferGenerator::mBinOffsets [private] |
Stores the start of each bin's data.