#ifndef OPENMW_COMPONENTS_SETTINGS_CATEGORIES_VIDEO_H #define OPENMW_COMPONENTS_SETTINGS_CATEGORIES_VIDEO_H #include "components/settings/sanitizerimpl.hpp" #include "components/settings/settingvalue.hpp" #include #include #include #include #include #include namespace Settings { struct VideoCategory { SettingValue mResolutionX{ "Video", "resolution x", makeMaxSanitizerInt(1) }; SettingValue mResolutionY{ "Video", "resolution y", makeMaxSanitizerInt(1) }; SettingValue mWindowMode{ "Video", "window mode", makeEnumSanitizerInt({ 0, 1, 2 }) }; SettingValue mScreen{ "Video", "screen", makeMaxSanitizerInt(0) }; SettingValue mMinimizeOnFocusLoss{ "Video", "minimize on focus loss" }; SettingValue mWindowBorder{ "Video", "window border" }; SettingValue mAntialiasing{ "Video", "antialiasing", makeEnumSanitizerInt({ 0, 2, 4, 8, 16 }) }; SettingValue mVsyncMode{ "Video", "vsync mode", makeEnumSanitizerInt({ 0, 1, 2 }) }; SettingValue mFramerateLimit{ "Video", "framerate limit", makeMaxSanitizerFloat(0) }; SettingValue mContrast{ "Video", "contrast", makeMaxStrictSanitizerFloat(0) }; SettingValue mGamma{ "Video", "gamma", makeMaxStrictSanitizerFloat(0) }; SettingValue mScreenshotType{ "Video", "screenshot type" }; }; } #endif