MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / writeLight

Method writeLight

dae23ds_lib3ds/src/DAE23dsWriter.cpp:269–288  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

267
268 //--------------------------------------------------------------------
269 bool Writer::writeLight( const COLLADAFW::Light* light )
270 {
271 _Log("writeLight("<< light->getName()<<")");
272 _Log(",type="<<light->getLightType()
273 <<",uid="<<light->getUniqueId().toAscii()
274 <<",oid="<<light->getObjectId()
275 <<",orid="<<light->getOriginalId()
276 <<"light name="<< light->getName()
277 <<",type="<< light->getLightType()
278 <<",color="<< light->getColor().getRed()<<","<< light->getColor().getGreen()<<","<<light->getColor().getBlue()
279 <<",const attenuation="<< light->getConstantAttenuation().getValue()
280 <<",linear attenuation="<< light->getLinearAttenuation().getValue()
281 <<",quadratic attenuation="<< light->getQuadraticAttenuation().getValue()
282 <<",fallOffAngle="<< light->getFallOffAngle().getValue()
283 <<",fallOffExp="<< light->getFallOffExponent().getValue()
284 );
285 lightMap.insert( std::make_pair(light->getUniqueId(),light) );
286
287 return true;
288 }
289
290 //--------------------------------------------------------------------
291 bool Writer::writeAnimation( const COLLADAFW::Animation* animation )

Callers

nothing calls this directly

Calls 15

getLightTypeMethod · 0.80
toAsciiMethod · 0.80
getUniqueIdMethod · 0.80
getLinearAttenuationMethod · 0.80
getFallOffAngleMethod · 0.80
getFallOffExponentMethod · 0.80
getNameMethod · 0.45
getObjectIdMethod · 0.45
getRedMethod · 0.45
getColorMethod · 0.45

Tested by

no test coverage detected