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

Function getUniqueMaterial1

test/unit/utRemoveRedundantMaterials.cpp:61–72  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

59
60// ------------------------------------------------------------------------------------------------
61aiMaterial *getUniqueMaterial1() {
62 // setup an unique name for each material - this shouldn't care
63 aiString mTemp;
64 mTemp.Set("UniqueMat1");
65
66 aiMaterial *pcMat = new aiMaterial();
67 pcMat->AddProperty(&mTemp, AI_MATKEY_NAME);
68 float f = 2.0f;
69 pcMat->AddProperty<float>(&f, 1, AI_MATKEY_BUMPSCALING);
70 pcMat->AddProperty<float>(&f, 1, AI_MATKEY_SHININESS_STRENGTH);
71 return pcMat;
72}
73
74// ------------------------------------------------------------------------------------------------
75aiMaterial *getUniqueMaterial2() {

Callers 1

SetUpMethod · 0.85

Calls 2

SetMethod · 0.45
AddPropertyMethod · 0.45

Tested by

no test coverage detected