Graphics card profiles: Difference between revisions

Jump to navigation Jump to search
Line 128: Line 128:
This could work pretty much like the joystick support - i.e. we would maintain PropertyList XML files in $FG_ROOT/GraphicsProfiles/VENDOR, and then use the GL_* strings to load a matching default profile, with CLI arguments being processed afterwards, i.e. to take precedence, so that defaults can be overridden.
This could work pretty much like the joystick support - i.e. we would maintain PropertyList XML files in $FG_ROOT/GraphicsProfiles/VENDOR, and then use the GL_* strings to load a matching default profile, with CLI arguments being processed afterwards, i.e. to take precedence, so that defaults can be overridden.


For instance, see $FG_SRC/Main/fg_init.cxx +466 fgInitConfig():
For instance, see $FG_SRC{{Flightgear file|Main/fg_init.cxx|466}} fgInitConfig():
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">
bool loadDefaults = options->shouldLoadDefaultConfig();
bool loadDefaults = options->shouldLoadDefaultConfig();

Navigation menu