|
|
@@ -17,45 +17,55 @@
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
-// Configure this true to GLP(Hint) the textures into the cheapest
|
|
|
-// possible mode.
|
|
|
-bool CLP(cheap_textures) = CONFIGOBJ.GetBool("gl-cheap-textures", false);
|
|
|
+ConfigVariableBool CLP(cheap_textures)
|
|
|
+ ("gl-cheap-textures", false,
|
|
|
+ PRC_DESC("Configure this true to GLP(Hint) the textures into the cheapest "
|
|
|
+ "possible mode."));
|
|
|
|
|
|
-// Configure this true to disable texture clamp mode (all textures
|
|
|
-// repeat, a little cheaper for software renderers).
|
|
|
-bool CLP(ignore_clamp) = CONFIGOBJ.GetBool("gl-ignore-clamp", false);
|
|
|
+ConfigVariableBool CLP(ignore_clamp)
|
|
|
+ ("gl-ignore-clamp", false,
|
|
|
+ PRC_DESC("Configure this true to disable texture clamp mode (all textures "
|
|
|
+ "repeat, a little cheaper for software renderers)."));
|
|
|
|
|
|
-// Configure this true to disable any texture filters at all (forcing
|
|
|
-// point sampling).
|
|
|
-bool CLP(ignore_filters) = CONFIGOBJ.GetBool("gl-ignore-filters", false);
|
|
|
+ConfigVariableBool CLP(ignore_filters)
|
|
|
+ ("gl-ignore-filters", false,
|
|
|
+ PRC_DESC("Configure this true to disable any texture filters at all (forcing "
|
|
|
+ "point sampling)."));
|
|
|
|
|
|
-// Configure this true to disable mipmapping only.
|
|
|
-bool CLP(ignore_mipmaps) = CONFIGOBJ.GetBool("gl-ignore-mipmaps", false) || CLP(ignore_filters);
|
|
|
+ConfigVariableBool CLP(ignore_mipmaps)
|
|
|
+ ("gl-ignore-mipmaps", false,
|
|
|
+ PRC_DESC("Configure this true to disable mipmapping only."));
|
|
|
|
|
|
-// Configure this true to enable full trilinear mipmapping on every
|
|
|
-// texture, whether it asks for it or not.
|
|
|
-bool CLP(force_mipmaps) = CONFIGOBJ.GetBool("gl-force-mipmaps", false);
|
|
|
+ConfigVariableBool CLP(force_mipmaps)
|
|
|
+ ("gl-force-mipmaps", false,
|
|
|
+ PRC_DESC("Configure this true to enable full trilinear mipmapping on every "
|
|
|
+ "texture, whether it asks for it or not."));
|
|
|
|
|
|
-// Configure this true to cause mipmaps to be rendered with phony
|
|
|
-// colors, using mipmap_level_*.rgb if they are available.
|
|
|
-bool CLP(show_mipmaps) = CONFIGOBJ.GetBool("gl-show-mipmaps", false);
|
|
|
+ConfigVariableBool CLP(show_mipmaps)
|
|
|
+ ("gl-show-mipmaps", false,
|
|
|
+ PRC_DESC("Configure this true to cause mipmaps to be rendered with phony "
|
|
|
+ "colors, using mipmap_level_*.rgb if they are available."));
|
|
|
|
|
|
-// Configure this true to cause the generated mipmap images to be
|
|
|
-// written out to image files on the disk as they are generated.
|
|
|
-bool CLP(save_mipmaps) = CONFIGOBJ.GetBool("gl-save-mipmaps", false);
|
|
|
+ConfigVariableBool CLP(save_mipmaps)
|
|
|
+ ("gl-save-mipmaps", false,
|
|
|
+ PRC_DESC("Configure this true to cause the generated mipmap images to be "
|
|
|
+ "written out to image files on the disk as they are generated."));
|
|
|
|
|
|
-// Configure this true to cause all lighting normals to automatically
|
|
|
-// be normalized by the graphics hardware before rendering. This is
|
|
|
-// necessary if you intend to render things under scale transforms and
|
|
|
-// expect lighting to work correctly. Maybe one day there will be
|
|
|
-// another way to set this at runtime, instead of only as a configure
|
|
|
-// variable.
|
|
|
-bool CLP(auto_normalize_lighting) = CONFIGOBJ.GetBool("auto-normalize-lighting", true);
|
|
|
+ConfigVariableBool CLP(auto_normalize_lighting)
|
|
|
+ ("auto-normalize-lighting", true,
|
|
|
+ PRC_DESC("Configure this true to cause all lighting normals to automatically "
|
|
|
+ "be normalized by the graphics hardware before rendering. This is "
|
|
|
+ "necessary if you intend to render things under scale transforms and "
|
|
|
+ "expect lighting to work correctly. Maybe one day there will be "
|
|
|
+ "another way to set this at runtime, instead of only as a configure "
|
|
|
+ "variable."));
|
|
|
+
|
|
|
+ConfigVariableBool CLP(color_mask)
|
|
|
+ ("gl-color-mask", true,
|
|
|
+ PRC_DESC("Configure this false if your GL's implementation of glColorMask() "
|
|
|
+ "is broken (some are). This will force the use of a (presumably) "
|
|
|
+ "more expensive blending operation instead."));
|
|
|
|
|
|
-// Configure this false if your GL's implementation of GLP(ColorMask)()
|
|
|
-// is broken (some are). This will force the use of a (presumably)
|
|
|
-// more expensive blending operation instead.
|
|
|
-bool CLP(color_mask) = CONFIGOBJ.GetBool("gl-color-mask", true);
|
|
|
|
|
|
void CLP(init_classes)() {
|
|
|
CLP(GraphicsStateGuardian)::init_type();
|