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
Afficher le fichier Open project: mahmoudbahaa/XNA-Game-project Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
LoadContent ( ) : void

Method Details

Draw() public méthode

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

FrameRateCounter() public méthode

public FrameRateCounter ( Game game ) : System
game Game
Résultat System

LoadContent() protected méthode

protected LoadContent ( ) : void
Résultat void

Update() public méthode

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