DXUT暫停函數(shù)
函數(shù) |
描述 |
DXUTPause |
將框架的內(nèi)部計(jì)數(shù)器和(或)渲染過(guò)程設(shè)為暫停狀態(tài) |
DXUTRenderingPaused |
檢查當(dāng)前設(shè)備的渲染狀態(tài)是否處在暫停狀態(tài) |
DXUTIsTimePaused |
檢查當(dāng)前設(shè)備的計(jì)時(shí)器是否處在暫停狀態(tài) |
DXUTPause
Sets the paused state of DXUT internal timer and/or rendering process.
VOID DXUTPause(
BOOL bPauseTime ,
BOOL bPauseRendering
) ;
Parameters
- bPauseTime
- [in] If TRUE, DXUT internal timer is paused. If FALSE, the timer is resumed from a paused state. See Remarks.
- bPauseRendering
- [in] If TRUE, DXUT will not call the LPDXUTCALLBACKD3D10FRAMERENDER callback function; DXUT will continue to call the LPDXUTCALLBACKFRAMEMOVE callback function. If FALSE, rendering will resume from a paused state. See Remarks.
Return Values
No return value.
Remarks
The timer controls the fTime and fElapsedTime parameters passed to the LPDXUTCALLBACKFRAMEMOVE or render callback functions.
When time is paused, fTime will remain unchanged and fElapsedTime will be 0.0f. The LPDXUTCALLBACKFRAMEMOVE and the render callback functions will still be called. This allows a camera to still move while time is paused.
When rendering is paused, the render callback function and the Direct3D Present method will not be called, and DXUT will periodically yield time to other processes by calling Sleep.
DXUTIsRenderingPaused
Indicates whether rendering has been paused in DXUT.
BOOL DXUTIsRenderingPaused() ;
Parameters
None.
Return Values
TRUE if rendering has been paused in DXUT.
DXUTIsTimePaused
Indicates whether time has been paused in DXUT.
BOOL DXUTIsTimePaused() ;
Parameters
None.
Return Values
TRUE if time has been paused in DXUT.
DXUT用戶輸入函數(shù)
函數(shù) |
描述 |
DXUTIsKeyDown |
檢查當(dāng)該函數(shù)調(diào)用時(shí),鍵盤(pán)上指定的某個(gè)鍵是否按下。 |
DXUTIsMouseButtonDown |
檢查當(dāng)該函數(shù)調(diào)用時(shí),指定的鼠標(biāo)鍵是否按下。 |
DXUTIsKeyDown
Indicates whether a specified keyboard key is up or down at the time the function is called.
BOOL DXUTIsKeyDown(
BYTE vKey
) ;
Parameters
- vKey
- [in] Virtual key code of a keyboard key. For example VK_F1, VK_LSHIFT, VK_RCONTROL, VK_RMENU, and 41 (representing the 'A' key).
Return Values
TRUE if the specified vKey keyboard key is down; FALSE otherwise.
DXUTIsMouseButtonDown
Indicates whether a specified mouse button is up or down at the time the function is called.
BOOL DXUTIsMouseButtonDown(
BYTE vButton
) ;
Parameters
- vButton
- [in] Virtual key code of a mouse button. Allowed values are VK_LBUTTON, VK_RBUTTON, VK_MBUTTON, VK_XBUTTON1, and VK_XBUTTON2.
Return Values
TRUE if the specified vButton mouse button is down; FALSE otherwise.