int printmaps(int fd) { int nmaps = nummaps(), i; struct MAP dumpmaps[nmaps]; if (ERROR == getmaps(nmaps,dumpmaps)) return ERROR; checkmaps(nmaps,dumpmaps); for (i=0; i<nmaps; i++) fdprintmap(fd,&dumpmaps[i]); return 0; }
LightInfo::LightInfo(INode* node, MtlBaseLib* mtls) { ObjectState ostate = node->EvalWorldState(0); light = (LightObject*)ostate.obj; lightDesc = light->CreateLightDesc(node); // Process projector maps GetMaps getmaps(mtls); EnumRefs(light,getmaps); }
LightInfo::LightInfo(INode* node, MtlBaseLib* mtls) { ObjectState ostate = node->EvalWorldState(0); light = (LightObject*)ostate.obj; lightDesc = light->CreateLightDesc(node); // Process projector maps GetMaps getmaps(mtls); light->EnumRefHierarchy(getmaps, true, // include custom attribs true, // include indirect refs true, // include non-persistent refs false); // prevent duplicates via flag }