Contents, API Reference, Interfaces, iTestBed, update
iTestBed::update()
Description
Process application events and advance to the next rendering frame.
Syntax
void update(int32_t minimumFrameTime, bool& windowClosed); |
Parameters
| minimumFrameTime | |
A minimum frame time, in milliseconds.
|
| windowClosed | |
Set to true if the user quit through the application UI (e.g. by clicking a window exit button), otherwise false.
|
Remarks
This method renders all objects drawn since the last call to update().
Also user control of the camera is handled in this function, windows messages are processed, and so on.
If less than minimumFrameTime has passed since the last update, this method will wait or sleep for the remaining time.
(This sets a frame-rate cap, in other words, to avoid hogging CPU.)
The windowClosed return value may be set only once, when the window quit message is received.
The calling application should check the return value after every call to this method, then,
and exit if this is set, to avoid continuing to run without a window.
C# Mapping
void update(int minimumFrameTime, out bool windowClosed); |
Java Mapping
void update(int minimumFrameTime, boolean_OutArgument windowClosed);
|