C# Class Fusion.Engine.Graphics.ParticleSystem

Represents particle rendering and simulation system. 1. http://www.gdcvault.com/play/1014347/HALO-REACH-Effects 2. Gareth Thomas Compute-based GPU Particle
Inheritance: System.DisposableBase
Mostrar archivo Open project: demiurghg/FusionEngine Class Usage Examples

Private Properties

Property Type Description
ClearParticleBuffer void
EnumAction void
LoadContent void
ParticleSystem System
ParticleSystem System
RadialRandomVector Vector2
Render void
RenderGeneric void
RenderShadow void
SetupGPUParameters void
Simulate void
Simulate void
SwapParticleBuffers void

Public Methods

Method Description
InjectParticle ( Particle particle ) : void

Injects hard particle.

InjectParticle ( Vector2 pos, Vector2 vel, float lifeTime, float size0, float size1, float colorBoost = 1 ) : void

Injects hard particle.

KillParticles ( ) : void

Immediatly kills all living particles.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
ClearParticleBuffer ( ) : void

Makes all particles wittingly dead

EnumAction ( PipelineState ps, Flags flag ) : void

LoadContent ( object sender, EventArgs args ) : void

Loads content

ParticleSystem ( RenderSystem rs, RenderWorld renderWorld ) : System

ParticleSystem ( RenderSystem rs, ViewLayerHdr viewLayer ) : System

RadialRandomVector ( ) : Vector2

Returns random radial vector

Render ( GameTime gameTime, Camera camera, StereoEye stereoEye, HdrFrame viewFrame ) : void

RenderGeneric ( string passName, GameTime gameTime, Camera camera, Viewport viewport, Matrix view, Matrix projection, RenderTargetSurface colorTarget, DepthStencilSurface depthTarget, ShaderResource depthValues, Flags flags ) : void

RenderShadow ( GameTime gameTime, Viewport viewport, Matrix view, Matrix projection, RenderTargetSurface particleShadow, DepthStencilSurface depthBuffer ) : void

SetupGPUParameters ( float stepTime, RenderWorld renderWorld, Matrix view, Matrix projection, Flags flags ) : void

Simulate ( GameTime gameTime ) : void

Updates particle properties.

Simulate ( GameTime gameTime, Camera camera ) : void

Updates particle properties.

SwapParticleBuffers ( ) : void

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

InjectParticle() public method

Injects hard particle.
public InjectParticle ( Particle particle ) : void
particle Particle
return void

InjectParticle() public method

Injects hard particle.
public InjectParticle ( Vector2 pos, Vector2 vel, float lifeTime, float size0, float size1, float colorBoost = 1 ) : void
pos Vector2
vel Vector2
lifeTime float
size0 float
size1 float
colorBoost float
return void

KillParticles() public method

Immediatly kills all living particles.
public KillParticles ( ) : void
return void