#include "camera.hpp"
+#include "geometry.hpp"
+
#include <GL/glew.h>
#include <glm/gtc/matrix_transform.hpp>
namespace blank {
Camera::Camera()
-: fov(45.0f)
+: fov(PI_0p25)
, aspect(1.0f)
, near_clip(0.1f)
, far_clip(256.0f)
void Viewport(int width, int height);
void Viewport(int x, int y, int width, int height);
+ /// FOV in radians
void FOV(float f);
void Aspect(float r);
void Aspect(float w, float h);
namespace blank {
constexpr float PI = 3.141592653589793238462643383279502884;
+constexpr float PI_0p25 = PI * 0.25f;
constexpr float PI_0p5 = PI * 0.5f;
constexpr float PI_1p5 = PI * 1.5f;
constexpr float PI_2p0 = PI * 2.0f;