mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 19:49:54 +00:00
30 lines
648 B
C++
30 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
|