added cameras

This commit is contained in:
Lauchmelder 2021-12-21 18:14:01 +01:00
parent 19cae22aba
commit c1b96fc14e
7 changed files with 119 additions and 12 deletions

View file

@ -1,10 +1,17 @@
#pragma once
#include <string>
#include "backend/Camera.hpp"
#include "Cuboid.hpp"
struct GLFWwindow;
struct WindowData
{
Camera* camera;
OrthogonalCamera* orthoCam;
};
class Application
{
/////////////////////////////////////////////////////////
@ -33,6 +40,11 @@ public:
private:
GLFWwindow* window = nullptr;
WindowData data;
Camera camera;
OrthogonalCamera orthoCam;
CameraBase* activeCamera;
glm::vec3 cubeOrientation, cubePosition, cubeScale;
Cuboid* cube;