/*
Copyright (c) 2013 yvt
This file is part of OpenSpades.
OpenSpades is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenSpades is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OpenSpades. If not, see .
*/
#pragma once
#include
namespace spades {
namespace draw {
class GLSettings : public SettingSet {
public:
GLSettings();
TypedItemHandle r_blitFramebuffer { *this, "r_blitFramebuffer" };
TypedItemHandle r_bloom { *this, "r_bloom" };
TypedItemHandle r_cameraBlur { *this, "r_cameraBlur", ItemFlags::Latch };
TypedItemHandle r_colorCorrection { *this, "r_colorCorrection" };
TypedItemHandle r_debugTiming { *this, "r_debugTiming" };
TypedItemHandle r_debugTimingOutputScreen { *this, "r_debugTimingOutputScreen" };
TypedItemHandle r_debugTimingOutputLog { *this, "r_debugTimingOutputLog" };
TypedItemHandle r_debugTimingAverage { *this, "r_debugTimingAverage" };
TypedItemHandle r_debugTimingGPUTime { *this, "r_debugTimingGPUTime" };
TypedItemHandle r_debugTimingOutputBarScale { *this, "r_debugTimingOutputBarScale" };
TypedItemHandle r_debugTimingFlush { *this, "r_debugTimingFlush" };
TypedItemHandle r_debugTimingFillGap { *this, "r_debugTimingFillGap" };
TypedItemHandle r_depthOfField { *this, "r_depthOfField" };
TypedItemHandle r_depthOfFieldMaxCoc { *this, "r_depthOfFieldMaxCoc" };
TypedItemHandle r_depthPrepass { *this, "r_depthPrepass" };
TypedItemHandle r_dlights { *this, "r_dlights" };
TypedItemHandle r_exposureValue { *this, "r_exposureValue" };
TypedItemHandle r_fogShadow { *this, "r_fogShadow", ItemFlags::Latch };
TypedItemHandle r_fxaa { *this, "r_fxaa" };
TypedItemHandle r_hdr { *this, "r_hdr", ItemFlags::Latch };
TypedItemHandle r_hdrAutoExposureMin { *this, "r_hdrAutoExposureMin" };
TypedItemHandle r_hdrAutoExposureMax { *this, "r_hdrAutoExposureMax" };
TypedItemHandle r_hdrAutoExposureSpeed{ *this, "r_hdrAutoExposureSpeed" };
TypedItemHandle r_hdrGamma { *this, "r_hdrGamma" };
TypedItemHandle r_highPrec { *this, "r_highPrec", ItemFlags::Latch };
TypedItemHandle r_lens { *this, "r_lens" };
TypedItemHandle r_lensFlare { *this, "r_lensFlare" };
TypedItemHandle r_lensFlareDynamic { *this, "r_lensFlareDynamic" };
TypedItemHandle r_mapSoftShadow { *this, "r_mapSoftShadow", ItemFlags::Latch };
TypedItemHandle r_maxAnisotropy { *this, "r_maxAnisotropy", ItemFlags::Latch };
TypedItemHandle r_modelShadows { *this, "r_modelShadows", ItemFlags::Latch };
TypedItemHandle r_multisamples { *this, "r_multisamples", ItemFlags::Latch };
TypedItemHandle r_occlusionQuery { *this, "r_occlusionQuery" };
TypedItemHandle r_optimizedVoxelModel { *this, "r_optimizedVoxelModel", ItemFlags::Latch };
TypedItemHandle r_physicalLighting { *this, "r_physicalLighting", ItemFlags::Latch };
TypedItemHandle r_radiosity { *this, "r_radiosity", ItemFlags::Latch };
TypedItemHandle r_saturation { *this, "r_saturation" };
TypedItemHandle r_shadowMapSize { *this, "r_shadowMapSize", ItemFlags::Latch };
TypedItemHandle r_softParticles { *this, "r_softParticles" };
TypedItemHandle r_sparseShadowMaps { *this, "r_sparseShadowMaps", ItemFlags::Latch };
TypedItemHandle r_srgb { *this, "r_srgb", ItemFlags::Latch };
TypedItemHandle r_srgb2D { *this, "r_srgb2D", ItemFlags::Latch };
TypedItemHandle r_ssao { *this, "r_ssao", ItemFlags::Latch };
TypedItemHandle r_water { *this, "r_water", ItemFlags::Latch };
};
}
}