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

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
 
LeVertexplaces
 
float * sizes
 
LeColorcolors
 
int * texSlots
 
int * flags
 
int noBillboards
 
LeColorshades
 
bool allocated
 

Detailed Description

Contain and manage a billboard set.

Constructor & Destructor Documentation

LeBSet::LeBSet ( )
LeBSet::LeBSet ( int  noBillboards)
LeBSet::~LeBSet ( )

Member Function Documentation

void LeBSet::allocate ( int  noBillboards)

Allocate billboard set memory.

Parameters
[in]noBillboardsnumber 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.

Parameters
[out]copypointer to the copy billboard set
void LeBSet::deallocate ( )

Deallocate billboard set memory.

void LeBSet::setMatrix ( const LeMatrix matrix)

Set the billboard set view matrix.

Parameters
[in]matrixview matrix
void LeBSet::shadowCopy ( LeBSet copy) const

Duplicate the billboard set without copying its static data.

Parameters
[out]copypointer to the copy billboard set
void LeBSet::transform ( const LeMatrix matrix)

Apply a transformation matrix to the billboard set view matrix.

Parameters
[in]matrixtransformation matrix
void LeBSet::updateMatrix ( )

Update the billboard set view matrix with position, scaling and angle vectors.

Member Data Documentation

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


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