#ifndef OPENMW_COMPONENTS_SETTINGS_CATEGORIES_STEREOVIEW_H #define OPENMW_COMPONENTS_SETTINGS_CATEGORIES_STEREOVIEW_H #include "components/settings/sanitizerimpl.hpp" #include "components/settings/settingvalue.hpp" #include #include #include #include #include #include namespace Settings { struct StereoViewCategory : WithIndex { using WithIndex::WithIndex; SettingValue mEyeResolutionX{ mIndex, "Stereo View", "eye resolution x", makeMaxSanitizerInt(1) }; SettingValue mEyeResolutionY{ mIndex, "Stereo View", "eye resolution y", makeMaxSanitizerInt(1) }; SettingValue mLeftEyeOffsetX{ mIndex, "Stereo View", "left eye offset x" }; SettingValue mLeftEyeOffsetY{ mIndex, "Stereo View", "left eye offset y" }; SettingValue mLeftEyeOffsetZ{ mIndex, "Stereo View", "left eye offset z" }; SettingValue mLeftEyeOrientationX{ mIndex, "Stereo View", "left eye orientation x", makeClampSanitizerDouble(-1, 1) }; SettingValue mLeftEyeOrientationY{ mIndex, "Stereo View", "left eye orientation y", makeClampSanitizerDouble(-1, 1) }; SettingValue mLeftEyeOrientationZ{ mIndex, "Stereo View", "left eye orientation z", makeClampSanitizerDouble(-1, 1) }; SettingValue mLeftEyeOrientationW{ mIndex, "Stereo View", "left eye orientation w", makeClampSanitizerDouble(-1, 1) }; SettingValue mLeftEyeFovLeft{ mIndex, "Stereo View", "left eye fov left", makeClampSanitizerDouble(-osg::PI, osg::PI) }; SettingValue mLeftEyeFovRight{ mIndex, "Stereo View", "left eye fov right", makeClampSanitizerDouble(-osg::PI, osg::PI) }; SettingValue mLeftEyeFovUp{ mIndex, "Stereo View", "left eye fov up", makeClampSanitizerDouble(-osg::PI, osg::PI) }; SettingValue mLeftEyeFovDown{ mIndex, "Stereo View", "left eye fov down", makeClampSanitizerDouble(-osg::PI, osg::PI) }; SettingValue mRightEyeOffsetX{ mIndex, "Stereo View", "right eye offset x" }; SettingValue mRightEyeOffsetY{ mIndex, "Stereo View", "right eye offset y" }; SettingValue mRightEyeOffsetZ{ mIndex, "Stereo View", "right eye offset z" }; SettingValue mRightEyeOrientationX{ mIndex, "Stereo View", "right eye orientation x", makeClampSanitizerDouble(-1, 1) }; SettingValue mRightEyeOrientationY{ mIndex, "Stereo View", "right eye orientation y", makeClampSanitizerDouble(-1, 1) }; SettingValue mRightEyeOrientationZ{ mIndex, "Stereo View", "right eye orientation z", makeClampSanitizerDouble(-1, 1) }; SettingValue mRightEyeOrientationW{ mIndex, "Stereo View", "right eye orientation w", makeClampSanitizerDouble(-1, 1) }; SettingValue mRightEyeFovLeft{ mIndex, "Stereo View", "right eye fov left", makeClampSanitizerDouble(-osg::PI, osg::PI) }; SettingValue mRightEyeFovRight{ mIndex, "Stereo View", "right eye fov right", makeClampSanitizerDouble(-osg::PI, osg::PI) }; SettingValue mRightEyeFovUp{ mIndex, "Stereo View", "right eye fov up", makeClampSanitizerDouble(-osg::PI, osg::PI) }; SettingValue mRightEyeFovDown{ mIndex, "Stereo View", "right eye fov down", makeClampSanitizerDouble(-osg::PI, osg::PI) }; }; } #endif