mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 21:42:13 +00:00
31 lines
648 B
C++
31 lines
648 B
C++
#ifndef VIEWOVERSHOULDER_H
|
|
#define VIEWOVERSHOULDER_H
|
|
|
|
#include "camera.hpp"
|
|
|
|
namespace MWRender
|
|
{
|
|
|
|
class ViewOverShoulderController
|
|
{
|
|
public:
|
|
ViewOverShoulderController(Camera* camera);
|
|
|
|
void update();
|
|
|
|
private:
|
|
void trySwitchShoulder();
|
|
enum class Mode { RightShoulder, LeftShoulder, Combat, Swimming };
|
|
|
|
Camera* mCamera;
|
|
Mode mMode;
|
|
bool mAutoSwitchShoulder;
|
|
float mOverShoulderHorizontalOffset;
|
|
float mOverShoulderVerticalOffset;
|
|
bool mDefaultShoulderIsRight;
|
|
};
|
|
|
|
}
|
|
|
|
#endif // VIEWOVERSHOULDER_H
|