My Project
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ParaEngine::WeatherParticle Class Referenceabstract

base class for weather particle More...

#include <WeatherParticle.h>

Inheritance diagram for ParaEngine::WeatherParticle:
ParaEngine::CParticleElement ParaEngine::CRefCounted ParaEngine::RainParticle ParaEngine::RainSplashParticle ParaEngine::SnowParticle

Public Member Functions

 WeatherParticle (WeatherParticleSpawner *pParent)
 
virtual WeatherType GetType ()=0
 
virtual void Init (float x, float y, float z)
 
virtual bool IsPointTexture ()
 
virtual void Reset ()
 
virtual TextureEntityGetTexture ()
 
virtual void SetTexture (TextureEntity *val)
 
virtual int RenderParticle (SPRITEVERTEX **pVertexBuffer, SceneState *pSceneState)
 generate particle sprite vertex into the vertex buffer based on current camera setting (bill boarding). More...
 
virtual void FrameMove (float deltaTime)
 
virtual void Draw (SceneState *sceneState, CCameraFrustum *pFrustum, const Vector3 &vRenderOffset)
 only for drawable objects
 
virtual void SetFallOnGround ()
 
virtual void SetDead ()
 
bool IsDead () const
 
virtual void RecollectMe ()
 recollect to spawner
 
float GetMinY () const
 
void SetMinY (float val)
 
- Public Member Functions inherited from ParaEngine::CParticleElement
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 Member Functions

WeatherParticleSpawnerGetWeatherSpawner ()
 
ParaEngine::Vector3 GetRenderOffset () const
 
void SetRenderOffset (ParaEngine::Vector3 val)
 

Protected Attributes

float x
 
float y
 
float z
 
float speed_x
 
float speed_y
 
float speed_z
 
float width
 
float height
 
float lifetime
 
float minY
 
int tileIndex
 
bool m_isDead
 
Vector3 m_vRenderOffset
 
float gravity
 
WeatherParticleSpawnerm_pWeatherSpawner
 
TextureEntitym_pTexture
 
- 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

base class for weather particle

Member Function Documentation

§ RenderParticle()

int ParaEngine::WeatherParticle::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: