------------------------------
| 49 | |
| 50 | //------------------------------ |
| 51 | bool SceneGraphHandler::handleNode(const COLLADAFW::Node* nodeToWriter) |
| 52 | { |
| 53 | const NodeInfo& parentNodeInfo = mNodeInfoStack.top(); |
| 54 | const COLLADABU::Math::Matrix4& parentWorldMatrix = parentNodeInfo.worldTransformation; |
| 55 | COLLADABU::Math::Matrix4 worldMatrix = parentWorldMatrix * nodeToWriter->getTransformationMatrix(); |
| 56 | NodeInfo nodeInfo( worldMatrix ); |
| 57 | mNodeInfoStack.push(nodeInfo); |
| 58 | |
| 59 | handleInstanceGeometries( nodeToWriter, worldMatrix ); |
| 60 | handleInstanceLights( nodeToWriter, worldMatrix ); |
| 61 | |
| 62 | handleNodes(nodeToWriter->getChildNodes()); |
| 63 | |
| 64 | handleInstanceNodes( nodeToWriter->getInstanceNodes() ); |
| 65 | |
| 66 | mNodeInfoStack.pop(); |
| 67 | return true; |
| 68 | } |
| 69 | |
| 70 | //------------------------------ |
| 71 | void SceneGraphHandler::handleInstanceGeometries( const COLLADAFW::Node* node, const COLLADABU::Math::Matrix4& matrix ) |
nothing calls this directly
no test coverage detected