Controller boilerplate

pull/4/head
Elias Almqvist 2 years ago
parent 6c1349b526
commit a2cc45117d
  1. 12
      headers/controller.hpp
  2. 8
      headers/renderer.hpp

@ -0,0 +1,12 @@
#pragma once
#include "renderer.hpp"
#include "GLFW/glfw3.h"
class Controller {
Controller(GLFWwindow* win);
Controller(GLFWwindow* win, Renderer::Camera cam);
protected:
Renderer::Camera cam;
};

@ -48,11 +48,11 @@ namespace Renderer {
};
class Camera : public Object {
public:
Camera(GLFWwindow* win);
Camera(GLFWwindow* win, glm::vec3 pos);
Camera(GLFWwindow* win, glm::vec3 pos, glm::vec3 angle);
Camera(GLFWwindow* win);
Camera(GLFWwindow* win, glm::vec3 pos);
Camera(GLFWwindow* win, glm::vec3 pos, glm::vec3 angle);
public:
void setFOV(float deg);
void pointAt(glm::vec3 target);

Loading…
Cancel
Save