CSCI441 OpenGL Library 5.13.0
CS@Mines CSCI441 Computer Graphics Course Library
Loading...
Searching...
No Matches
FixedCam.hpp
Go to the documentation of this file.
1
12#ifndef CSCI441_FIXED_CAM_HPP
13#define CSCI441_FIXED_CAM_HPP
14
15#include "PerspectiveCamera.hpp"
16
17namespace CSCI441 {
18
24 class FixedCam final : public CSCI441::PerspectiveCamera {
25 public:
34 explicit FixedCam(GLfloat aspectRatio = 1.0f, GLfloat fovy = 45.0f, GLfloat nearClipPlane = 0.001f, GLfloat farClipPlane = 1000.0f);
35
39 FixedCam(const FixedCam&) = default;
44 FixedCam& operator=(const FixedCam&) = default;
45
49 FixedCam(FixedCam&&) = default;
55
59 ~FixedCam() override = default;
60
64 void recomputeOrientation() override {};
69 void moveForward(const GLfloat unused) override {};
74 void moveBackward(const GLfloat unused) override {};
75 };
76}
77
79 const GLfloat aspectRatio,
80 const GLfloat fovy,
81 const GLfloat nearClipPlane,
82 const GLfloat farClipPlane
83) : PerspectiveCamera(aspectRatio, fovy, nearClipPlane, farClipPlane)
84{
85
86}
87
88#endif // CSCI441_FIXED_CAM_HPP
A camera that can be positioned and oriented but never moved or rotated.
Definition: FixedCam.hpp:24
void moveForward(const GLfloat unused) override
does nothing
Definition: FixedCam.hpp:69
FixedCam(FixedCam &&)=default
construct a camera by moving ane existing camera object
void recomputeOrientation() override
does nothing
Definition: FixedCam.hpp:64
void moveBackward(const GLfloat unused) override
does nothing
Definition: FixedCam.hpp:74
FixedCam & operator=(FixedCam &&)=default
reassign an existing camera to ourselves
FixedCam & operator=(const FixedCam &)=default
assign a copy of an existing camera
~FixedCam() override=default
properly destroy concrete children
FixedCam(const FixedCam &)=default
construct a copy an existing camera
FixedCam(GLfloat aspectRatio=1.0f, GLfloat fovy=45.0f, GLfloat nearClipPlane=0.001f, GLfloat farClipPlane=1000.0f)
Definition: FixedCam.hpp:78
Abstract Class to represent a perspective camera. Stores aspect ratio and field of view.
Definition: PerspectiveCamera.hpp:11
CSCI441 Helper Functions for OpenGL.
Definition: ArcballCam.hpp:17