LPDXUTCALLBACKFRAMERENDER

Application-defined callback function that allows for updating the scene. This function is called by DXUT at the end of every frame, and whenever the application needs to paint the scene.

VOID LPDXUTCALLBACKFRAMERENDER(
  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 render the current scene. The framework calls this function whenever the scene needs to be rendered or painted, but not if rendering is paused.

The framework will call this function after the LPDXUTCALLBACKFRAMEMOVE callback function.

Requirements

Header: Declared in Dxut.h.

See Also

DXUTSetCallbackFrameRender, DXUTSetCallbackFrameMove, LPDXUTCALLBACKFRAMEMOVE