C# Class FarseerPhysics.Samples.ScreenSystem.LogoScreen

Inheritance: GameScreen
Show file Open project: tinco/Farseer-Physics

Public Methods

Method Description
Draw ( GameTime gameTime ) : void
HandleInput ( InputHelper input, GameTime gameTime ) : void
LoadContent ( ) : void

Loads graphics content for this screen. The background texture is quite big, so we use our own local ContentManager to load it. This allows us to unload before going from the menus into the game itself, wheras if we used the shared ContentManager provided by the Game class, the content would remain loaded forever.

LogoScreen ( System.TimeSpan duration ) : System
UnloadContent ( ) : void

Unloads graphics content for this screen.

Update ( GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void

Method Details

Draw() public method

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

HandleInput() public method

public HandleInput ( InputHelper input, GameTime gameTime ) : void
input InputHelper
gameTime Microsoft.Xna.Framework.GameTime
return void

LoadContent() public method

Loads graphics content for this screen. The background texture is quite big, so we use our own local ContentManager to load it. This allows us to unload before going from the menus into the game itself, wheras if we used the shared ContentManager provided by the Game class, the content would remain loaded forever.
public LoadContent ( ) : void
return void

LogoScreen() public method

public LogoScreen ( System.TimeSpan duration ) : System
duration System.TimeSpan
return System

UnloadContent() public method

Unloads graphics content for this screen.
public UnloadContent ( ) : void
return void

Update() public method

public Update ( GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void
gameTime Microsoft.Xna.Framework.GameTime
otherScreenHasFocus bool
coveredByOtherScreen bool
return void