Go to the source code of this file.
Setup the backend's graphics mode.
Definition at line 200 of file engine.cpp.
Sets up the backend's screen size and graphics mode.
Shows an various warnings on certain backend graphics transaction failures (aspect switch, fullscreen switch, etc.).
Errors out when backend is not able to switch to the specified mode.
Defaults to 256 color paletted mode if no graphics format is provided. Uses the backend's preferred format if graphics format pointer is NULL. Finds the best compatible format if a list of graphics formats is provided.
Definition at line 392 of file engine.cpp.
Sends a list of graphics modes to the backend so it can make a decision about the best way to set up the display hardware.
Engines that switch between different virtual screen sizes during a game should call this function prior to any call to initGraphics. Engines that use only a single screen size do not need to call this function.
Definition at line 287 of file engine.cpp.