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

Method ExportMetadata

code/AssetLib/glTF2/glTF2Exporter.cpp:1604–1619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1602}
1603
1604void glTF2Exporter::ExportMetadata() {
1605 AssetMetadata &asset = mAsset->asset;
1606 asset.version = "2.0";
1607
1608 char buffer[256];
1609 ai_snprintf(buffer, 256, "Open Asset Import Library (assimp v%d.%d.%x)",
1610 aiGetVersionMajor(), aiGetVersionMinor(), aiGetVersionRevision());
1611
1612 asset.generator = buffer;
1613
1614 // Copyright
1615 aiString copyright_str;
1616 if (mScene->mMetaData != nullptr && mScene->mMetaData->Get(AI_METADATA_SOURCE_COPYRIGHT, copyright_str)) {
1617 asset.copyright = copyright_str.C_Str();
1618 }
1619}
1620
1621inline Ref<Accessor> GetSamplerInputRef(Asset &asset, std::string &animId, Ref<Buffer> &buffer, std::vector<ai_real> &times) {
1622 return ExportData(asset, animId, buffer, (unsigned int)times.size(), &times[0], AttribType::SCALAR, AttribType::SCALAR, ComponentType_FLOAT);

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