C# Class MyGame.FrameRateCounter

This class represent the Framw rate counter that evaluates and draws the frame per sec on screen
Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Show file Open project: mahmoudbahaa/XNA-Game-project Class Usage Examples

Public Methods

Method Description
Draw ( GameTime gameTime ) : void

This method renders the current state.

FrameRateCounter ( Game game ) : System
Update ( GameTime gameTime ) : void

Allows the game component to update itself.

Protected Methods

Method Description
LoadContent ( ) : void

Method Details

Draw() public method

This method renders the current state.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The elapsed game time.
return void

FrameRateCounter() public method

public FrameRateCounter ( Game game ) : System
game Game
return System

LoadContent() protected method

protected LoadContent ( ) : void
return void

Update() public method

Allows the game component to update itself.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
return void