mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.5 KiB
C++
38 lines
1.5 KiB
C++
#ifndef OPENMW_COMPONENTS_SETTINGS_CATEGORIES_VIDEO_H
|
|
#define OPENMW_COMPONENTS_SETTINGS_CATEGORIES_VIDEO_H
|
|
|
|
#include <components/sdlutil/vsyncmode.hpp>
|
|
#include <components/settings/sanitizerimpl.hpp>
|
|
#include <components/settings/settingvalue.hpp>
|
|
#include <components/settings/windowmode.hpp>
|
|
|
|
#include <osg/Math>
|
|
#include <osg/Vec2f>
|
|
#include <osg/Vec3f>
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <string_view>
|
|
|
|
namespace Settings
|
|
{
|
|
struct VideoCategory : WithIndex
|
|
{
|
|
using WithIndex::WithIndex;
|
|
|
|
SettingValue<int> mResolutionX{ mIndex, "Video", "resolution x", makeMaxSanitizerInt(1) };
|
|
SettingValue<int> mResolutionY{ mIndex, "Video", "resolution y", makeMaxSanitizerInt(1) };
|
|
SettingValue<WindowMode> mWindowMode{ mIndex, "Video", "window mode" };
|
|
SettingValue<int> mScreen{ mIndex, "Video", "screen", makeMaxSanitizerInt(0) };
|
|
SettingValue<bool> mMinimizeOnFocusLoss{ mIndex, "Video", "minimize on focus loss" };
|
|
SettingValue<bool> mWindowBorder{ mIndex, "Video", "window border" };
|
|
SettingValue<int> mAntialiasing{ mIndex, "Video", "antialiasing", makeMaxSanitizerInt(0) };
|
|
SettingValue<SDLUtil::VSyncMode> mVsyncMode{ mIndex, "Video", "vsync mode" };
|
|
SettingValue<float> mFramerateLimit{ mIndex, "Video", "framerate limit", makeMaxSanitizerFloat(0) };
|
|
SettingValue<float> mContrast{ mIndex, "Video", "contrast", makeMaxStrictSanitizerFloat(0) };
|
|
SettingValue<float> mGamma{ mIndex, "Video", "gamma", makeMaxStrictSanitizerFloat(0) };
|
|
};
|
|
}
|
|
|
|
#endif
|