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

Method SetupProperties

code/AssetLib/MD3/MD3Loader.cpp:437–460  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------ Setup configuration properties

Source from the content-addressed store, hash-verified

435// ------------------------------------------------------------------------------------------------
436// Setup configuration properties
437void MD3Importer::SetupProperties(const Importer *pImp) {
438 // The
439 // AI_CONFIG_IMPORT_MD3_KEYFRAME option overrides the
440 // AI_CONFIG_IMPORT_GLOBAL_KEYFRAME option.
441 configFrameID = pImp->GetPropertyInteger(AI_CONFIG_IMPORT_MD3_KEYFRAME, -1);
442 if (static_cast<unsigned int>(-1) == configFrameID) {
443 configFrameID = pImp->GetPropertyInteger(AI_CONFIG_IMPORT_GLOBAL_KEYFRAME, 0);
444 }
445
446 // AI_CONFIG_IMPORT_MD3_HANDLE_MULTIPART
447 configHandleMP = (0 != pImp->GetPropertyInteger(AI_CONFIG_IMPORT_MD3_HANDLE_MULTIPART, 1));
448
449 // AI_CONFIG_IMPORT_MD3_SKIN_NAME
450 configSkinFile = (pImp->GetPropertyString(AI_CONFIG_IMPORT_MD3_SKIN_NAME, "default"));
451
452 // AI_CONFIG_IMPORT_MD3_LOAD_SHADERS
453 configLoadShaders = (pImp->GetPropertyBool(AI_CONFIG_IMPORT_MD3_LOAD_SHADERS, true));
454
455 // AI_CONFIG_IMPORT_MD3_SHADER_SRC
456 configShaderFile = (pImp->GetPropertyString(AI_CONFIG_IMPORT_MD3_SHADER_SRC, ""));
457
458 // AI_CONFIG_FAVOUR_SPEED
459 configSpeedFlag = (0 != pImp->GetPropertyInteger(AI_CONFIG_FAVOUR_SPEED, 0));
460}
461
462// ------------------------------------------------------------------------------------------------
463// Try to read the skin for a MD3 file

Callers

nothing calls this directly

Calls 2

GetPropertyIntegerMethod · 0.45
GetPropertyStringMethod · 0.45

Tested by

no test coverage detected