LPDXUTCALLBACKFRAMERENDER
Microsoft DirectX 9.0 SDK Update (October 2004)

LPDXUTCALLBACKFRAMERENDER Prototype


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

Syntax

typedef VOID (CALLBACK *LPDXUTCALLBACKFRAMERENDER)(      

    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 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.

Prototype Information

Headerdxut.h
Import libraryNone
Minimum operating systems Windows 98

See Also

Frame Events, DXUTSetCallbackFrameRender, DXUTSetCallbackFrameMove, LPDXUTCALLBACKFRAMEMOVE


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