C# 클래스 DXUtil, FreeSO

Generic utility functions for our samples
파일 보기 프로젝트 열기: RHY3756547/FreeSO 1 사용 예제들

공개 메소드들

메소드 설명
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