mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-03 17:37:18 +00:00
34 lines
1.2 KiB
C++
34 lines
1.2 KiB
C++
#ifndef OPENMW_COMPONENTS_SETTINGS_CATEGORIES_CAMERA_H
|
|
#define OPENMW_COMPONENTS_SETTINGS_CATEGORIES_CAMERA_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 CameraCategory : WithIndex
|
|
{
|
|
using WithIndex::WithIndex;
|
|
|
|
SettingValue<float> mNearClip{ mIndex, "Camera", "near clip", makeMaxSanitizerFloat(0.005f) };
|
|
SettingValue<bool> mSmallFeatureCulling{ mIndex, "Camera", "small feature culling" };
|
|
SettingValue<float> mSmallFeatureCullingPixelSize{ mIndex, "Camera", "small feature culling pixel size",
|
|
makeMaxStrictSanitizerFloat(0) };
|
|
SettingValue<float> mViewingDistance{ mIndex, "Camera", "viewing distance", makeMaxStrictSanitizerFloat(0) };
|
|
SettingValue<float> mFieldOfView{ mIndex, "Camera", "field of view", makeClampSanitizerFloat(1, 179) };
|
|
SettingValue<float> mFirstPersonFieldOfView{ mIndex, "Camera", "first person field of view",
|
|
makeClampSanitizerFloat(1, 179) };
|
|
SettingValue<bool> mReverseZ{ mIndex, "Camera", "reverse z" };
|
|
};
|
|
}
|
|
|
|
#endif
|