My Project
Public Types | Public Member Functions | Protected Attributes | List of all members
ParaEngine::CBlockPieceParticleElement Class Reference

particle element More...

#include <BlockPieceParticle.h>

Inheritance diagram for ParaEngine::CBlockPieceParticleElement:
ParaEngine::CParticleElement ParaEngine::CRefCounted

Public Types

typedef ParaEngine::weak_ptr< IObject, CBlockPieceParticleWeakPtr_type
 

Public Member Functions

 CBlockPieceParticleElement (CBlockPieceParticle *pParent)
 
virtual int RenderParticle (SPRITEVERTEX **pVertexBuffer, SceneState *pSceneState)
 generate particle sprite vertex into the vertex buffer based on current camera setting (bill boarding). More...
 
virtual TextureEntityGetTexture ()
 
virtual bool IsPointTexture ()
 
virtual bool IsAlphaTested ()
 
- Public Member Functions inherited from ParaEngine::CRefCounted
void addref () const
 add reference count of the object. More...
 
bool delref () const
 decrease reference count of the object. More...
 
int GetRefCount () const
 get the reference count
 
virtual int Release ()
 
CRefCountedAddToAutoReleasePool ()
 addref and releases the ownership sometime soon automatically (usually at the end of the current frame). More...
 

Protected Attributes

WeakPtr_type m_pParent
 
- Protected Attributes inherited from ParaEngine::CParticleElement
TextureEntitym_pTexture
 
- Protected Attributes inherited from ParaEngine::CRefCounted
int m_refcount
 

Additional Inherited Members

- Static Public Member Functions inherited from ParaEngine::CParticleElement
static void SetParticleVertex (SPRITEVERTEX &vert, float x, float y, float z, float u, float v, DWORD color)
 

Detailed Description

particle element

Member Function Documentation

§ RenderParticle()

int ParaEngine::CBlockPieceParticleElement::RenderParticle ( SPRITEVERTEX **  pVertexBuffer,
SceneState pSceneState 
)
virtual

generate particle sprite vertex into the vertex buffer based on current camera setting (bill boarding).

Returns
the number of particles generated (1 particle has 2 triangles with 6 vertices).

Implements ParaEngine::CParticleElement.


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