Startup and initialization - Merlinn/RigelEngine GitHub Wiki
RigelEngine's startup and initialization consists of the following steps:
- Command-line options parsing (
main.cpp) - Load (or create) user profile
- Initialize SDL
- Create window
- Create OpenGL context
- Initialize Dear ImGui
- Create
Renderer - Load
NUKEM2.CMPand createResourceLoader. At this point the game will abort if it cannot find the resource file. - Create
DukeScriptRunnerand load all scripts - Load and resample all sound effects
- Create initial game mode (depending on command line options)
- Enter main loop