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

Function bm_format

bitmap/bitmain.cpp:1547–1556  ·  view source on GitHub ↗

Returns the format of this bitmap

Source from the content-addressed store, hash-verified

1545}
1546// Returns the format of this bitmap
1547int bm_format(int handle) {
1548 if (!GameBitmaps[handle].used) {
1549 Int3();
1550 return -1;
1551 }
1552 if (GameBitmaps[handle].flags & BF_NOT_RESIDENT)
1553 if (!bm_MakeBitmapResident(handle))
1554 return 0;
1555 return (GameBitmaps[handle].format);
1556}

Callers 6

RenderSpecularFacesFlatFunction · 0.85
loadMethod · 0.85

Calls 1

bm_MakeBitmapResidentFunction · 0.85

Tested by

no test coverage detected