C# Class UHSampleGame.ProjectileManagment.ParticleSystem

The main component in charge of displaying particles.
Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Afficher le fichier Open project: holtkampw/UH-Sample-XNA-Project Class Usage Examples

Méthodes publiques

Свойство Type Description
settings ParticleSettings

Méthodes publiques

Méthode Description
AddNewParticlesToVertexBuffer ( ) : void

Helper for uploading new particles from our managed array to the GPU vertex buffer.

AddParticle ( Vector3 position, Vector3 velocity ) : void

Adds a new particle to the system.

Draw ( GameTime gameTime ) : void

Draws the particle system.

FreeRetiredParticles ( ) : void

Helper for checking when retired particles have been kept around long enough that we can be sure the GPU is no longer using them. It moves old particles from the retired area of the queue to the free section.

Initialize ( ) : void

Initializes the component.

LoadParticleEffect ( ) : void

Helper for loading and initializing the particle effect.

RetireActiveParticles ( ) : void

Helper for checking when active particles have reached the end of their life. It moves old particles from the active area of the queue to the retired section.

SetCamera ( Matrix &view, Matrix &projection ) : void

Sets the camera view and projection matrices that will be used to draw this particle system.

Update ( GameTime gameTime ) : void

Updates the particle system.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
InitializeSettings ( ParticleSettings settings ) : void

Derived particle system classes should override this method and use it to initalize their tweakable settings.

LoadContent ( ) : void

Loads graphics for the particle system.

ParticleSystem ( Microsoft.Xna.Framework.Game game, Microsoft.Xna.Framework.Content.ContentManager content ) : System

Constructor.

Method Details

AddNewParticlesToVertexBuffer() public méthode

Helper for uploading new particles from our managed array to the GPU vertex buffer.
public AddNewParticlesToVertexBuffer ( ) : void
Résultat void

AddParticle() public méthode

Adds a new particle to the system.
public AddParticle ( Vector3 position, Vector3 velocity ) : void
position Vector3
velocity Vector3
Résultat void

Dispose() protected méthode

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

Draw() public méthode

Draws the particle system.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

FreeRetiredParticles() public méthode

Helper for checking when retired particles have been kept around long enough that we can be sure the GPU is no longer using them. It moves old particles from the retired area of the queue to the free section.
public FreeRetiredParticles ( ) : void
Résultat void

Initialize() public méthode

Initializes the component.
public Initialize ( ) : void
Résultat void

InitializeSettings() protected abstract méthode

Derived particle system classes should override this method and use it to initalize their tweakable settings.
protected abstract InitializeSettings ( ParticleSettings settings ) : void
settings ParticleSettings
Résultat void

LoadContent() protected méthode

Loads graphics for the particle system.
protected LoadContent ( ) : void
Résultat void

LoadParticleEffect() public méthode

Helper for loading and initializing the particle effect.
public LoadParticleEffect ( ) : void
Résultat void

ParticleSystem() protected méthode

Constructor.
protected ParticleSystem ( Microsoft.Xna.Framework.Game game, Microsoft.Xna.Framework.Content.ContentManager content ) : System
game Microsoft.Xna.Framework.Game
content Microsoft.Xna.Framework.Content.ContentManager
Résultat System

RetireActiveParticles() public méthode

Helper for checking when active particles have reached the end of their life. It moves old particles from the active area of the queue to the retired section.
public RetireActiveParticles ( ) : void
Résultat void

SetCamera() public méthode

Sets the camera view and projection matrices that will be used to draw this particle system.
public SetCamera ( Matrix &view, Matrix &projection ) : void
view Matrix
projection Matrix
Résultat void

Update() public méthode

Updates the particle system.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Property Details

settings public_oe property

public ParticleSettings,UHSampleGame.ProjectileManagment settings
Résultat ParticleSettings