umbra/projs/shadow/shadow-renderer/inc/vlkx/render/Camera.h
Curle a370f28f14
Implement a Vulkan Renderer module (#2)
* Starting work on the Vlkx renderer

* Fix renderer implementation

* Move GLM to FetchContent
2022-07-19 20:41:44 +02:00

23 lines
485 B
C++

#pragma once
#define GLM_FORCE_RADIAN
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
class Camera {
public:
// Set up the camera.
void init(float fov, float width, float height, float near, float far);
// Move the camera.
void setPosition(glm::vec3 positionIn);
glm::mat4 getViewMatrix() { return viewMatrix; };
glm::mat4 getProjectionMatrix() { return projectionMatrix; }
private:
glm::mat4 projectionMatrix;
glm::mat4 viewMatrix;
glm::vec3 position;
};