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 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 Values

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.

Requirements

Header: Declared in Dxut.h.

See Also

DXUTSetCallbackFrameMove, DXUTSetCallbackFrameRender, LPDXUTCALLBACKFRAMEMOVE, LPDXUTCALLBACKFRAMERENDER