C# Class ParticleDemo2.ParticleSystemGS

Inheritance: GameService
显示文件 Open project: demiurghg/FusionEngine

Public Methods

Method Description
AddParticle ( System.Vector2 pos, System.Vector2 vel, float lifeTime, float size0, float size1, float colorBoost = 1 ) : void

Adds random particle at specified position

Draw ( GameTime gameTime, StereoEye stereoEye ) : void

Initialize ( ) : void

ParticleSystemGS ( Game game ) : System

Update ( GameTime gameTime ) : void

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
Game_Reloading ( object sender, EventArgs e ) : void
RadialRandomVector ( ) : System.Vector2

Returns random radial vector

SwapParticleBuffers ( ) : void

Method Details

AddParticle() public method

Adds random particle at specified position
public AddParticle ( System.Vector2 pos, System.Vector2 vel, float lifeTime, float size0, float size1, float colorBoost = 1 ) : void
pos System.Vector2
vel System.Vector2
lifeTime float
size0 float
size1 float
colorBoost float
return void

Dispose() protected method

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

Draw() public method

public Draw ( GameTime gameTime, StereoEye stereoEye ) : void
gameTime GameTime
stereoEye StereoEye
return void

Initialize() public method

public Initialize ( ) : void
return void

ParticleSystemGS() public method

public ParticleSystemGS ( Game game ) : System
game Game
return System

Update() public method

public Update ( GameTime gameTime ) : void
gameTime GameTime
return void