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

Function IsLightPointVisible

Descent3/object_lighting.cpp:119–129  ·  view source on GitHub ↗

returns true if this light point is visible

Source from the content-addressed store, hash-verified

117
118// returns true if this light point is visible
119bool IsLightPointVisible(vector *pos, float size, object *obj) {
120 if (obj != NULL) {
121 if ((obj->flags & OF_RENDERED) || IsPointVisible(pos, size, NULL))
122 return true;
123 } else {
124 if (IsPointVisible(pos, size, NULL))
125 return true;
126 }
127
128 return false;
129}
130
131// Fills in the color of the passed in players thrusters. For lighting
132void FindPlayerThrusterColor(int slot, float *r, float *g, float *b) {

Callers 1

DoObjectLightFunction · 0.85

Calls 1

IsPointVisibleFunction · 0.85

Tested by

no test coverage detected