#include <transform.h>
Public Member Functions | |
const Transform * | GetParent () const |
Transform * | GetParent () |
glm::vec3 | GetPosition () const |
glm::quat | GetRotation () const |
glm::vec3 | GetScale () const |
glm::mat4 | GetTransformationMatrix () const |
const Transform & | operator= (const Transform &rhs)=delete |
void | SetParent (Transform *transform) |
void | SetPosition (const glm::vec3 &position) |
void | SetRotation (const glm::quat &rotation) |
void | SetScale (const glm::vec3 &scale) |
void | SetTransformationMatrix (const glm::mat4 &transform_mat) |
Transform () | |
Transform (const Transform &other)=delete | |
void | Translate (const glm::vec3 &translation) |
virtual | ~Transform () |
Private Attributes | |
Transform * | parent_ |
glm::vec3 | position_ |
glm::quat | rotation_ |
glm::vec3 | scale_ |
Definition at line 24 of file transform.h.
tango_gl::Transform::Transform | ( | ) |
Definition at line 24 of file transform.cpp.
|
virtual |
Definition at line 31 of file transform.cpp.
|
delete |
const Transform * tango_gl::Transform::GetParent | ( | ) | const |
Definition at line 84 of file transform.cpp.
Transform * tango_gl::Transform::GetParent | ( | ) |
Definition at line 88 of file transform.cpp.
glm::vec3 tango_gl::Transform::GetPosition | ( | ) | const |
Definition at line 39 of file transform.cpp.
glm::quat tango_gl::Transform::GetRotation | ( | ) | const |
Definition at line 47 of file transform.cpp.
glm::vec3 tango_gl::Transform::GetScale | ( | ) | const |
Definition at line 55 of file transform.cpp.
glm::mat4 tango_gl::Transform::GetTransformationMatrix | ( | ) | const |
Definition at line 67 of file transform.cpp.
void tango_gl::Transform::SetParent | ( | Transform * | transform | ) |
Definition at line 80 of file transform.cpp.
void tango_gl::Transform::SetPosition | ( | const glm::vec3 & | position | ) |
Definition at line 35 of file transform.cpp.
void tango_gl::Transform::SetRotation | ( | const glm::quat & | rotation | ) |
Definition at line 43 of file transform.cpp.
void tango_gl::Transform::SetScale | ( | const glm::vec3 & | scale | ) |
Definition at line 51 of file transform.cpp.
void tango_gl::Transform::SetTransformationMatrix | ( | const glm::mat4 & | transform_mat | ) |
Definition at line 63 of file transform.cpp.
void tango_gl::Transform::Translate | ( | const glm::vec3 & | translation | ) |
Definition at line 59 of file transform.cpp.
|
private |
Definition at line 52 of file transform.h.
|
private |
Definition at line 54 of file transform.h.
|
private |
Definition at line 55 of file transform.h.
|
private |
Definition at line 56 of file transform.h.