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

Function bump_data

bitmap/bumpmap.cpp:106–117  ·  view source on GitHub ↗

returns a bumpmaps data else NULL if something is wrong

Source from the content-addressed store, hash-verified

104
105// returns a bumpmaps data else NULL if something is wrong
106uint16_t *bump_data(int handle) {
107 uint16_t *d;
108
109 if (!(GameBumpmaps[handle].flags & BUMPF_USED)) {
110 Int3();
111 return NULL;
112 }
113
114 d = GameBumpmaps[handle].data;
115
116 return (d);
117}
118
119// returns width of bumpmap
120uint8_t bump_w(int handle) {

Callers 2

BuildTextureBumpmapsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected