C# Class ParticleEngine.Gametime.GameTimeManager

ファイルを表示 Open project: Wotuu/RTS_XNA_v2 Class Usage Examples

Public Properties

Property Type Description
targetFPS int

Private Properties

Property Type Description
GameTimeManager System

Public Methods

Method Description
DrawMSLeftThisFrame ( ) : double

Gets the amount of MS that is left to draw this frame.

GetInstance ( ) : GameTimeManager
OnStartDraw ( ) : void

Updates all the variables in the manager. Should only be called at the very beginning of the Draw loop!

OnStartUpdate ( ) : void

Updates all the variables in the manager. Should only be called at the very beginning of the Update loop!

UpdateMSLeftThisFrame ( ) : double

Gets the amount of MS that is left to update this frame.

Private Methods

Method Description
GameTimeManager ( ) : System

Method Details

DrawMSLeftThisFrame() public method

Gets the amount of MS that is left to draw this frame.
public DrawMSLeftThisFrame ( ) : double
return double

GetInstance() public static method

public static GetInstance ( ) : GameTimeManager
return GameTimeManager

OnStartDraw() public method

Updates all the variables in the manager. Should only be called at the very beginning of the Draw loop!
public OnStartDraw ( ) : void
return void

OnStartUpdate() public method

Updates all the variables in the manager. Should only be called at the very beginning of the Update loop!
public OnStartUpdate ( ) : void
return void

UpdateMSLeftThisFrame() public method

Gets the amount of MS that is left to update this frame.
public UpdateMSLeftThisFrame ( ) : double
return double

Property Details

targetFPS public_oe property

public int targetFPS
return int