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