Свойство | Тип | Описание | |
---|---|---|---|
settings |
Метод | Описание | |
---|---|---|
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 ( |
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 ( |
Updates the particle system.
|
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void | ||
InitializeSettings ( |
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.
|
public AddNewParticlesToVertexBuffer ( ) : void | ||
Результат | void |
public AddParticle ( Vector3 position, Vector3 velocity ) : void | ||
position | Vector3 | |
velocity | Vector3 | |
Результат | void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Результат | void |
public Draw ( |
||
gameTime | ||
Результат | void |
protected abstract InitializeSettings ( |
||
settings | ||
Результат | void |
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 | |
Результат | System |
public SetCamera ( Matrix &view, Matrix &projection ) : void | ||
view | Matrix | |
projection | Matrix | |
Результат | void |
public Update ( |
||
gameTime | ||
Результат | void |