-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCamera.h
More file actions
38 lines (34 loc) · 809 Bytes
/
Camera.h
File metadata and controls
38 lines (34 loc) · 809 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
27
28
29
30
31
32
33
34
35
36
37
38
//
// Created by madara on 01/12/16.
//
#ifndef LIGHTING_CAMERA_H
#define LIGHTING_CAMERA_H
#include "Includes.h"
enum Direction
{
FORWARD,
BACKWARD,
LEFT,
RIGHT
};
class Camera {
public:
GLfloat mouseYaw=-90.0f , mousePitch=0.0f;
GLfloat fov=45.0f;
glm::vec3 cameraPos , cameraFront , cameraUp;
glm::mat4 view;
glm::mat4 transofrmation;
glm::vec3 carPosition;
glm::vec3 carRotation;
btQuaternion carQuaternion;
bool first= true;
glm::vec3 eye;
public:
Camera(glm::vec3 cameraPosition);
glm::mat4 getViewMatrix();
void processKeyBoard(Direction direction, GLfloat deltaTime);
void processMouseMovement(GLfloat xOffset , GLfloat yOffset);
void processMouseScroll(GLfloat yOffset);
GLfloat Zoom;
};
#endif //LIGHTING_CAMERA_H