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.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).
crtxy-width=NNN
crtxy-height=NNN
crtxy-bpp={16|24|32|any}
crtxy-windowed
crtxy-fullscreen
crtxy-fullscreen-or-window
crtxy-alpha={on|fake|off}
crtxy-antialias={on|off}
crtxy-backgrounds={on|off}
crtxy-scaling={best|fast}
crtxy-gamma-correction={on|off}
crtxy-blur={on|off}
crtxy-additive={on|off}
XY_parse_envvars()
examines the application's runtime enviroment for libcrtxy-related variables.
CRTXY_WIDTH
CRTXY_HEIGHT
CRTXY_BPP
(16|24|32|ANY) CRTXY_FULLSCREEN
(ON|OPTIONAL|OFF) CRTXY_ALPHA
(ON|FAKE|OFF) CRTXY_ANTIALIAS
(ON|OFF) CRTXY_BACKGROUNDS
(ON|OFF) CRTXY_SCALING
(BEST|FAST) CRTXY_GAMMA_CORRECTION
(ON|OFF) CRTXY_BLUR
(ON|OFF) CRTXY_ADDITIVE
(ON|OFF)XY_parse_options()
function can look for and parse and libcrtxy-related options found in the command-line arguments to an application.
--crtxy-width NNN
--crtxy-height NNN
--crtxy-bpp {16|24|32|any}
--crtxy-windowed
--crtxy-fullscreen
--crtxy-fullscreen-or-window
--crtxy-alpha {on|fake|off}
--crtxy-antialias {on|off}
--crtxy-backgrounds {on|off}
--crtxy-scaling {best|fast}
--crtxy-gamma-correction {on|off}
--crtxy-blur {on|off}
--crtxy-additive {on|off}
--help-crtxy
- Presents a list of libcrtxy-related usage, and quits.