DXUTMainLoop
Microsoft DirectX 9.0 SDK Update (October 2004)

DXUTMainLoop Function


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

Headerdxut.h
Import libraryNone
Minimum operating systems Windows 98

See Also

Using the Main Loop with the Sample Framework


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