![]() |
![]() |
![]() |
Starts the main execution loop of the sample framework.
Syntax
HRESULT DXUTMainLoop(
HACCEL hAccel );
Parameters
- hAccel
- [in] Handle to an accelerator table to use in translating keyboard messages from the Microsoft Windows message queue, or NULL if not using an accelerator table. The default value is NULL.
Return Value
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.
Function Information
Header dxut.h Import library None Minimum operating systems Windows 98
See Also
Using the Main Loop with the Sample Framework