DXUTMainLoop
Starts the main execution loop of DXUT.
HRESULT DXUTMainLoop(HACCELhAccel);
Parameters
- hAccel
[in] Handle to an accelerator table to use in translating keyboard messages from the Windows message queue, or NULL if not using an accelerator table. The default value is NULL.
Return Values
If the function succeeds, the return value is S_OK. If the function fails, the return value can be one of the error codes in DXUTERR.
Remarks
This function starts the message loop that will run for the lifetime of the application. During execution, DXUTMainLoop calls the registered callback functions to inform the application of input events and to trigger resource management and render calls.
Requirements
Header: Declared in Dxut.h.