C# Класс DXUtil, FreeSO

Generic utility functions for our samples
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
FindMediaFile ( string path, string filename ) : string

Returns a valid path to a DXSDK media file

Timer ( DirectXTimer command ) : float

Performs timer opertations. Use the following commands: DirectXTimer.Reset - to reset the timer DirectXTimer.Start - to start the timer DirectXTimer.Stop - to stop (or pause) the timer DirectXTimer.Advance - to advance the timer by 0.1 seconds DirectXTimer.GetAbsoluteTime - to get the absolute system time DirectXTimer.GetApplicationTime - to get the current time DirectXTimer.GetElapsedTime - to get the time that elapsed between TIMER_GETELAPSEDTIME calls

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

Метод Описание
AppendDirectorySeparator ( string filename ) : string

Returns a valid string with a directory separator at the end.

DXUtil ( ) : System
QueryPerformanceCounter ( long &PerformanceCount ) : bool
QueryPerformanceFrequency ( long &PerformanceFrequency ) : bool
timeGetTime ( ) : int

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

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

Returns a valid path to a DXSDK media file
public static FindMediaFile ( string path, string filename ) : string
path string Initial path to search
filename string Filename we're searching for
Результат string

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

Performs timer opertations. Use the following commands: DirectXTimer.Reset - to reset the timer DirectXTimer.Start - to start the timer DirectXTimer.Stop - to stop (or pause) the timer DirectXTimer.Advance - to advance the timer by 0.1 seconds DirectXTimer.GetAbsoluteTime - to get the absolute system time DirectXTimer.GetApplicationTime - to get the current time DirectXTimer.GetElapsedTime - to get the time that elapsed between TIMER_GETELAPSEDTIME calls
public static Timer ( DirectXTimer command ) : float
command DirectXTimer
Результат float