|
PGR Copakond OpenGL Engine - Bowling
|
Camera for generating view and projection matrices. More...
#include <camera.h>
Public Member Functions | |
| Camera (const glm::vec3 &startPosition, const glm::vec3 &startLookPoint, float distance) | |
| void | lookToPoint (const glm::vec3 &point) |
| Orients the camera to look directly at a specific world coordinate. | |
| void | setRotation (const glm::vec3 &rotation) override |
| void | setRotationDegrees (const glm::vec3 &rotationDegrees) override |
| void | addFov (float fov) |
| glm::mat4 | getViewMatrix () |
| glm::mat4 | getProjectionMatrix (float aspectWidth, float aspectHeight) |
| Generates perspective projection matrix. | |
| glm::vec3 | getPosition () const |
| glm::vec3 & | position () |
| glm::vec3 & | rotation () |
| void | processKeyboard (int direction, float deltaTime) |
| Processes keyboard movement input. | |
| void | processMouseMovement (float deltaX, float deltaY) |
| void | processMouseDrag (float deltaX, float deltaY) |
| void | setFog (const Fog &fog) |
| Fog | getFog () const |
| Public Member Functions inherited from copakond::Geometry | |
| Geometry () | |
| Geometry (const glm::vec3 &position) | |
| Geometry (const glm::vec3 &position, const glm::vec3 &rotation) | |
| Geometry (const glm::vec3 &position, const glm::vec3 &rotation, const glm::vec3 &scale) | |
| virtual | ~Geometry () |
| virtual void | setPosition (const glm::vec3 &position) |
| virtual void | setScale (const glm::vec3 &scale) |
| glm::mat4 | getRotationXMatrix () const |
| glm::mat4 | getRotationYMatrix () const |
| glm::mat4 | getRotationZMatrix () const |
| glm::mat4 | getPositionMatrix () const |
| glm::mat4 | getRotationMatrix () const |
| glm::mat4 | getScaleMatrix () const |
| glm::mat4 | getModelMatrix () const |
| Calculates local transformation matrix. | |
| glm::mat4 | getWorldPositionMatrix () const |
| glm::mat4 | getWorldRotationMatrix () const |
| glm::mat4 | getWorldScaleMatrix () const |
| glm::mat4 | getWorldModelMatrix () const |
| Calculates global transformation matrix by multiplying all ancestor matrices. | |
| glm::vec3 | getPosition () const |
| glm::vec3 | getRotation () const |
| glm::vec3 | getScale () const |
| glm::vec3 | getRotationDegrees () const |
| glm::vec3 | getWorldPosition () const |
| glm::vec3 | getWorldRotation () const |
| glm::vec3 | getWorldScale () const |
| glm::vec3 & | position () |
| glm::vec3 & | rotation () |
| glm::vec3 & | scale () |
| glm::vec3 | worldPosition () const |
| glm::vec3 | worldRotation () const |
| glm::vec3 | worldScale () const |
| bool | setParent (Geometry *newParent) |
| Attaches this object to a new parent in the scene graph. | |
| Geometry * | getParent () const |
| std::vector< Geometry * > | getChildren () const |
Additional Inherited Members | |
| Protected Attributes inherited from copakond::Geometry | |
| Geometry * | parent = nullptr |
| std::vector< Geometry * > | children |
| glm::vec3 | _position |
| glm::vec3 | _rotation |
| glm::vec3 | _scale |
Camera for generating view and projection matrices.
| copakond::Camera::Camera | ( | const glm::vec3 & | startPosition, |
| const glm::vec3 & | startLookPoint, | ||
| float | distance ) |
| void copakond::Camera::addFov | ( | float | fov | ) |
|
inline |
|
inline |
| glm::mat4 copakond::Camera::getProjectionMatrix | ( | float | aspectWidth, |
| float | aspectHeight ) |
Generates perspective projection matrix.
| aspectWidth | Window width. |
| aspectHeight | Window height. |
| glm::mat4 copakond::Camera::getViewMatrix | ( | ) |
| void copakond::Camera::lookToPoint | ( | const glm::vec3 & | point | ) |
Orients the camera to look directly at a specific world coordinate.
| point | Target coordinates in world space. |
|
inline |
| void copakond::Camera::processKeyboard | ( | int | direction, |
| float | deltaTime ) |
Processes keyboard movement input.
| direction | Predefined movement macro (e.g., FRONT, BACK). |
| deltaTime | Time elapsed since last frame. |
| void copakond::Camera::processMouseDrag | ( | float | deltaX, |
| float | deltaY ) |
| void copakond::Camera::processMouseMovement | ( | float | deltaX, |
| float | deltaY ) |
|
inline |
|
inline |
|
overridevirtual |
Reimplemented from copakond::Geometry.
|
overridevirtual |
Reimplemented from copakond::Geometry.