mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement DXUTPresentIntervalToString(...)
This commit is contained in:
parent
7a012d4c86
commit
d8b2b2b92b
@ -72,3 +72,21 @@ TCHAR* DXUTVertexProcessingTypeToString(DWORD vpt)
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------
|
||||
// Returns the string for the given present interval.
|
||||
//--------------------------------------------------------------------------------------
|
||||
TCHAR* DXUTPresentIntervalToString( UINT pi )
|
||||
{
|
||||
switch( pi )
|
||||
{
|
||||
case D3DPRESENT_INTERVAL_IMMEDIATE: return "D3DPRESENT_INTERVAL_IMMEDIATE";
|
||||
case D3DPRESENT_INTERVAL_DEFAULT: return "D3DPRESENT_INTERVAL_DEFAULT";
|
||||
case D3DPRESENT_INTERVAL_ONE: return "D3DPRESENT_INTERVAL_ONE";
|
||||
case D3DPRESENT_INTERVAL_TWO: return "D3DPRESENT_INTERVAL_TWO";
|
||||
case D3DPRESENT_INTERVAL_THREE: return "D3DPRESENT_INTERVAL_THREE";
|
||||
case D3DPRESENT_INTERVAL_FOUR: return "D3DPRESENT_INTERVAL_FOUR";
|
||||
default: return "Unknown PresentInterval";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user