C# 클래스 UHSampleGame.ProjectileManagment.ParticleSystem

The main component in charge of displaying particles.
상속: Microsoft.Xna.Framework.DrawableGameComponent
파일 보기 프로젝트 열기: holtkampw/UH-Sample-XNA-Project 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
settings ParticleSettings

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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.

메소드 상세

AddNewParticlesToVertexBuffer() 공개 메소드

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

AddParticle() 공개 메소드

Adds a new particle to the system.
public AddParticle ( Vector3 position, Vector3 velocity ) : void
position Vector3
velocity Vector3
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

Draw() 공개 메소드

Draws the particle system.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

FreeRetiredParticles() 공개 메소드

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
리턴 void

Initialize() 공개 메소드

Initializes the component.
public Initialize ( ) : void
리턴 void

InitializeSettings() 보호된 추상적인 메소드

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

LoadContent() 보호된 메소드

Loads graphics for the particle system.
protected LoadContent ( ) : void
리턴 void

LoadParticleEffect() 공개 메소드

Helper for loading and initializing the particle effect.
public LoadParticleEffect ( ) : void
리턴 void

ParticleSystem() 보호된 메소드

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
리턴 System

RetireActiveParticles() 공개 메소드

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
리턴 void

SetCamera() 공개 메소드

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
리턴 void

Update() 공개 메소드

Updates the particle system.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

프로퍼티 상세

settings 공개적으로 프로퍼티

public ParticleSettings,UHSampleGame.ProjectileManagment settings
리턴 ParticleSettings