CSCI441 OpenGL Library 5.13.0
CS@Mines CSCI441 Computer Graphics Course Library
Loading...
Searching...
No Matches
HUDCamera.hpp
Go to the documentation of this file.
1
12#ifndef CSCI441_HUD_CAMERA_HPP
13#define CSCI441_HUD_CAMERA_HPP
14
15#include "OrthographicCamera.hpp"
16
17namespace CSCI441 {
18
23 class [[maybe_unused]] HUDCamera final : public CSCI441::OrthographicCamera {
24 public:
25 HUDCamera() = delete;
26
34 [[maybe_unused]] explicit HUDCamera(GLfloat minX, GLfloat maxX, GLfloat minY, GLfloat maxY);
35
39 HUDCamera(const HUDCamera&) = default;
44 HUDCamera& operator=(const HUDCamera&) = default;
45
49 HUDCamera(HUDCamera&&) = default;
55
59 ~HUDCamera() override = default;
60
64 void recomputeOrientation() override {};
69 void moveForward(const GLfloat unused) override {};
74 void moveBackward(const GLfloat unused) override {};
75 };
76}
77
78[[maybe_unused]]
79inline CSCI441::HUDCamera::HUDCamera(
80 const GLfloat minX,
81 const GLfloat maxX,
82 const GLfloat minY,
83 const GLfloat maxY
84) : OrthographicCamera(minX, maxX, minY, maxY) {
85
86}
87
88#endif//CSCI441_HUD_CAMERA_HPP
creates a 2D Orthographic projection camera used for Heads Up Display overlays
Definition: HUDCamera.hpp:23
HUDCamera & operator=(const HUDCamera &)=default
assign a copy of an existing camera
void recomputeOrientation() override
does nothing
Definition: HUDCamera.hpp:64
void moveBackward(const GLfloat unused) override
does nothing
Definition: HUDCamera.hpp:74
HUDCamera & operator=(HUDCamera &&)=default
reassign an existing camera to ourselves
~HUDCamera() override=default
properly destroy concrete children
void moveForward(const GLfloat unused) override
does nothing
Definition: HUDCamera.hpp:69
HUDCamera(HUDCamera &&)=default
construct a camera by moving ane existing camera object
HUDCamera(const HUDCamera &)=default
construct a copy an existing camera
Abstract Class to represent an orthographic camera. Stores box clip planes.
Definition: OrthographicCamera.hpp:11
CSCI441 Helper Functions for OpenGL.
Definition: ArcballCam.hpp:17