C# 클래스 Indiefreaks.Xna.Rendering.Gui.GuiManager

The GuiManager is responsible for the Screens Update and Rendering
상속: IGuiManager
파일 보기 프로젝트 열기: Indiefreaks/igf

공개 메소드들

메소드 설명
AddScreen ( Screen screen ) : void

Create a new Screen instance, adds it to the Screens managed here and returns it

ApplyPreferences ( ISystemPreferences preferences ) : void

Called when the game code sets the manager or SceneInterface preferences.

BeginFrameRendering ( ISceneState scenestate ) : void

Called when the game begins rendering the current frame.

Clear ( ) : void

Called when the game clears the engine of objects (generally when clearing the current level / scene and before loading the next one).

EndFrameRendering ( ) : void

Called when the game finishes rendering the current frame.

GuiManager ( IManagerServiceProvider sceneInterface ) : System

Creates a new instance

RemoveScreen ( Screen screen ) : void

Removes the provided Screen from the GuiManager

Render ( ) : void

Renders the scene.

Unload ( ) : void

Called when the game's graphics and disposable resources are no longer used or are invalid (due to exiting the game or the graphics device resetting). All resources should be disposed before exiting this method.

Update ( GameTime gametime ) : void

Called during Game.Update() to allow processing at regular intervals.

메소드 상세

AddScreen() 공개 메소드

Create a new Screen instance, adds it to the Screens managed here and returns it
public AddScreen ( Screen screen ) : void
screen Screen
리턴 void

ApplyPreferences() 공개 메소드

Called when the game code sets the manager or SceneInterface preferences.
public ApplyPreferences ( ISystemPreferences preferences ) : void
preferences ISystemPreferences
리턴 void

BeginFrameRendering() 공개 메소드

Called when the game begins rendering the current frame.
public BeginFrameRendering ( ISceneState scenestate ) : void
scenestate ISceneState
리턴 void

Clear() 공개 메소드

Called when the game clears the engine of objects (generally when clearing the current level / scene and before loading the next one).
public Clear ( ) : void
리턴 void

EndFrameRendering() 공개 메소드

Called when the game finishes rendering the current frame.
public EndFrameRendering ( ) : void
리턴 void

GuiManager() 공개 메소드

Creates a new instance
public GuiManager ( IManagerServiceProvider sceneInterface ) : System
sceneInterface IManagerServiceProvider
리턴 System

RemoveScreen() 공개 메소드

Removes the provided Screen from the GuiManager
public RemoveScreen ( Screen screen ) : void
screen Screen
리턴 void

Render() 공개 메소드

Renders the scene.
public Render ( ) : void
리턴 void

Unload() 공개 메소드

Called when the game's graphics and disposable resources are no longer used or are invalid (due to exiting the game or the graphics device resetting). All resources should be disposed before exiting this method.
public Unload ( ) : void
리턴 void

Update() 공개 메소드

Called during Game.Update() to allow processing at regular intervals.
public Update ( GameTime gametime ) : void
gametime Microsoft.Xna.Framework.GameTime
리턴 void