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
Afficher le fichier Open project: Indiefreaks/igf

Méthodes publiques

Méthode 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 méthode

public BeginDraw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Draw() public méthode

Draws a frame
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

EndDraw() public méthode

public EndDraw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Initialize() public méthode

Initializes the layer
public Initialize ( ) : void
Résultat void

Layer() public méthode

public Layer ( GameState gameState ) : System
gameState Indiefreaks.Xna.Core.GameState
Résultat System