C# Class WarTornLands.DEBUG.CuteFrametimeCounterComponent

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

Public Properties

Property Type Description
FrametimeDangerDisplayColor Color
FrametimeDisplayColor Color
FrametimeDisplayPosition Vector2
ShowAveragedFrametime bool

Public Methods

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

Protected Methods

Method Description
LoadContent ( ) : void

Private Methods

Method Description
DrawIcon ( PerfIconType iconType, Vector2 position ) : void
FrametimeToPerfIcon ( float frameTime ) : PerfIconType

Method Details

CuteFrametimeCounterComponent() public method

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

Draw() public method

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

Initialize() public method

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

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

Property Details

FrametimeDangerDisplayColor public_oe property

public Color FrametimeDangerDisplayColor
return Color

FrametimeDisplayColor public_oe property

public Color FrametimeDisplayColor
return Color

FrametimeDisplayPosition public_oe property

public Vector2 FrametimeDisplayPosition
return Vector2

ShowAveragedFrametime public_oe property

public bool ShowAveragedFrametime
return bool