DXUTSetCallbackFrameRender
Sets the frame render callback function.
VOID DXUTSetCallbackFrameRender(
LPDXUTCALLBACKFRAMERENDER pCallbackFrameRender,
void* pUserContext
);
Parameters
- pCallbackFrameRender
- [in] Pointer to a LPDXUTCALLBACKFRAMERENDER callback function. If the callback function is supplied, it will be called at the end of every frame to facilitate rendering of the scene. If NULL, DXUT will not prompt the application to render the scene.
- 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
The LPDXUTCALLBACKFRAMERENDER callback function is the appropriate location for the application to render the current scene. The LPDXUTCALLBACKFRAMEMOVE callback function will be called once per frame, while LPDXUTCALLBACKFRAMERENDER will be called when the scene needs to be rendered, which might be more than once per frame.
Requirements
Header: Declared in Dxut.h.
See Also
LPDXUTCALLBACKFRAMERENDER, LPDXUTCALLBACKFRAMEMOVE, DXUTSetCallbackFrameMove