OmegaEngine API  1.0.3
Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
OmegaEngine.Graphics.Renderables.CpuParticlePreset Class Reference

A set of information about a particle system as a whole More...

Inheritance diagram for OmegaEngine.Graphics.Renderables.CpuParticlePreset:
NanoByte::Common::ICloneable< T >

Public Member Functions

CpuParticlePreset Clone ()
 Creates a deep copy of the this particle system preset More...
 

Static Public Member Functions

static CpuParticlePreset FromContent (string id)
 Loads a preset from an XML file via the ContentManager. More...
 

Public Attributes

bool InfiniteLifetime1 => LowerParameters1.LifeTime == CpuParticleParameters.InfiniteFlag || UpperParameters1.LifeTime == CpuParticleParameters.InfiniteFlag
 true CpuParticleParameters.LifeTime is set to CpuParticleParameters.InfiniteFlag for LowerParameters1 or UpperParameters1. More...
 
bool InfiniteLifetime2 => LowerParameters2.LifeTime == CpuParticleParameters.InfiniteFlag || UpperParameters2.LifeTime == CpuParticleParameters.InfiniteFlag
 true CpuParticleParameters.LifeTime is set to CpuParticleParameters.InfiniteFlag for LowerParameters2 or UpperParameters2. More...
 

Properties

CpuParticleParameters LowerParameters1 [get, set]
 The lower values of the range of parameters used to spawn new particles More...
 
CpuParticleParameters UpperParameters1 [get, set]
 The upper values of the range of parameters used to spawn new particles More...
 
CpuParticleParameters LowerParameters2 [get, set]
 The lower values of the range of parameters used to start particles' "second life" More...
 
CpuParticleParameters UpperParameters2 [get, set]
 The upper values of the range of parameters used to start particles' "second life" More...
 
float SpawnRate [get, set]
 How many new particles shall be spawned per second More...
 
float SpawnRadius [get, set]
 The largest distance from the emitter at which particle shall be spawned More...
 
int MaxParticles = 512 [get, set]
 The maximum number particles in existance at any one point in time More...
 
float EmitterRepelRange [get, set]
 How far the emitter's repelling force can reach More...
 
float EmitterRepelSpeed [get, set]
 How fast particles will be pushed away from the emitter's centre More...
 
float EmitterSuctionRange = 32768 [get, set]
 From where the emitter suction force starts to act More...
 
float EmitterSuctionSpeed [get, set]
 How fast particles will be sucked back to the emitter's centre More...
 
Vector3 Gravity [get, set]
 A permanent acceleration force applied to all particles More...
 
float RandomAcceleration [get, set]
 Randomly accelerate particles with up to the specified speed More...
 
float Speed = 1 [get, set]
 A factor by which all elapsed times are multiplied More...
 
float WarmupTime [get, set]
 How many seconds to "fast forward" the particle system before it's render the first time More...
 
string Particle1Texture [get, set]
 The ID of the texture to place on the particles More...
 
int Particle1Alpha [get, set]
 The level of transparency from 0 (solid) to 255 (invisible), EngineState.AlphaChannel, EngineState.BinaryAlphaChannel or EngineState.AdditivBlending More...
 
string Particle2Texture [get, set]
 The ID of the texture to place on the particles during their "second life" More...
 
int Particle2Alpha [get, set]
 The level of transparency from 0 (solid) to 255 (invisible) for particles' "second life", EngineState.AlphaChannel, EngineState.BinaryAlphaChannel or EngineState.AdditivBlending More...
 

Detailed Description

A set of information about a particle system as a whole

Member Function Documentation

◆ Clone()

CpuParticlePreset OmegaEngine.Graphics.Renderables.CpuParticlePreset.Clone ( )
inline

Creates a deep copy of the this particle system preset

Returns
The cloned preset

Implements NanoByte::Common::ICloneable< T >.

◆ FromContent()

static CpuParticlePreset OmegaEngine.Graphics.Renderables.CpuParticlePreset.FromContent ( string  id)
inlinestatic

Loads a preset from an XML file via the ContentManager.

Parameters
idThe ID of the XML file to load
Returns
The loaded preset
Exceptions
FileNotFoundExceptionThe specified file could not be found.
IOExceptionThere was an error reading the file.
UnauthorizedAccessExceptionRead access to the file is not permitted.
InvalidOperationExceptionA problem occurred while deserializing the XML data.

Member Data Documentation

◆ InfiniteLifetime1

