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

Function bm_mipped

bitmap/bitmain.cpp:1168–1180  ·  view source on GitHub ↗

returns a bitmaps mipped status, else -1 if something is wrong

Source from the content-addressed store, hash-verified

1166
1167// returns a bitmaps mipped status, else -1 if something is wrong
1168int bm_mipped(int handle) {
1169 if (!GameBitmaps[handle].used) {
1170 Int3();
1171 return -1;
1172 }
1173 // If this bitmap is not page in, do so!
1174 if (GameBitmaps[handle].flags & BF_NOT_RESIDENT)
1175 if (!bm_MakeBitmapResident(handle))
1176 return 0;
1177 if (GameBitmaps[handle].flags & BF_MIPMAPPED)
1178 return 1;
1179 return 0;
1180}
1181// returns a bitmaps data (based on given miplevel), else NULL if something is wrong
1182uint16_t *bm_data(int handle, int miplevel) {
1183 uint16_t *d;

Callers 13

UpdateDialogMethod · 0.85
bm_AllocLoadFileBitmapFunction · 0.85
bm_AllocLoadBitmapFunction · 0.85
bm_MakeBadFunction · 0.85
bm_SaveBitmapFunction · 0.85
bm_ScaleBitmapToBitmapFunction · 0.85
bm_ChangeSizeFunction · 0.85

Calls 1

bm_MakeBitmapResidentFunction · 0.85

Tested by

no test coverage detected