MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / resolveColor

Method resolveColor

Engine/source/ts/collada/colladaAppMaterial.cpp:176–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void ColladaAppMaterial::resolveColor(const domCommon_color_or_texture_type* value, LinearColorF* dst)
177{
178 if (value && value->getColor()) {
179 dst->red = value->getColor()->getValue()[0];
180 dst->green = value->getColor()->getValue()[1];
181 dst->blue = value->getColor()->getValue()[2];
182 dst->alpha = value->getColor()->getValue()[3];
183 }
184}
185
186// Generate a new Material object
187Material *ColladaAppMaterial::createMaterial(const Torque::Path& path) const

Callers

nothing calls this directly

Calls 2

getColorMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected