OpenEnroth 73e68f7
|
#include <GameConfig.h>
Public Member Functions | |
Graphics (GameConfig *config) | |
Public Member Functions inherited from ConfigSection | |
ConfigSection (Config *config, std::string_view name) | |
ConfigSection (const ConfigSection &other)=delete | |
ConfigSection (ConfigSection &&other)=delete | |
Config * | config () const |
const std::string & | name () const |
void | registerEntry (AnyConfigEntry *entry) |
AnyConfigEntry * | entry (std::string_view name) const |
std::vector< AnyConfigEntry * > | entries () const |
Public Attributes | |
ConfigEntry< RendererType > | Renderer = {this, "renderer", ConfigRenderer, "Renderer to use, 'OpenGL' or 'OpenGLES'."} |
Bool | BloodSplats = {this, "bloodsplats", true, "Enable bloodsplats under corpses."} |
Float | BloodSplatsMultiplier = {this, "bloodsplats_multiplier", 1.0f, "Bloodsplats radius multiplier."} |
Bool | BloodSplatsFade = {this, "bloodsplats_fade", true, "Enable bloodsplats fading."} |
Float | ClipFarDistance = {this, "clip_far_distance", 16192.0f, "Far clip distance."} |
Float | ClipNearDistance = {this, "clip_near_distance", 32.0f, "Near clip distance."} |
Bool | ColoredLights = {this, "colored_lights", true, "Enable colored lights."} |
Bool | Fog = {this, "fog", true, "Enable fog effect. Used at far clip and in foggy weather."} |
Int | FogHorizon = {this, "fog_horizon", 39, "Fog height for bottom sky horizon."} |
Float | FogDepthRatio = {this, "fog_ratio", 0.75f, "Starting depth ratio of distance fog."} |
Int | FPSLimit = {this, "fps_limit", 60, "FPS limit. Use 0 for unlimited."} |
Int | Gamma = {this, "gamma", 4, &ValidateGamma, "Gamma level, can be used to adjust brightness."} |
Int | HouseMovieX1 = {this, "house_movie_x1", 8, "Viewport top-left offset for in-house movies."} |
Int | HouseMovieY1 = {this, "house_movie_y1", 8, "Viewport top-left offset for in-house movies."} |
Int | HouseMovieX2 = {this, "house_movie_x2", 172, "Viewport bottom-right offset for in-house movies."} |
Int | HouseMovieY2 = {this, "house_movie_y2", 128, "Viewport bottom-right offset for in-house movies."} |
Int | MaxVisibleSectors = {this, "maxvisiblesectors", 10, &ValidateMaxSectors, "Max number of BSP sectors to display."} |
Bool | SeasonsChange |
Bool | Snow |
Bool | Tinting |
Int | TorchlightDistance |
Int | TorchlightFlicker |
Bool | VSync = {this, "vsync", false, "Enable synchronization of framerate with monitor vertical refresh rate."} |
Int | ViewPortX1 = {this, "viewport_x1", 8, "Viewport top-left offset."} |
Int | ViewPortY1 = {this, "viewport_y1", 8, "Viewport top-left offset."} |
Int | ViewPortX2 = {this, "viewport_x2", 172, "Viewport bottom-right offset."} |
Int | ViewPortY2 = {this, "viewport_y2", 128, "Viewport bottom-right offset."} |
Int | RenderWidth = {this, "render_width", 640, &ValidateRenderWidth, "Internal rendered resolution width"} |
Int | RenderHeight = {this, "render_height", 480, &ValidateRenderHeight, "Internal rendered resolution height"} |
Int | RenderFilter |
Float | Saturation = {this, "saturation", 0.65f, "Colour saturation multiplier for textures and palettes"} |
Float | Lightness = {this, "lightness", 1.1f, "Colour lightness multiplier for textures and palettes"} |
Static Private Member Functions | |
static int | ValidateGamma (int level) |
static int | ValidateMaxSectors (int sectors) |
static int | ValidateTorchlight (int distance) |
static int | ValidateRenderWidth (int dimension) |
static int | ValidateRenderHeight (int dimension) |
static int | ValidateRenderFilter (int filter) |
|
inlineexplicit |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
Bool GameConfig::Graphics::BloodSplats = {this, "bloodsplats", true, "Enable bloodsplats under corpses."} |
Bool GameConfig::Graphics::BloodSplatsFade = {this, "bloodsplats_fade", true, "Enable bloodsplats fading."} |
Float GameConfig::Graphics::BloodSplatsMultiplier = {this, "bloodsplats_multiplier", 1.0f, "Bloodsplats radius multiplier."} |
Float GameConfig::Graphics::ClipFarDistance = {this, "clip_far_distance", 16192.0f, "Far clip distance."} |
Float GameConfig::Graphics::ClipNearDistance = {this, "clip_near_distance", 32.0f, "Near clip distance."} |
Bool GameConfig::Graphics::ColoredLights = {this, "colored_lights", true, "Enable colored lights."} |
Bool GameConfig::Graphics::Fog = {this, "fog", true, "Enable fog effect. Used at far clip and in foggy weather."} |
Float GameConfig::Graphics::FogDepthRatio = {this, "fog_ratio", 0.75f, "Starting depth ratio of distance fog."} |
Int GameConfig::Graphics::FogHorizon = {this, "fog_horizon", 39, "Fog height for bottom sky horizon."} |
Int GameConfig::Graphics::FPSLimit = {this, "fps_limit", 60, "FPS limit. Use 0 for unlimited."} |
Int GameConfig::Graphics::Gamma = {this, "gamma", 4, &ValidateGamma, "Gamma level, can be used to adjust brightness."} |
Int GameConfig::Graphics::HouseMovieX1 = {this, "house_movie_x1", 8, "Viewport top-left offset for in-house movies."} |
Int GameConfig::Graphics::HouseMovieX2 = {this, "house_movie_x2", 172, "Viewport bottom-right offset for in-house movies."} |
Int GameConfig::Graphics::HouseMovieY1 = {this, "house_movie_y1", 8, "Viewport top-left offset for in-house movies."} |
Int GameConfig::Graphics::HouseMovieY2 = {this, "house_movie_y2", 128, "Viewport bottom-right offset for in-house movies."} |
Float GameConfig::Graphics::Lightness = {this, "lightness", 1.1f, "Colour lightness multiplier for textures and palettes"} |
Int GameConfig::Graphics::MaxVisibleSectors = {this, "maxvisiblesectors", 10, &ValidateMaxSectors, "Max number of BSP sectors to display."} |
ConfigEntry<RendererType> GameConfig::Graphics::Renderer = {this, "renderer", ConfigRenderer, "Renderer to use, 'OpenGL' or 'OpenGLES'."} |
Int GameConfig::Graphics::RenderFilter |
Int GameConfig::Graphics::RenderHeight = {this, "render_height", 480, &ValidateRenderHeight, "Internal rendered resolution height"} |
Int GameConfig::Graphics::RenderWidth = {this, "render_width", 640, &ValidateRenderWidth, "Internal rendered resolution width"} |
Float GameConfig::Graphics::Saturation = {this, "saturation", 0.65f, "Colour saturation multiplier for textures and palettes"} |
Bool GameConfig::Graphics::SeasonsChange |
Bool GameConfig::Graphics::Snow |
Bool GameConfig::Graphics::Tinting |
Int GameConfig::Graphics::TorchlightDistance |
Int GameConfig::Graphics::TorchlightFlicker |
Int GameConfig::Graphics::ViewPortX1 = {this, "viewport_x1", 8, "Viewport top-left offset."} |
Int GameConfig::Graphics::ViewPortX2 = {this, "viewport_x2", 172, "Viewport bottom-right offset."} |
Int GameConfig::Graphics::ViewPortY1 = {this, "viewport_y1", 8, "Viewport top-left offset."} |
Int GameConfig::Graphics::ViewPortY2 = {this, "viewport_y2", 128, "Viewport bottom-right offset."} |
Bool GameConfig::Graphics::VSync = {this, "vsync", false, "Enable synchronization of framerate with monitor vertical refresh rate."} |