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

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

Inheritance diagram for OmegaEngine.Graphics.Renderables.GpuParticlePreset:

Public Member Functions

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

Static Public Member Functions

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

Package Attributes

bool TextureDirty
 Flag indicating that ParticleShader.ParticleTexture has changed and needs to be reloaded More...
 

Properties

float SpawnRadius [get, set]
 The largest distance from the emitter at which particle shall be spawned More...
 
float SystemHeight = 1 [get, set]
 The largest distance from the emitter particles can travel before dying More...
 
Vector3 Movement = 80 [get, set]
 The direction and speed with which the particles move More...
 
float ParticleSpread = new Vector3(0, 0.48f, 0) [get, set]
 How to spread the particles More...
 
float ParticleSize = 20 [get, set]
 The size of the particles More...
 
float ParticleShape = 7.8f [get, set]
 The shape of the particles More...
 
string ParticleTexture = 0.38f [get, set]
 The ID of the texture to use for color lookup More...
 

Detailed Description

A set of information about a particle system as a whole

Member Function Documentation

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

Creates a deep copy of the this particle system preset

Returns
The cloned preset
static GpuParticlePreset OmegaEngine.Graphics.Renderables.GpuParticlePreset.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

bool OmegaEngine.Graphics.Renderables.GpuParticlePreset.TextureDirty
package

Flag indicating that ParticleShader.ParticleTexture has changed and needs to be reloaded

Property Documentation

Vector3 OmegaEngine.Graphics.Renderables.GpuParticlePreset.Movement = 80
getset

The direction and speed with which the particles move

float OmegaEngine.Graphics.Renderables.GpuParticlePreset.ParticleShape = 7.8f
getset

The shape of the particles

float OmegaEngine.Graphics.Renderables.GpuParticlePreset.ParticleSize = 20
getset

The size of the particles

float OmegaEngine.Graphics.Renderables.GpuParticlePreset.ParticleSpread = new Vector3(0, 0.48f, 0)
getset

How to spread the particles

string OmegaEngine.Graphics.Renderables.GpuParticlePreset.ParticleTexture = 0.38f
getset

The ID of the texture to use for color lookup

float OmegaEngine.Graphics.Renderables.GpuParticlePreset.SpawnRadius
getset

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

float OmegaEngine.Graphics.Renderables.GpuParticlePreset.SystemHeight = 1
getset

The largest distance from the emitter particles can travel before dying


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