CSCI441 OpenGL Library 5.9.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 void recomputeOrientation() final {};
44 void moveForward(const GLfloat unused) final {};
49 void moveBackward(const GLfloat unused) final {};
50
51 private:
52
53 };
54}
55
57 const GLfloat aspectRatio,
58 const GLfloat fovy,
59 const GLfloat nearClipPlane,
60 const GLfloat farClipPlane
61) : PerspectiveCamera(aspectRatio, fovy, nearClipPlane, farClipPlane)
62{
63
64}
65
66#endif // CSCI441_FIXED_CAM_HPP
A camera that can be positioned and oriented but never moved or rotated.
Definition: FixedCam.hpp:24
void moveBackward(const GLfloat unused) final
does nothing
Definition: FixedCam.hpp:49
void recomputeOrientation() final
does nothing
Definition: FixedCam.hpp:39
void moveForward(const GLfloat unused) final
does nothing
Definition: FixedCam.hpp:44
FixedCam(GLfloat aspectRatio=1.0f, GLfloat fovy=45.0f, GLfloat nearClipPlane=0.001f, GLfloat farClipPlane=1000.0f)
Definition: FixedCam.hpp:56
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