MCPcopy Create free account
hub / github.com/Segs/Segs / walkSceneNode

Function walkSceneNode

Projects/CoX/Servers/MapServer/MapSceneGraph.cpp:70–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void walkSceneNode( SceneNode *self, const glm::mat4 &accumulated, std::function<bool(SceneNode *,const glm::mat4 &)> visit_func )
71{
72 if(!visit_func(self, accumulated))
73 return;
74
75 for(const auto & child : self->m_children)
76 {
77 glm::mat4 transform(child.m_matrix2);
78 transform[3] = glm::vec4(child.m_translation,1);
79
80 walkSceneNode(child.node, accumulated * transform, visit_func);
81 }
82}
83
84static bool checkCostumeExists(const QString &n)
85{

Callers 3

spawn_npcsMethod · 0.85
getSpawnPointsMethod · 0.85
get_map_transfersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected