le3d - LightEngine 3D
A straightforward C++ 3D software engine for real-time graphics
Public Member Functions | Public Attributes | List of all members
LeTriList Class Reference

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
 
LeTriangletriangles
 
int noAllocated
 
int noUsed
 
int noValid
 

Detailed Description

Contain and manage triangle lists.

Constructor & Destructor Documentation

LeTriList::LeTriList ( )
LeTriList::LeTriList ( int  noTrangles)
LeTriList::~LeTriList ( )

Member Function Documentation

void LeTriList::allocate ( int  noTriangles)

Allocate memory to hold triangles.

Parameters
[in]noTrianglesmaximum number of triangles
void LeTriList::zSort ( )

Sort triangles according to their view distance (descending order)

Member Data Documentation

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


The documentation for this class was generated from the following files: