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

Method CreateMaterial

code/Common/SkeletonMeshBuilder.cpp:253–265  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------ Creates a dummy material and returns it.

Source from the content-addressed store, hash-verified

251// ------------------------------------------------------------------------------------------------
252// Creates a dummy material and returns it.
253aiMaterial *SkeletonMeshBuilder::CreateMaterial() {
254 aiMaterial *matHelper = new aiMaterial;
255
256 // Name
257 aiString matName(std::string("SkeletonMaterial"));
258 matHelper->AddProperty(&matName, AI_MATKEY_NAME);
259
260 // Prevent backface culling
261 const int no_cull = 1;
262 matHelper->AddProperty(&no_cull, 1, AI_MATKEY_TWOSIDED);
263
264 return matHelper;
265}

Callers

nothing calls this directly

Calls 1

AddPropertyMethod · 0.45

Tested by

no test coverage detected