Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
orthographic_camera.h
1 #pragma once
2 
3 #include "renderer/cameras/camera.h"
4 
5 namespace blowbox
6 {
13  class OrthographicCamera : public Camera
14  {
15  public:
18 
24  void SetOrthographicSize(float orthographic_size);
25 
27  float GetOrthographicSize() const;
28 
29  protected:
31  void UpdateProjectionMatrix() override;
32 
33  protected:
35  };
36 }
void UpdateProjectionMatrix() override
(Re)-calculates the projection matrix of the camera.
Definition: orthographic_camera.cc:35
A camera with orthographic projection, useful for 2D stuff.
Definition: orthographic_camera.h:13
A camera through which the scene is rendered.
Definition: camera.h:13
void SetOrthographicSize(float orthographic_size)
Sets the orthographic size of this camera.
Definition: orthographic_camera.cc:22
float orthographic_size_
The orthographic size that should be used with this camera.
Definition: orthographic_camera.h:34
float GetOrthographicSize() const
Definition: orthographic_camera.cc:29
The main Blowbox namespace.
Definition: image.cc:8