------------------------------------------------------------------------------------------------ Writes the scene library
| 1307 | // ------------------------------------------------------------------------------------------------ |
| 1308 | // Writes the scene library |
| 1309 | void ColladaExporter::WriteSceneLibrary() { |
| 1310 | // Determine if we are using the aiScene root or our own |
| 1311 | std::string sceneName("Scene"); |
| 1312 | if (mAdd_root_node) { |
| 1313 | mSceneId = MakeUniqueId(mUniqueIds, sceneName, std::string()); |
| 1314 | mUniqueIds.insert(mSceneId); |
| 1315 | } else { |
| 1316 | mSceneId = GetNodeUniqueId(mScene->mRootNode); |
| 1317 | sceneName = GetNodeName(mScene->mRootNode); |
| 1318 | } |
| 1319 | |
| 1320 | mOutput << startstr << "<library_visual_scenes>" << endstr; |
| 1321 | PushTag(); |
| 1322 | mOutput << startstr << "<visual_scene id=\"" + mSceneId + "\" name=\"" + sceneName + "\">" << endstr; |
| 1323 | PushTag(); |
| 1324 | |
| 1325 | if (mAdd_root_node) { |
| 1326 | // Export the root node |
| 1327 | WriteNode(mScene->mRootNode); |
| 1328 | } else { |
| 1329 | // Have already exported the root node |
| 1330 | for (size_t a = 0; a < mScene->mRootNode->mNumChildren; ++a) |
| 1331 | WriteNode(mScene->mRootNode->mChildren[a]); |
| 1332 | } |
| 1333 | |
| 1334 | PopTag(); |
| 1335 | mOutput << startstr << "</visual_scene>" << endstr; |
| 1336 | PopTag(); |
| 1337 | mOutput << startstr << "</library_visual_scenes>" << endstr; |
| 1338 | } |
| 1339 | // ------------------------------------------------------------------------------------------------ |
| 1340 | void ColladaExporter::WriteAnimationLibrary(size_t pIndex) { |
| 1341 | const aiAnimation *anim = mScene->mAnimations[pIndex]; |
nothing calls this directly
no test coverage detected