erebus
diff liberebus/src/snode.h @ 3:a932848de652
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 28 Apr 2014 15:44:59 +0300 |
parents | 474a0244f57d |
children | 93894c232d65 |
line diff
1.1 --- a/liberebus/src/snode.h Mon Apr 28 06:31:10 2014 +0300 1.2 +++ b/liberebus/src/snode.h Mon Apr 28 15:44:59 2014 +0300 1.3 @@ -16,7 +16,8 @@ 1.4 SceneNode *parent; 1.5 std::vector<SceneNode*> children; 1.6 1.7 - Matrix4x4 node_xform, xform; 1.8 + Matrix4x4 xform; 1.9 + Matrix4x4 inv_xform; 1.10 1.11 public: 1.12 void add_child(SceneNode *node); 1.13 @@ -37,6 +38,9 @@ 1.14 Quaternion get_rotation() const; 1.15 Vector3 get_scaling() const; 1.16 1.17 + const Matrix4x4 &get_matrix() const; 1.18 + const Matrix4x4 &get_inv_matrix() const; 1.19 + 1.20 void update_node(long msec = 0); 1.21 void update(long msec = 0); 1.22