메소드 | 설명 | |
---|---|---|
AddParticle ( Vector3 position, Vector3 velocity ) : void |
Adds a new particle to the system.
|
|
SetCamera ( Matrix view, Matrix projection ) : void |
Sets the camera view and projection matrices that will be used to draw this particle system.
|
|
render ( |
Draws the particle system.
|
|
update ( |
Updates the particle system.
|
메소드 | 설명 | |
---|---|---|
InitializeSettings ( |
Derived particle system classes should override this method and use it to initalize their tweakable settings.
|
|
ParticleSystem ( Microsoft.Xna.Framework.Content.ContentManager content, GraphicsDevice graphics ) : System |
Constructor.
|
메소드 | 설명 | |
---|---|---|
AddNewParticlesToVertexBuffer ( ) : void |
Helper for uploading new particles from our managed array to the GPU vertex buffer.
|
|
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.
|
|
LoadParticleEffect ( GraphicsDevice graphics ) : 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.
|
|
SetParticleRenderStates ( RenderState renderState ) : void |
Helper for setting the renderstates used to draw particles.
|
public AddParticle ( Vector3 position, Vector3 velocity ) : void | ||
position | Vector3 | |
velocity | Vector3 | |
리턴 | void |
protected abstract InitializeSettings ( |
||
settings | ||
리턴 | void |
protected ParticleSystem ( Microsoft.Xna.Framework.Content.ContentManager content, GraphicsDevice graphics ) : System | ||
content | Microsoft.Xna.Framework.Content.ContentManager | |
graphics | GraphicsDevice | |
리턴 | System |
public SetCamera ( Matrix view, Matrix projection ) : void | ||
view | Matrix | |
projection | Matrix | |
리턴 | void |
public render ( |
||
gameTime | ||
device | GraphicsDevice | |
리턴 | void |
public update ( |
||
gameTime | ||
리턴 | void |