12#ifndef CSCI441_ORTHOGRAPHIC_CAMERA_HPP
13#define CSCI441_ORTHOGRAPHIC_CAMERA_HPP
33 explicit OrthographicCamera(GLfloat minX = -1.0f, GLfloat maxX = 1.0f, GLfloat minY = -1.0f, GLfloat maxY = 1.0f, GLfloat minZ = -1.0f, GLfloat maxZ = 1.0f);
62 void _updateProjectionMatrix();
81) : _minX(minX), _maxX(maxX), _minY(minY), _maxY(maxY), _minZ(minZ), _maxZ(maxZ) {
82 _updateProjectionMatrix();
85inline void CSCI441::OrthographicCamera::_updateProjectionMatrix() {
86 mProjectionMatrix = glm::ortho( _minX, _maxX, _minY, _maxY, _minZ, _maxZ );
Abstract Camera class to be placed (position and orientation) within our scene.
Abstract Class to represent a synthetic camera. The following methods must be overridden:
Definition: Camera.hpp:39
Abstract Class to represent an orthographic camera. Stores box clip planes.
Definition: OrthographicCamera.hpp:22
OrthographicCamera(OrthographicCamera &&)=default
construct a camera by moving ane existing camera object
OrthographicCamera & operator=(OrthographicCamera &&)=default
reassign an existing camera to ourselves
OrthographicCamera(const OrthographicCamera &)=default
construct a copy an existing camera
OrthographicCamera(GLfloat minX=-1.0f, GLfloat maxX=1.0f, GLfloat minY=-1.0f, GLfloat maxY=1.0f, GLfloat minZ=-1.0f, GLfloat maxZ=1.0f)
initializes the OrthographicCamera
Definition: OrthographicCamera.hpp:74
OrthographicCamera & operator=(const OrthographicCamera &)=default
assign a copy of an existing camera
~OrthographicCamera() override=default
properly destroy concrete children
CSCI441 Helper Functions for OpenGL.
Definition: ArcballCam.hpp:17