charcoal/OpenGLEngine/Camera.h
2018-09-12 17:03:46 -04:00

26 lines
493 B
C++

#pragma once
#include <glm/glm.hpp>
#include "Poseable.h"
namespace charcoal
{
using namespace glm;
class Camera
{
public:
Camera() : m_view_matrix(1.0f), m_projection_matrix(1.0f) {}
mat4 get_world_to_view_matrix() const { return m_projection_matrix * m_view_matrix; }
const mat4& get_view_matrix() const { return m_view_matrix; }
const mat4& get_projection_matrix() const { return m_projection_matrix; }
protected:
mat4 m_view_matrix;
mat4 m_projection_matrix;
};
}