# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CPSFaceLookAt Class Reference

A FaceLookAt particle. More...

#include <ps_particle.h>

Inheritance diagram for NL3D::CPSFaceLookAt

Inheritance graph
[legend]
Collaboration diagram for NL3D::CPSFaceLookAt:

Collaboration graph
[legend]
List of all members.

Public Methods

 CPSFaceLookAt (CSmartPtr<ITexture> tex = NULL)
 create the face look at by giving a texture and an optionnal color. More...

virtual void draw (void)
 draw the particles. More...

void serial (NLMISC::IStream &f)
 serialisation. Derivers must override this, and call their parent version. More...

 NLMISC_DECLARE_CLASS (CPSFaceLookAt)
virtual bool completeBBox (NLMISC::CAABBox &box) const
virtual void resize (uint32 size)
 Resize the bindable attributes containers. Size is the max number of element to be contained. DERIVERS MUST CALL THEIR PARENT VERSION. More...

bool newElement (void)
 we don't save datas so it does nothing for now. More...

void deleteElement (uint32)
 we don't save datas so it does nothing for now. More...

 ~CPSFaceLookAt ()

Protected Methods

virtual void init (void)
 initialisations. More...

virtual void updateMatAndVbForColor (void)
 Update the material and the vb and the like so that they match the color scheme. More...

virtual void updateMatAndVbForTexture (void)
 Update the material so that it match the texture scheme. More...


Protected Attributes

CMaterial _Mat
CVertexBuffer _Vb
uint32_IndexBuffer

Detailed Description

A FaceLookAt particle.

Definition at line 334 of file ps_particle.h.


Constructor & Destructor Documentation

NL3D::CPSFaceLookAt::CPSFaceLookAt ( CSmartPtr< ITexture > tex = NULL )
 

create the face look at by giving a texture and an optionnal color.

Definition at line 508 of file ps_particle.cpp.

NL3D::CPSFaceLookAt::~CPSFaceLookAt ( )
 

Definition at line 518 of file ps_particle.cpp.


Member Function Documentation

NL3D::CPSFaceLookAt::NLMISC_DECLARE_CLASS ( CPSFaceLookAt )
 

bool NL3D::CPSFaceLookAt::completeBBox ( NLMISC::CAABBox & box ) const [virtual]
 

Reimplemented from NL3D::CPSLocatedBindable.

Definition at line 931 of file ps_particle.cpp.

void NL3D::CPSFaceLookAt::deleteElement ( uint32 index ) [inline, virtual]
 

we don't save datas so it does nothing for now.

Reimplemented from NL3D::CPSParticle.

Definition at line 354 of file ps_particle.h.

void NL3D::CPSFaceLookAt::draw ( void ) [virtual]
 

draw the particles.

Reimplemented from NL3D::CPSParticle.

Definition at line 596 of file ps_particle.cpp.

void NL3D::CPSFaceLookAt::init ( void ) [protected, virtual]
 

initialisations.

Definition at line 556 of file ps_particle.cpp.

bool NL3D::CPSFaceLookAt::newElement ( void ) [inline, virtual]
 

we don't save datas so it does nothing for now.

Reimplemented from NL3D::CPSParticle.

Definition at line 351 of file ps_particle.h.

void NL3D::CPSFaceLookAt::resize ( uint32 size ) [virtual]
 

Resize the bindable attributes containers. Size is the max number of element to be contained. DERIVERS MUST CALL THEIR PARENT VERSION.

Reimplemented from NL3D::CPSParticle.

Definition at line 523 of file ps_particle.cpp.

void NL3D::CPSFaceLookAt::serial ( NLMISC::IStream & f ) [virtual]
 

serialisation. Derivers must override this, and call their parent version.

Reimplemented from NL3D::CPSParticle.

Definition at line 912 of file ps_particle.cpp.

void NL3D::CPSFaceLookAt::updateMatAndVbForColor ( void ) [protected, virtual]
 

Update the material and the vb and the like so that they match the color scheme.

Reimplemented from NL3D::CPSColoredParticle.

Definition at line 567 of file ps_particle.cpp.

void NL3D::CPSFaceLookAt::updateMatAndVbForTexture ( void ) [protected, virtual]
 

Update the material so that it match the texture scheme.

Reimplemented from NL3D::CPSTexturedParticle.

Definition at line 587 of file ps_particle.cpp.


Member Data Documentation

uint32 * NL3D::CPSFaceLookAt::_IndexBuffer [protected]
 

Definition at line 374 of file ps_particle.h.

CMaterial NL3D::CPSFaceLookAt::_Mat [protected]
 

Definition at line 370 of file ps_particle.h.

CVertexBuffer NL3D::CPSFaceLookAt::_Vb [protected]
 

Definition at line 371 of file ps_particle.h.


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