virtual bool OnInit(ViewConfig& config);
OnInit is called to do initialization, including SetupWindow, render thread creation and graphics init. If false is returned, application will exit.
Receives default ViewConfig with command argument applied.
Parameters |
Description |
ViewConfig& config |
Viewport dimensions set for positioning the window. |
A value of true for successful initialization and false for error or 0 for exiting.