Setting Options

Available Options

Display options

Rendering quality options

Visual effects

Where Options Can Get Set

Options such as rendering quality settings and screen resolution can come from various places. They are listed below, in the most reasonable order that they should be picked up:

Defaults

The XY_default_options() function sets some base values for the various options, in case no others are sent elsewhere. These are the values compiled into libcrtxy.

Config. Files

The XY_load_options() function loads options from configuration files specific to libcrtxy. XY_load_options_from_file() may be used by applications to load options from arbitrary files (such as a game's own config. file).

Environment Variables

XY_parse_envvars() examines the application's runtime enviroment for libcrtxy-related variables.

Command-Line Arguments

Finally, the XY_parse_options() function can look for and parse and libcrtxy-related options found in the command-line arguments to an application.


Generated on Sat Aug 16 22:15:09 2008 for libcrtxy by  doxygen 1.5.5