MihailRis 1a00a11917
All changes made for 10th part of tutorial
voxel_engine.cpp - changed structure, added character controls, physics
almost all files are modified (including shaders)
+ new source directory - physics
2021-08-04 01:45:04 +03:00

35 lines
477 B
C++

/*
* Camera.h
*
* Created on: Feb 11, 2020
* Author: MihailRis
*/
#ifndef WINDOW_CAMERA_H_
#define WINDOW_CAMERA_H_
#include <glm/glm.hpp>
using namespace glm;
class Camera {
void updateVectors();
public:
vec3 front;
vec3 up;
vec3 right;
vec3 dir;
vec3 position;
float fov;
float zoom;
mat4 rotation;
Camera(vec3 position, float fov);
void rotate(float x, float y, float z);
mat4 getProjection();
mat4 getView();
};
#endif /* WINDOW_CAMERA_H_ */