le3d - LightEngine 3D
A straightforward C++ 3D software engine for real-time graphics
|
Contain and manage triangle lists. More...
#include <trilist.h>
Public Member Functions | |
LeTriList () | |
LeTriList (int noTrangles) | |
~LeTriList () | |
void | allocate (int noTriangles) |
Allocate memory to hold triangles. More... | |
void | zSort () |
Sort triangles according to their view distance (descending order) More... | |
Public Attributes | |
LeFog | fog |
int * | srcIndices |
int * | dstIndices |
LeTriangle * | triangles |
int | noAllocated |
int | noUsed |
int | noValid |
Contain and manage triangle lists.
LeTriList::LeTriList | ( | ) |
LeTriList::LeTriList | ( | int | noTrangles | ) |
LeTriList::~LeTriList | ( | ) |
void LeTriList::allocate | ( | int | noTriangles | ) |
Allocate memory to hold triangles.
[in] | noTriangles | maximum number of triangles |
void LeTriList::zSort | ( | ) |
Sort triangles according to their view distance (descending order)
int* LeTriList::dstIndices |
array of triangle destination indexes
LeFog LeTriList::fog |
associated quadratic fog model
int LeTriList::noAllocated |
number of allocated triangles
int LeTriList::noUsed |
number of used triangles
int LeTriList::noValid |
number of valid triangles
int* LeTriList::srcIndices |
array of triangle source indexes
LeTriangle* LeTriList::triangles |
array of triangles