mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 22:49:55 +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
|