LPDXUTCALLBACKFRAMEMOVE

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

VOID LPDXUTCALLBACKFRAMEMOVE(
  IDirect3DDevice9 * pd3dDevice,
  DOUBLE fTime,
  FLOAT fElapsedTime,
  void* pUserContext
);

Parameters

pd3dDevice
[in] Pointer to the 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.
pUserContext
[in] Pointer to a user-defined value which is passed to the callback function. Typically used by an application to pass a pointer to a data structure that provides context information for the callback function. The default value is NULL

Return Values

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.

Requirements

Header: Declared in Dxut.h.

See Also

DXUTSetCallbackFrameMove, DXUTSetCallbackFrameRender, LPDXUTCALLBACKFRAMERENDER