C# Class ParticleDemo.ParticleSystem

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 ( Fusion.GameTime gameTime, Fusion stereoEye ) : void

Initialize ( ) : void

ParticleSystem ( Game game ) : System

Update ( Fusion.GameTime gameTime ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
ClearParticleBuffer ( ) : void

Makes all particles wittingly dead

Game_Reloading ( object sender, EventArgs e ) : void
RadialRandomVector ( ) : System.Vector2

Returns random radial vector

StateEnum ( Fusion.Graphics.PipelineState ps, Flags flags ) : 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 ( Fusion.GameTime gameTime, Fusion stereoEye ) : void
gameTime Fusion.GameTime
stereoEye Fusion
return void

Initialize() public method

public Initialize ( ) : void
return void

ParticleSystem() public method

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

Update() public method

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