le3d - LightEngine 3D
A straightforward C++ 3D software engine for real-time graphics
|
Contain and manage a billboard set. More...
#include <bset.h>
Public Member Functions | |
LeBSet () | |
LeBSet (int noBillboards) | |
~LeBSet () | |
void | shadowCopy (LeBSet *copy) const |
Duplicate the billboard set without copying its static data. More... | |
void | copy (LeBSet *copy) const |
Duplicate the billboard set. More... | |
void | basic () |
Set a basic configuration for the billboards. More... | |
void | clear () |
Clear the billboards flags. More... | |
void | allocate (int noBillboards) |
Allocate billboard set memory. More... | |
void | deallocate () |
Deallocate billboard set memory. More... | |
void | transform (const LeMatrix &matrix) |
Apply a transformation matrix to the billboard set view matrix. More... | |
void | setMatrix (const LeMatrix &matrix) |
Set the billboard set view matrix. More... | |
void | updateMatrix () |
Update the billboard set view matrix with position, scaling and angle vectors. More... | |
Public Attributes | |
LeMatrix | view |
LeVertex | pos |
LeVertex | scale |
LeVertex | angle |
LeVertex * | places |
float * | sizes |
LeColor * | colors |
int * | texSlots |
int * | flags |
int | noBillboards |
LeColor * | shades |
bool | allocated |
Contain and manage a billboard set.
LeBSet::LeBSet | ( | ) |
LeBSet::LeBSet | ( | int | noBillboards | ) |
LeBSet::~LeBSet | ( | ) |
void LeBSet::allocate | ( | int | noBillboards | ) |
Allocate billboard set memory.
[in] | noBillboards | number of billboards |
void LeBSet::basic | ( | ) |
Set a basic configuration for the billboards.
void LeBSet::clear | ( | ) |
Clear the billboards flags.
void LeBSet::copy | ( | LeBSet * | copy | ) | const |
Duplicate the billboard set.
[out] | copy | pointer to the copy billboard set |
void LeBSet::deallocate | ( | ) |
Deallocate billboard set memory.
void LeBSet::setMatrix | ( | const LeMatrix & | matrix | ) |
Set the billboard set view matrix.
[in] | matrix | view matrix |
void LeBSet::shadowCopy | ( | LeBSet * | copy | ) | const |
Duplicate the billboard set without copying its static data.
[out] | copy | pointer to the copy billboard set |
void LeBSet::transform | ( | const LeMatrix & | matrix | ) |
Apply a transformation matrix to the billboard set view matrix.
[in] | matrix | transformation matrix |
void LeBSet::updateMatrix | ( | ) |
Update the billboard set view matrix with position, scaling and angle vectors.
bool LeBSet::allocated |
Has data been allocated
LeVertex LeBSet::angle |
Absolute angle of billboard set (in degrees)
LeColor* LeBSet::colors |
Color per billboard
int* LeBSet::flags |
Flag per billboard
int LeBSet::noBillboards |
Number of allocated billboards
LeVertex* LeBSet::places |
Position per billboard
LeVertex LeBSet::pos |
Position of billboard set
LeVertex LeBSet::scale |
Scaling of billboard set
LeColor* LeBSet::shades |
Shade color per billboard (lighting)
float* LeBSet::sizes |
Size (x, y) per billboard
int* LeBSet::texSlots |
Texture slot per billboard
LeMatrix LeBSet::view |
View matrix of billboard set