X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcamera.hpp;fp=src%2Fcamera.hpp;h=0000000000000000000000000000000000000000;hb=b7d09e1e35ef90282c97509e0020b20db3c7ea9f;hp=717da243eefe26b060da588bb72c2fa0fd5497c6;hpb=e53a0e2e711a7d8bd9b0ddacd1360aa14370643f;p=blank.git diff --git a/src/camera.hpp b/src/camera.hpp deleted file mode 100644 index 717da24..0000000 --- a/src/camera.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef BLANK_CAMERA_HPP_ -#define BLANK_CAMERA_HPP_ - -#include - - -namespace blank { - -class Camera { - -public: - Camera() noexcept; - - void Viewport(int width, int height) noexcept; - void Viewport(int x, int y, int width, int height) noexcept; - - /// FOV in radians - void FOV(float f) noexcept; - void Aspect(float r) noexcept; - void Aspect(float w, float h) noexcept; - void Clip(float near, float far) noexcept; - - const glm::mat4 &Projection() noexcept { return projection; } - -private: - void UpdateProjection() noexcept; - -private: - float fov; - float aspect; - float near_clip; - float far_clip; - - glm::mat4 projection; - -}; - -} - -#endif