-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModuleCamera.h
More file actions
55 lines (43 loc) · 1.15 KB
/
Copy pathModuleCamera.h
File metadata and controls
55 lines (43 loc) · 1.15 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef __ModuleCamera_H__
#define __ModuleCamera_H__
#include "Module.h"
#include "Globals.h"
#include "MathGeoLib/Geometry/Frustum.h"
#include "MathGeoLib/Math/float4x4.h"
class Application;
class ComponentCamera;
class ModuleCamera : public Module
{
public:
//Methods
ModuleCamera();
~ModuleCamera();
//Core
bool Init();
update_status PreUpdate();
update_status Update();
update_status PostUpdate();
bool CleanUp();
ComponentCamera* editorCamera = nullptr;
//Methods
void SetFOV();
void SetAspectRatio();
void SetAspectRatio(int newHeight, int newWidth);
void Rotate(const float dx, const float dy);
void Move(float3 &direction);
void Orbit(const float dx,const float dy);
void Zoom(const bool direction);
void TranslateCameraToPoint(const float3 &newPos);
void SetNearPlaneDistance(const float nearDist);
void SetFarPlaneDistance(const float farDist);
void LookAt(const float3 &target);
//Getter Matrix
float4x4 GetProjMatrix() const;
float4x4 GetViewMatrix() const;
float movementSpeed = 0.2f;
float rotationSpeed = 0.015f;
float zoomSpeed = 0.5f;
float motionOffset = 2.5f;
bool SceneNotActive = true;
};
#endif __ModuleCamera_H_