C# Class DXUtil, FreeSO

Generic utility functions for our samples
Afficher le fichier Open project: RHY3756547/FreeSO Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

FindMediaFile() public static méthode

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
Résultat string

Timer() public static méthode

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
Résultat float