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.
39 lines
1.7 KiB
C++
39 lines
1.7 KiB
C++
#ifndef OPENMW_COMPONENTS_SETTINGS_CATEGORIES_GENERAL_H
|
|
#define OPENMW_COMPONENTS_SETTINGS_CATEGORIES_GENERAL_H
|
|
|
|
#include <components/settings/sanitizerimpl.hpp>
|
|
#include <components/settings/settingvalue.hpp>
|
|
|
|
#include <osg/Math>
|
|
#include <osg/Vec2f>
|
|
#include <osg/Vec3f>
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <string_view>
|
|
|
|
namespace Settings
|
|
{
|
|
struct GeneralCategory : WithIndex
|
|
{
|
|
using WithIndex::WithIndex;
|
|
|
|
SettingValue<int> mAnisotropy{ mIndex, "General", "anisotropy", makeClampSanitizerInt(0, 16) };
|
|
SettingValue<std::string> mScreenshotFormat{ mIndex, "General", "screenshot format",
|
|
makeEnumSanitizerString({ "jpg", "png", "tga" }) };
|
|
SettingValue<std::string> mTextureMagFilter{ mIndex, "General", "texture mag filter",
|
|
makeEnumSanitizerString({ "nearest", "linear" }) };
|
|
SettingValue<std::string> mTextureMinFilter{ mIndex, "General", "texture min filter",
|
|
makeEnumSanitizerString({ "nearest", "linear" }) };
|
|
SettingValue<std::string> mTextureMipmap{ mIndex, "General", "texture mipmap",
|
|
makeEnumSanitizerString({ "none", "nearest", "linear" }) };
|
|
SettingValue<bool> mNotifyOnSavedScreenshot{ mIndex, "General", "notify on saved screenshot" };
|
|
SettingValue<std::vector<std::string>> mPreferredLocales{ mIndex, "General", "preferred locales" };
|
|
SettingValue<bool> mGmstOverridesL10n{ mIndex, "General", "gmst overrides l10n" };
|
|
SettingValue<std::size_t> mLogBufferSize{ mIndex, "General", "log buffer size" };
|
|
SettingValue<std::size_t> mConsoleHistoryBufferSize{ mIndex, "General", "console history buffer size" };
|
|
};
|
|
}
|
|
|
|
#endif
|