DXUTPause
Microsoft DirectX 9.0 SDK Update (October 2004)

DXUTPause Function


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 World Wide Web link.

Function Information

Headerdxut.h
Import libraryNone
Minimum operating systems Windows 98

See Also

DXUTSetCallbackFrameMove, DXUTSetCallbackFrameRender, LPDXUTCALLBACKFRAMEMOVE, LPDXUTCALLBACKFRAMERENDER


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.