![]() |
![]() |
![]() |
A timer to be called at specified time intervals by the sample framework.
Syntax
typedef VOID (CALLBACK *LPDXUTCALLBACKTIMER)(
UINT idEvent );
Parameters
- idEvent
- [in] Specifies a nonzero timer event identifier (ID). Indicates which timer generated the event, allowing the application to use a single callback function for multiple timers.
Return Value
No return value.
Remarks
The framework will call this function at the start of the frame, before calling LPDXUTCALLBACKFRAMEMOVE or LPDXUTCALLBACKFRAMERENDER.
In general, the framework timer is more accurate than the Microsoft Windows WM_TIMER
system timer, since the framework uses QueryPerformanceCounter
.
Prototype Information
Header dxut.h Import library None Minimum operating systems Windows 98
See Also
DXUTSetTimer, DXUTKillTimer