]> git.localhorst.tv Git - blank.git/blobdiff - src/camera.hpp
minor optimizations in chunk
[blank.git] / src / camera.hpp
index 22e2ba598fd9f9990e228fda37f43f7878c0ca1f..717da243eefe26b060da588bb72c2fa0fd5497c6 100644 (file)
@@ -9,20 +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;
 
-       void FOV(float f);
-       void Aspect(float r);
-       void Aspect(float w, float h);
-       void Clip(float near, float far);
+       /// 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() { return projection; }
+       const glm::mat4 &Projection() noexcept { return projection; }
 
 private:
-       void UpdateProjection();
+       void UpdateProjection() noexcept;
 
 private:
        float fov;