C# Class WarTornLands.DEBUG.CuteFrametimeCounterComponent

This is a game component that implements IUpdateable.
Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Afficher le fichier Open project: floAr/WarTornLands

Méthodes publiques

Свойство Type Description
FrametimeDangerDisplayColor Color
FrametimeDisplayColor Color
FrametimeDisplayPosition Vector2
ShowAveragedFrametime bool

Méthodes publiques

Méthode Description
CuteFrametimeCounterComponent ( Microsoft.Xna.Framework.Game game, bool showFrametimeText, bool showIcons ) : System
Draw ( GameTime gameTime ) : void
Initialize ( ) : void

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.

Update ( GameTime gameTime ) : void

Allows the game component to update itself.

Méthodes protégées

Méthode Description
LoadContent ( ) : void

Private Methods

Méthode Description
DrawIcon ( PerfIconType iconType, Vector2 position ) : void
FrametimeToPerfIcon ( float frameTime ) : PerfIconType

Method Details

CuteFrametimeCounterComponent() public méthode

public CuteFrametimeCounterComponent ( Microsoft.Xna.Framework.Game game, bool showFrametimeText, bool showIcons ) : System
game Microsoft.Xna.Framework.Game
showFrametimeText bool
showIcons bool
Résultat System

Draw() public méthode

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Initialize() public méthode

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.
public Initialize ( ) : void
Résultat void

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

Property Details

FrametimeDangerDisplayColor public_oe property

public Color FrametimeDangerDisplayColor
Résultat Color

FrametimeDisplayColor public_oe property

public Color FrametimeDisplayColor
Résultat Color

FrametimeDisplayPosition public_oe property

public Vector2 FrametimeDisplayPosition
Résultat Vector2

ShowAveragedFrametime public_oe property

public bool ShowAveragedFrametime
Résultat bool