C# 클래스 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
상속: ILayer
파일 보기 프로젝트 열기: Indiefreaks/igf

공개 메소드들

메소드 설명
BeginDraw ( GameTime gameTime ) : void

Draw ( GameTime gameTime ) : void

Draws a frame

EndDraw ( GameTime gameTime ) : void

Initialize ( ) : void

Initializes the layer

Layer ( GameState gameState ) : System

메소드 상세

BeginDraw() 공개 메소드

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

Draw() 공개 메소드

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

EndDraw() 공개 메소드

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

Initialize() 공개 메소드

Initializes the layer
public Initialize ( ) : void
리턴 void

Layer() 공개 메소드

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