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
Afficher le fichier Open project: demiurghg/FusionEngine Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode 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 méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

InjectParticle() public méthode

Injects hard particle.
public InjectParticle ( Particle particle ) : void
particle Particle
Résultat void

InjectParticle() public méthode

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
Résultat void

KillParticles() public méthode

Immediatly kills all living particles.
public KillParticles ( ) : void
Résultat void