2022-09-30 20:36:51 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_SETTINGS_CATEGORIES_VIDEO_H
|
|
|
|
#define OPENMW_COMPONENTS_SETTINGS_CATEGORIES_VIDEO_H
|
|
|
|
|
2023-11-01 22:34:54 +00:00
|
|
|
#include <components/sdlutil/vsyncmode.hpp>
|
2023-10-27 10:24:42 +00:00
|
|
|
#include <components/settings/sanitizerimpl.hpp>
|
|
|
|
#include <components/settings/screenshotsettings.hpp>
|
|
|
|
#include <components/settings/settingvalue.hpp>
|
|
|
|
#include <components/settings/windowmode.hpp>
|
|
|
|
|
2022-09-30 20:36:51 +00:00
|
|
|
#include <osg/Math>
|
|
|
|
#include <osg/Vec2f>
|
|
|
|
#include <osg/Vec3f>
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include <string>
|
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
namespace Settings
|
|
|
|
{
|
2023-04-10 15:24:57 +00:00
|
|
|
struct VideoCategory : WithIndex
|
2022-09-30 20:36:51 +00:00
|
|
|
{
|
2023-04-10 15:24:57 +00:00
|
|
|
using WithIndex::WithIndex;
|
|
|
|
|
|
|
|
SettingValue<int> mResolutionX{ mIndex, "Video", "resolution x", makeMaxSanitizerInt(1) };
|
|
|
|
SettingValue<int> mResolutionY{ mIndex, "Video", "resolution y", makeMaxSanitizerInt(1) };
|
2023-10-27 10:24:42 +00:00
|
|
|
SettingValue<WindowMode> mWindowMode{ mIndex, "Video", "window mode" };
|
2023-04-10 15:24:57 +00:00
|
|
|
SettingValue<int> mScreen{ mIndex, "Video", "screen", makeMaxSanitizerInt(0) };
|
|
|
|
SettingValue<bool> mMinimizeOnFocusLoss{ mIndex, "Video", "minimize on focus loss" };
|
|
|
|
SettingValue<bool> mWindowBorder{ mIndex, "Video", "window border" };
|
2023-06-05 22:04:21 +00:00
|
|
|
SettingValue<int> mAntialiasing{ mIndex, "Video", "antialiasing", makeMaxSanitizerInt(0) };
|
2023-10-27 10:24:42 +00:00
|
|
|
SettingValue<SDLUtil::VSyncMode> mVsyncMode{ mIndex, "Video", "vsync mode" };
|
2023-04-10 15:24:57 +00:00
|
|
|
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) };
|
2023-10-27 10:24:42 +00:00
|
|
|
SettingValue<ScreenshotSettings> mScreenshotType{ mIndex, "Video", "screenshot type" };
|
2022-09-30 20:36:51 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|