-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCamera.h
More file actions
26 lines (22 loc) · 729 Bytes
/
Camera.h
File metadata and controls
26 lines (22 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once
class CCamera
{
private:
Vector3D m_vRotateAngle;
Matirx m_mtxLocal;
public:
CCamera();
~CCamera() = default;
GLvoid CameraZoom(int away);
GLvoid CameraMove(int away);
GLvoid CameraRotate(int away);
GLvoid CameraReset();
Vector3D GetCameraRotate() const { return m_vRotateAngle; }
Vector3D GetCameraPos() const { return m_mtxLocal.r1; }
Vector3D GetCameraLook() const { return m_mtxLocal.r2; }
Vector3D GetCameraUp() const { return m_mtxLocal.r3; }
GLvoid GetCameraRotate(Vector3D vec) { m_vRotateAngle = vec; }
GLvoid SetCameraPos(Vector3D vec) { m_mtxLocal.r1 = vec; }
GLvoid SetCameraLook(Vector3D vec) { m_mtxLocal.r2 = vec; }
GLvoid SetCameraUp(Vector3D vec) { m_mtxLocal.r3 = vec; }
};