| 28 | } |
| 29 | |
| 30 | void Transform::GetParentMatrixStack(list<matrix4>& matrix) const{ |
| 31 | WeakRef p = parent; |
| 32 | |
| 33 | //get all the transforms by navigating up the hierarchy |
| 34 | while (!p.isNull()) { |
| 35 | Ref<Transform> e(p); |
| 36 | matrix.push_front(e->GenerateLocalMatrix()); |
| 37 | p = e->parent; |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | void Transform::AddChild(const WeakRef<Transform>& child) |
| 42 | { |
nothing calls this directly
no test coverage detected