OmegaEngine API  1.0.3
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Public Attributes | Package Functions | Properties | List of all members
OmegaEngine.Graphics.Renderables.CpuParticle Class Reference

A particle used by the CpuParticleSystem More...

Inheritance diagram for OmegaEngine.Graphics.Renderables.CpuParticle:
OmegaEngine.IPositionable

Public Member Functions

 CpuParticle (DoubleVector3 position, CpuParticleParametersStruct parameters1, CpuParticleParametersStruct parameters2)
 Creates a new particle More...
 

Public Attributes

CpuParticleParametersStruct Parameters1
 The initial configuration of this particle More...
 
CpuParticleParametersStruct Parameters2
 The configuration this particle will take in its "second life" More...
 

Package Functions

void Update (float elapsedTime)
 Update the status of the particle More...
 
void Render (Engine engine, Camera camera)
 Called internally when this particle needs to be rendered More...
 

Properties

bool Alive [get, set]
 Is this particle currently alive/visible? More...
 
bool SecondLife [get, set]
 Is this particle currently in its second life? More...
 
DoubleVector3 Position [get, set]
 The particle's position in world space More...
 
Vector3 Velocity [get, set]
 The movement of this particle in one second More...
 
Color4 Color [get, set]
 The current color of this particle More...
 
float Size [get, set]
 The current size of the particle More...
 
- Properties inherited from OmegaEngine.IPositionable
DoubleVector3 Position [get, set]
 The object's position More...
 

Detailed Description

A particle used by the CpuParticleSystem

Constructor & Destructor Documentation

OmegaEngine.Graphics.Renderables.CpuParticle.CpuParticle ( DoubleVector3  position,
CpuParticleParametersStruct  parameters1,
CpuParticleParametersStruct  parameters2 
)
inline

Creates a new particle

Parameters
positionThe initial position of the particle
parameters1The initial configuration of this particle
parameters2The configuration this particle will take in its "second life"

Member Function Documentation

void OmegaEngine.Graphics.Renderables.CpuParticle.Render ( Engine  engine,
Camera  camera 
)
inlinepackage

Called internally when this particle needs to be rendered

Parameters
engineThe Engine to use to render this particle
cameraSupplies information for the view transformation
void OmegaEngine.Graphics.Renderables.CpuParticle.Update ( float  elapsedTime)
inlinepackage

Update the status of the particle

Parameters
elapsedTimeThe number of seconds elapsed

Member Data Documentation

CpuParticleParametersStruct OmegaEngine.Graphics.Renderables.CpuParticle.Parameters1

The initial configuration of this particle

CpuParticleParametersStruct OmegaEngine.Graphics.Renderables.CpuParticle.Parameters2

The configuration this particle will take in its "second life"

Property Documentation

bool OmegaEngine.Graphics.Renderables.CpuParticle.Alive
getset

Is this particle currently alive/visible?

Color4 OmegaEngine.Graphics.Renderables.CpuParticle.Color
getset

The current color of this particle

DoubleVector3 OmegaEngine.Graphics.Renderables.CpuParticle.Position
getset

The particle's position in world space

bool OmegaEngine.Graphics.Renderables.CpuParticle.SecondLife
getset

Is this particle currently in its second life?

float OmegaEngine.Graphics.Renderables.CpuParticle.Size
getset

The current size of the particle

Vector3 OmegaEngine.Graphics.Renderables.CpuParticle.Velocity
getset

The movement of this particle in one second


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