X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcamera.hpp;h=717da243eefe26b060da588bb72c2fa0fd5497c6;hb=e53a0e2e711a7d8bd9b0ddacd1360aa14370643f;hp=1477a47ad1703d5ce7e2f0eb07be5a486cc4d35a;hpb=4ef32c5a4a5bdb6da8383f66d8265715eb2ed4f9;p=blank.git diff --git a/src/camera.hpp b/src/camera.hpp index 1477a47..717da24 100644 --- a/src/camera.hpp +++ b/src/camera.hpp @@ -9,21 +9,21 @@ namespace blank { class Camera { public: - Camera(); + Camera() noexcept; - void Viewport(int width, int height); - void Viewport(int x, int y, int width, int height); + 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); - void Aspect(float r); - void Aspect(float w, float h); - void Clip(float near, float far); + 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() { return projection; } + const glm::mat4 &Projection() noexcept { return projection; } private: - void UpdateProjection(); + void UpdateProjection() noexcept; private: float fov;