This commit is contained in:
{{QWERTYKBGUI}} 2023-03-28 17:11:29 +02:00
commit e313656757
2 changed files with 10 additions and 3 deletions

View File

@ -1,14 +1,19 @@
#ifndef ENGINE_HPP
#define ENGINE_HPP
#include "core.hpp"
#include "shader.hpp"
#include "player_camera.hpp"
namespace b3d{
class Engine {
private:
GLFWwindow* window;
// settings
//const unsigned int SCR_WIDTH = 800;
//const unsigned int SCR_HEIGHT = 600;
// camera
Camera camera;
// timing
@ -23,6 +28,6 @@ namespace b3d{
void render();
void update();
};
}
}
#endif // ENGINE_HPP

View File

@ -2,7 +2,9 @@
#define CAMERA_H
#include "core.hpp"
#include <GL/glew.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
namespace b3d{
enum Camera_Movement {