Blackcomb  prealpha
Engine-ish
Camera.h
1 #ifndef BLACKCOMB_CAMERA_H
2 #define BLACKCOMB_CAMERA_H
3 
4 #include "BaseEntity.h"
5 #include "../renderer/Shader.h"
6 #include "blackcomb/base/Window.h"
7 
8 namespace blackcomb::entity {
13  class Camera : public BaseEntity {
14  public:
15  virtual void loadViewMatrix(renderer::Shader& shader);
16  void loadProjectionMatrix(renderer::Shader& shader, base::Window& window);
17  float fov = 90.0f;
18  };
19 }
20 
21 #endif //BLACKCOMB_CAMERA_H
void loadProjectionMatrix(renderer::Shader &shader, base::Window &window)
Generate a projection matrix and load it into a shader.
Definition: Camera.cpp:27
virtual void loadViewMatrix(renderer::Shader &shader)
Generate a view matrix and load it into a shader.
Definition: Camera.cpp:11
A generic entity class.
Definition: BaseEntity.h:12
float fov
Field of view of the camera.
Definition: Camera.h:17
An entity that can be used as a camera.
Definition: Camera.h:13
Loads and stores shaders.
Definition: Shader.h:42
Object-oriented wrapper for GLFW's window functions.
Definition: Window.h:17
Definition: BaseEntity.h:7