|
Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
|
#include <camera.hpp>
Public Member Functions | |
| DungeonMasterCamera () | |
| ~DungeonMasterCamera () | |
| void | update (float xpos, float ypos) override |
| Updates the the camera based on the input screen coordinates. More... | |
Public Member Functions inherited from Camera | |
| Camera () | |
| Constructs a new Camera object. More... | |
| ~Camera () | |
| Destroys the Camera object. More... | |
| void | setAspect (float a) |
| Sets the aspect ratio of the camera. More... | |
| virtual void | update (float xpos, float ypos) |
| Updates the the camera based on the input screen coordinates. More... | |
| glm::vec3 | move (bool is_x_axis, float dir) |
| Moves the camera based on the axis, direction, and speed. Factors in the current direction of the camera to compute proper lateral and forward movement. More... | |
| glm::mat4 | getViewProj () |
| Returns the view-projection matrix of the Camera, for use in rendering. More... | |
| glm::vec3 | getFacing () |
| Returns a normalized vector representing the direction that the camera is facing. More... | |
| void | updatePos (glm::vec3 pos) |
| Updates the position of the camera. More... | |
| glm::vec3 | getPos () |
| glm::mat4 | getProjection () |
| glm::mat4 | getView () |
| void | setPitch (float pitch) |
Additional Inherited Members | |
Protected Attributes inherited from Camera | |
| float | FOV |
| float | aspect |
| float | nearClip |
| float | farClip |
| float | yaw |
| float | pitch |
| float | lastX |
| float | lastY |
| float | fov |
| bool | firstMouse |
| float | sensitivity |
| glm::vec3 | cameraPos |
| glm::vec3 | cameraFront |
| glm::vec3 | cameraUp |
| glm::vec3 | cameraRight |
| glm::vec3 | worldUp |
| float | speed |
| glm::mat4 | viewProjMat |
| glm::mat4 | projection |
| glm::mat4 | view |
| DungeonMasterCamera::DungeonMasterCamera | ( | ) |
| DungeonMasterCamera::~DungeonMasterCamera | ( | ) |
|
overridevirtual |
Updates the the camera based on the input screen coordinates.
| xpos | New x-coordinate for the cursor. |
| ypos | New y-coordinate for the cursor. |
Reimplemented from Camera.