C# Class ProjectMercury.Renderers.QuadRenderer

Inheritance: ProjectMercury.Renderers.AbstractRenderer
Mostrar archivo Open project: Indiefreaks/igf

Private Properties

Property Type Description
LoadContent void
VertexDeclaration System

Public Methods

Method Description
QuadRenderer ( ) : System
QuadRenderer ( int bufferSize ) : System

Creates a new QuadRenderer

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

PreRender ( Matrix &worldMatrix, Matrix &viewMatrix, Matrix &projectionMatrix ) : void

Allows the renderer class to perform one time set up for each particle effect.

At this stage the will have its world, view and projection matrices set, as well as the camera position. Other properties such as the particle pointer or blend state will not be set.

Render ( RenderContext &context, ParticleIterator &iterator ) : void

Performs rendering of particles.

Private Methods

Method Description
LoadContent ( ContentManager content ) : void
VertexDeclaration ( ) : System

Method Details

Dispose() protected method

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

PreRender() protected method

Allows the renderer class to perform one time set up for each particle effect.
At this stage the will have its world, view and projection matrices set, as well as the camera position. Other properties such as the particle pointer or blend state will not be set.
protected PreRender ( Matrix &worldMatrix, Matrix &viewMatrix, Matrix &projectionMatrix ) : void
worldMatrix Matrix
viewMatrix Matrix
projectionMatrix Matrix
return void

QuadRenderer() public method

public QuadRenderer ( ) : System
return System

QuadRenderer() public method

Creates a new QuadRenderer
public QuadRenderer ( int bufferSize ) : System
bufferSize int
return System

Render() protected method

Performs rendering of particles.
protected Render ( RenderContext &context, ParticleIterator &iterator ) : void
context RenderContext The render context containing rendering information.
iterator ParticleIterator The particle iterator object.
return void