C# Класс ParticleEngine.Gametime.GameTimeManager

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
targetFPS int

Private Properties

Свойство Тип Описание
GameTimeManager System

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
GameTimeManager ( ) : System

Описание методов

DrawMSLeftThisFrame() публичный Метод

Gets the amount of MS that is left to draw this frame.
public DrawMSLeftThisFrame ( ) : double
Результат double

GetInstance() публичный статический Метод

public static GetInstance ( ) : GameTimeManager
Результат GameTimeManager

OnStartDraw() публичный Метод

Updates all the variables in the manager. Should only be called at the very beginning of the Draw loop!
public OnStartDraw ( ) : void
Результат void

OnStartUpdate() публичный Метод

Updates all the variables in the manager. Should only be called at the very beginning of the Update loop!
public OnStartUpdate ( ) : void
Результат void

UpdateMSLeftThisFrame() публичный Метод

Gets the amount of MS that is left to update this frame.
public UpdateMSLeftThisFrame ( ) : double
Результат double

Описание свойств

targetFPS публичное свойство

public int targetFPS
Результат int