|
PGR Copakond OpenGL Engine - Bowling
|
Base class for all spatial objects, serving as a node in the scene graph. More...
#include <geometry.h>
Public Member Functions | |
| 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 | setRotation (const glm::vec3 &rotation) |
| virtual void | setScale (const glm::vec3 &scale) |
| virtual void | setRotationDegrees (const glm::vec3 &rotationDegrees) |
| 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 |
Protected Attributes | |
| Geometry * | parent = nullptr |
| std::vector< Geometry * > | children |
| glm::vec3 | _position |
| glm::vec3 | _rotation |
| glm::vec3 | _scale |
Base class for all spatial objects, serving as a node in the scene graph.
| copakond::Geometry::Geometry | ( | ) |
| copakond::Geometry::Geometry | ( | const glm::vec3 & | position | ) |
| copakond::Geometry::Geometry | ( | const glm::vec3 & | position, |
| const glm::vec3 & | rotation ) |
| copakond::Geometry::Geometry | ( | const glm::vec3 & | position, |
| const glm::vec3 & | rotation, | ||
| const glm::vec3 & | scale ) |
|
virtual |
|
inline |
| glm::mat4 copakond::Geometry::getModelMatrix | ( | ) | const |
Calculates local transformation matrix.
|
inline |
|
inline |
| glm::mat4 copakond::Geometry::getPositionMatrix | ( | ) | const |
|
inline |
|
inline |
| glm::mat4 copakond::Geometry::getRotationMatrix | ( | ) | const |
| glm::mat4 copakond::Geometry::getRotationXMatrix | ( | ) | const |
| glm::mat4 copakond::Geometry::getRotationYMatrix | ( | ) | const |
| glm::mat4 copakond::Geometry::getRotationZMatrix | ( | ) | const |
|
inline |
| glm::mat4 copakond::Geometry::getScaleMatrix | ( | ) | const |
| glm::mat4 copakond::Geometry::getWorldModelMatrix | ( | ) | const |
Calculates global transformation matrix by multiplying all ancestor matrices.
| glm::vec3 copakond::Geometry::getWorldPosition | ( | ) | const |
| glm::mat4 copakond::Geometry::getWorldPositionMatrix | ( | ) | const |
| glm::vec3 copakond::Geometry::getWorldRotation | ( | ) | const |
| glm::mat4 copakond::Geometry::getWorldRotationMatrix | ( | ) | const |
| glm::vec3 copakond::Geometry::getWorldScale | ( | ) | const |
| glm::mat4 copakond::Geometry::getWorldScaleMatrix | ( | ) | const |
|
inline |
|
inline |
|
inline |
| bool copakond::Geometry::setParent | ( | Geometry * | newParent | ) |
Attaches this object to a new parent in the scene graph.
| newParent | Pointer to the new parent node. |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in copakond::Camera.
|
inlinevirtual |
Reimplemented in copakond::Camera.
|
inlinevirtual |
| glm::vec3 copakond::Geometry::worldPosition | ( | ) | const |
| glm::vec3 copakond::Geometry::worldRotation | ( | ) | const |
| glm::vec3 copakond::Geometry::worldScale | ( | ) | const |
|
protected |
|
protected |
Rotation in radians
|
protected |
|
protected |
List of child nodes
|
protected |
Pointer to the parent node in the hierarchy