bool OmegaEngine.Graphics.Renderables.CpuParticlePreset.InfiniteLifetime1 => LowerParameters1.LifeTime == CpuParticleParameters.InfiniteFlag || UpperParameters1.LifeTime == CpuParticleParameters.InfiniteFlag

true CpuParticleParameters.LifeTime is set to CpuParticleParameters.InfiniteFlag for LowerParameters1 or UpperParameters1.

◆ InfiniteLifetime2

bool OmegaEngine.Graphics.Renderables.CpuParticlePreset.InfiniteLifetime2 => LowerParameters2.LifeTime == CpuParticleParameters.InfiniteFlag || UpperParameters2.LifeTime == CpuParticleParameters.InfiniteFlag

true CpuParticleParameters.LifeTime is set to CpuParticleParameters.InfiniteFlag for LowerParameters2 or UpperParameters2.

Property Documentation

◆ EmitterRepelRange

float OmegaEngine.Graphics.Renderables.CpuParticlePreset.EmitterRepelRange
getset

How far the emitter's repelling force can reach

◆ EmitterRepelSpeed

float OmegaEngine.Graphics.Renderables.CpuParticlePreset.EmitterRepelSpeed
getset

How fast particles will be pushed away from the emitter's centre

◆ EmitterSuctionRange

float OmegaEngine.Graphics.Renderables.CpuParticlePreset.EmitterSuctionRange = 32768
getset

From where the emitter suction force starts to act

◆ EmitterSuctionSpeed

float OmegaEngine.Graphics.Renderables.CpuParticlePreset.EmitterSuctionSpeed
getset

How fast particles will be sucked back to the emitter's centre

◆ Gravity

Vector3 OmegaEngine.Graphics.Renderables.CpuParticlePreset.Gravity
getset

A permanent acceleration force applied to all particles

◆ LowerParameters1

CpuParticleParameters OmegaEngine.Graphics.Renderables.CpuParticlePreset.LowerParameters1
getset

The lower values of the range of parameters used to spawn new particles

◆ LowerParameters2

CpuParticleParameters OmegaEngine.Graphics.Renderables.CpuParticlePreset.LowerParameters2
getset

The lower values of the range of parameters used to start particles' "second life"

◆ MaxParticles

int OmegaEngine.Graphics.Renderables.CpuParticlePreset.MaxParticles = 512
getset

The maximum number particles in existance at any one point in time

◆ Particle1Alpha

int OmegaEngine.Graphics.Renderables.CpuParticlePreset.Particle1Alpha
getset

The level of transparency from 0 (solid) to 255 (invisible), EngineState.AlphaChannel, EngineState.BinaryAlphaChannel or EngineState.AdditivBlending

◆ Particle1Texture

string OmegaEngine.Graphics.Renderables.CpuParticlePreset.Particle1Texture
getset

The ID of the texture to place on the particles

◆ Particle2Alpha

int OmegaEngine.Graphics.Renderables.CpuParticlePreset.Particle2Alpha
getset

The level of transparency from 0 (solid) to 255 (invisible) for particles' "second life", EngineState.AlphaChannel, EngineState.BinaryAlphaChannel or EngineState.AdditivBlending

◆ Particle2Texture

string OmegaEngine.Graphics.Renderables.CpuParticlePreset.Particle2Texture
getset

The ID of the texture to place on the particles during their "second life"

◆ RandomAcceleration

float OmegaEngine.Graphics.Renderables.CpuParticlePreset.RandomAcceleration
getset

Randomly accelerate particles with up to the specified speed

◆ SpawnRadius

float OmegaEngine.Graphics.Renderables.CpuParticlePreset.SpawnRadius
getset

The largest distance from the emitter at which particle shall be spawned

◆ SpawnRate

float OmegaEngine.Graphics.Renderables.CpuParticlePreset.SpawnRate
getset

How many new particles shall be spawned per second

◆ Speed

float OmegaEngine.Graphics.Renderables.CpuParticlePreset.Speed = 1
getset

A factor by which all elapsed times are multiplied

◆ UpperParameters1

CpuParticleParameters OmegaEngine.Graphics.Renderables.CpuParticlePreset.UpperParameters1
getset

The upper values of the range of parameters used to spawn new particles

◆ UpperParameters2

CpuParticleParameters OmegaEngine.Graphics.Renderables.CpuParticlePreset.UpperParameters2
getset

The upper values of the range of parameters used to start particles' "second life"

◆ WarmupTime

float OmegaEngine.Graphics.Renderables.CpuParticlePreset.WarmupTime
getset

How many seconds to "fast forward" the particle system before it's render the first time


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