MCPcopy Create free account
hub / github.com/assimp/assimp / ExportMetadata

Method ExportMetadata

code/AssetLib/glTF/glTFExporter.cpp:895–911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

893}
894
895void glTFExporter::ExportMetadata()
896{
897 glTF::AssetMetadata& asset = mAsset->asset;
898 asset.version = "1.0";
899
900 char buffer[256];
901 ai_snprintf(buffer, 256, "Open Asset Import Library (assimp v%d.%d.%x)",
902 aiGetVersionMajor(), aiGetVersionMinor(), aiGetVersionRevision());
903
904 asset.generator = buffer;
905
906 // Copyright
907 aiString copyright_str;
908 if (mScene->mMetaData != nullptr && mScene->mMetaData->Get(AI_METADATA_SOURCE_COPYRIGHT, copyright_str)) {
909 asset.copyright = copyright_str.C_Str();
910 }
911}
912
913inline void ExtractAnimationData(Asset& mAsset, std::string& animId, Ref<Animation>& animRef, Ref<Buffer>& buffer, const aiNodeAnim* nodeChannel, float ticksPerSecond)
914{

Callers

nothing calls this directly

Calls 6

ai_snprintfFunction · 0.85
aiGetVersionMajorFunction · 0.85
aiGetVersionMinorFunction · 0.85
aiGetVersionRevisionFunction · 0.85
C_StrMethod · 0.80
GetMethod · 0.45

Tested by

no test coverage detected