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

Function lm_w

bitmap/lightmap.cpp:116–125  ·  view source on GitHub ↗

returns a lightmaps width else -1 if something is wrong

Source from the content-addressed store, hash-verified

114}
115// returns a lightmaps width else -1 if something is wrong
116int lm_w(int handle) {
117 int w;
118 if (!GameLightmaps[handle].used) {
119 Int3();
120 return -1;
121 }
122 w = GameLightmaps[handle].width;
123
124 return (w);
125}
126// returns a lightmaps height , else -1 if something is wrong
127int lm_h(int handle) {
128 int h;

Callers 15

d3d_DrawPolygonFunction · 0.85
ShowLevelStatsFunction · 0.85
ApplyLightingToSubmodelFunction · 0.85
ApplyLightingToRoomsFunction · 0.85
ClearDynamicLightmapsFunction · 0.85
DestroyLightFunction · 0.85
WriteLightmapChunkFunction · 0.85
TCAMRenderRoomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected