DXUTSetCallbackFrameMove
Microsoft DirectX 9.0 SDK Update (October 2004)

DXUTSetCallbackFrameMove Function


Sets the frame update callback function.

Syntax

VOID DXUTSetCallbackFrameMove(      

    LPDXUTCALLBACKFRAMEMOVE pCallbackFrameMove );

Parameters

pCallbackFrameMove
[in] Pointer to a LPDXUTCALLBACKFRAMEMOVE callback function. If the callback function is supplied, it will be called at the beginning of every frame to facilitate updates to the scene.

If NULL, the sample framework will not notify the application about new frames.

Return Value

No return value.

Remarks

The LPDXUTCALLBACKFRAMEMOVE callback function is the appropriate location for the application to handle updates to the scene. However, LPDXUTCALLBACKFRAMEMOVE is not intended to contain actual rendering calls, which should instead be placed in the LPDXUTCALLBACKFRAMERENDER callback function.

The LPDXUTCALLBACKFRAMEMOVE callback function will be called once per frame, while the LPDXUTCALLBACKFRAMERENDER callback function will be called when the scene needs to be rendered, which might be more than once per frame.

Function Information

Headerdxut.h
Import libraryNone
Minimum operating systems Windows 98

See Also

Frame Events, LPDXUTCALLBACKFRAMEMOVE, LPDXUTCALLBACKFRAMERENDER, DXUTSetCallbackFrameRender


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