![]() |
![]() |
![]() |
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
Header dxut.h Import library None Minimum operating systems Windows 98
See Also
Frame Events, LPDXUTCALLBACKFRAMEMOVE, LPDXUTCALLBACKFRAMERENDER, DXUTSetCallbackFrameRender