mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 22:26:45 +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
 |