MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ObjGetLightInfo

Function ObjGetLightInfo

Descent3/object_lighting.cpp:643–657  ·  view source on GitHub ↗

Returns a pointer to the lighting info for the specified object

Source from the content-addressed store, hash-verified

641
642// Returns a pointer to the lighting info for the specified object
643light_info *ObjGetLightInfo(object *objp) {
644 if (objp->lighting_info)
645 return objp->lighting_info;
646
647 if ((objp->type == OBJ_POWERUP) || (objp->type == OBJ_ROBOT) || (objp->type == OBJ_CLUTTER) ||
648 (objp->type == OBJ_BUILDING))
649 return &Object_info[objp->id].lighting_info;
650
651 if (objp->type == OBJ_WEAPON)
652 return &Weapons[objp->id].lighting_info;
653
654 Int3();
655
656 return NULL;
657}

Callers 6

msafe_GetValueFunction · 0.85
DrawPowerupSparklesFunction · 0.85
DrawPowerupGlowDiskFunction · 0.85
MultiDoWorldStatesFunction · 0.85
MultiSendWorldStatesFunction · 0.85
DoObjectLightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected