C# Class Indiefreaks.Xna.Rendering.Layer

Represents a Rendering layer. Used to separate multiple rendering logic.
Each Layer instance is added to its GameState in a given order and its Update and Draw methods are called using the same. This allows the developer to, for instance, have: - A layer responsible to render a Skybox - A layer responsible to render the 3D world - A layer responsible to render a Radar - A layer responsible to render some HUD - A layer responsible to render in game pause menu
Inheritance: ILayer
Exibir arquivo Open project: Indiefreaks/igf

Public Methods

Method Description
BeginDraw ( GameTime gameTime ) : void

Draw ( GameTime gameTime ) : void

Draws a frame

EndDraw ( GameTime gameTime ) : void

Initialize ( ) : void

Initializes the layer

Layer ( GameState gameState ) : System

Method Details

BeginDraw() public method

public BeginDraw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Draw() public method

Draws a frame
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

EndDraw() public method

public EndDraw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Initialize() public method

Initializes the layer
public Initialize ( ) : void
return void

Layer() public method

public Layer ( GameState gameState ) : System
gameState Indiefreaks.Xna.Core.GameState
return System