C# Class Indiefreaks.Xna.Rendering.Gui.GuiManager

The GuiManager is responsible for the Screens Update and Rendering
Inheritance: IGuiManager
Mostra file Open project: Indiefreaks/igf

Public Methods

Method Description
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.

Method Details

AddScreen() public method

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

ApplyPreferences() public method

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

BeginFrameRendering() public method

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

Clear() public method

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
return void

EndFrameRendering() public method

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

GuiManager() public method

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

RemoveScreen() public method

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

Render() public method

Renders the scene.
public Render ( ) : void
return void

Unload() public method

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
return void

Update() public method

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