Brunot
Loading...
Searching...
No Matches
Camera.h
Go to the documentation of this file.
1// File: Camera.h
2// Description: A system for setting up a callback to opengl for window resizing and calculating the view transforms
3// Author(s): Aidan Hartman (aidan.hartman@digipen.edu)
4// 2025 / 10 / 06
5// (C) Digipen 2025
6// ____ __ __ __
7// /\__ _\/\ \ /\ \/\ \
8// \/_/\ \/\ \ \___ __ \ \ \_\ \ ___ __ __ ____ __
9// \ \ \ \ \ _ `\ /'__`\ \ \ _ \ / __`\/\ \/\ \ /',__\ /'__`\
10// \ \ \ \ \ \ \ \/\ __/ \ \ \ \ \/\ \L\ \ \ \_\ \/\__, `\/\ __/
11// \ \_\ \ \_\ \_\ \____\ \ \_\ \_\ \____/\ \____/\/\____/\ \____\
12// \/_/ \/_/\/_/\/____/ \/_/\/_/\/___/ \/___/ \/___/ \/____/
13#pragma once
14#include "opengl.h"
15#include "Eigen/Dense"
16
17//Forward declarations
18struct GLFWwindow;
19
20namespace cam
21{
22auto init(GLFWwindow* window, int width, int height) -> void;
23
28auto view() -> const Eigen::Matrix4f&;
33auto projection() -> const Eigen::Matrix4f&;
34
35auto screen() -> const Eigen::Matrix4f&
36;
37
38
39}
Definition Camera.h:21
auto screen() -> const Eigen::Matrix4f &
Definition Camera.cpp:182
auto view() -> const Eigen::Matrix4f &
gets the view transform for the camera
Definition Camera.cpp:172
auto init(GLFWwindow *window, int width, int height) -> void
Definition Camera.cpp:166
auto projection() -> const Eigen::Matrix4f &
Gets the orthogonal projection matrix for the camera.
Definition Camera.cpp:177