![]() |
![]() |
![]() |
Sets the paused state of the sample framework internal timer and/or rendering process.
Syntax
VOID DXUTPause(
BOOL bPauseTime, BOOL bPauseRendering );
Parameters
- bPauseTime
- [in] If TRUE, the sample framework internal timer is paused. If FALSE, the timer is resumed from a paused state. See Remarks.
- bPauseRendering
- [in] If TRUE, the sample framework will not call the LPDXUTCALLBACKFRAMERENDER callback function; the framework will continue to call the LPDXUTCALLBACKFRAMEMOVE callback function. If FALSE, rendering will resume from a paused state. See Remarks.
Return Value
No return value.
Remarks
The timer controls the fTime and fElapsedTime parameters passed to the LPDXUTCALLBACKFRAMEMOVE or LPDXUTCALLBACKFRAMERENDER callback functions.
When time is paused, fTime will remain unchanged and fElapsedTime will be 0.0f. The LPDXUTCALLBACKFRAMEMOVE and LPDXUTCALLBACKFRAMERENDER callback functions will still be called. The camera can therefore move while time is paused.
When rendering is paused, the LPDXUTCALLBACKFRAMERENDER callback function and IDirect3DDevice9::Present will not be called, and the framework will periodically yield time to other processes by calling Sleep
.
Function Information
Header dxut.h Import library None Minimum operating systems Windows 98
See Also
DXUTSetCallbackFrameMove, DXUTSetCallbackFrameRender, LPDXUTCALLBACKFRAMEMOVE, LPDXUTCALLBACKFRAMERENDER