LPDXUTCALLBACKFRAMEMOVE
Microsoft DirectX 9.0 SDK Update (October 2004)

LPDXUTCALLBACKFRAMEMOVE Prototype


Application-defined callback function that allows for updating the scene. This function is called by the sample framework once each frame, before the application renders the scene.

Syntax

typedef VOID (CALLBACK *LPDXUTCALLBACKFRAMEMOVE)(      

    IDirect3DDevice9 *pd3dDevice,     DOUBLE fTime,     FLOAT fElapsedTime );

Parameters

pd3dDevice
[in] IDirect3DDevice9 device used for rendering.
fTime
[in] Time elapsed since the application started, in seconds.
fElapsedTime
[in] Time elapsed since the last frame, in seconds.

Return Value

No return value.

Remarks

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

This callback function will be called once per frame, but the LPDXUTCALLBACKFRAMERENDER callback function will be called whenever the scene needs to be rendered, which might be more than once per frame.

Prototype Information

Headerdxut.h
Import libraryNone
Minimum operating systems Windows 98

See Also

Frame Events, DXUTSetCallbackFrameMove, DXUTSetCallbackFrameRender, 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.