Renders the next frame.
This function can be repeatedly called in the main loop of an application.
0 when sys_exit was called during rendering;
- Can only be called from an external application, not from a script or
- The engine must be opened before a frame can be rendered.
- The video device is opened during the first engine_frame() call.
Initial video settings must be set before.
int APIENTRY WinMain(HINSTANCE hInstance, // application instance handle
HINSTANCE hPrevInstance, // always zero
LPTSTR lpCmdLine, // application command line
int nCmdShow) // window flags