blob: 4f7c9d7a2c19ec609013702691e50a40e0fd52af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#pragma once
#include "./math/Math.hpp"
struct SCurrentRenderData;
class CMonitorZoomController {
public:
bool m_resetCameraState = true;
void applyZoomTransform(CBox& monbox, const SCurrentRenderData& m_renderData);
private:
void zoomWithDetachedCamera(CBox& result, const SCurrentRenderData& m_renderData);
CBox m_camera;
float m_lastZoomLevel = 1.0f;
bool m_padCamEdges = true;
};
|