MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / GetParentMatrixStack

Method GetParentMatrixStack

src/Transform.cpp:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void 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
41void Transform::AddChild(const WeakRef<Transform>& child)
42{

Callers

nothing calls this directly

Calls 2

GenerateLocalMatrixMethod · 0.80
isNullMethod · 0.45

Tested by

no test coverage detected