Game Configuration (config.xml)
From IrrWizard
Introduction
Once the project has been created, you are able to modify game settings via a configuration file, config.xml. This needs to be in the same folder as your game .exe.
Config.xml
The following classes of interest are created when you choose the 'Full Framework' option while running IrrWizard.
- CGameConfigManager
The class CConfigManager will read and paraphrase the file name Config.xml that should be the same directory of the exe
Here are the rules of Config.xml to follow and there shouldn’t be any errors
The file must have a commentary line at the beginning is a tinyXml bug
The minimum parameters for the config.xml should be:
<Config>
<Device>
<ScreenResolution height="800" width="600"/>
<Fullscreen value="False"/>
<BitsperPixel value="32"/>
<Stencilbuffer value="False"/>
<Vsync value="True"/>
<DriverType type="DirectX9"/>
</Device>
<Config>
Attributes
The height and width of the window can be any numeric value must have both attributes order do not matter.
<ScreenResolution height="640" width="380"/>
Window if full screen or not to make the window full screen use value=”True” case sensitive for false either type value=”False” or value=”” but it must have the attribute named value.
<Fullscreen value="False"/>
Bits per Pixel that Irrlicht will use in full screen the values can be 32 or 16 any other will not be load will load 16 as default.
<BitsperPixel value="32"/>
Stencil buffer is going to be use same rules of Fullscreen tag.
<Stencilbuffer value="False"/>
Vsync is going to be use same rules of Fullscreen tag.
<Vsync value="True"/>
The Driver Type that Irrlicht will use for rendering The possible values are:
- OpenGL
- DirectX8
- DirectX9
- Irrlicht Software
- Apfelbaum Software
- Null
<DriverType type="Driver Type"/>
These values are case sensitive in case of error the ConfigManager will load Irrlicht Software as default.
