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

Function bm_FreeBitmapMain

bitmap/bitmain.cpp:623–630  ·  view source on GitHub ↗

simply frees up a bitmap

Source from the content-addressed store, hash-verified

621}
622// simply frees up a bitmap
623void bm_FreeBitmapMain(int handle) {
624 bm_deleteNode(&GameBitmaps[handle]);
625 bm_FreeBitmapData(handle);
626 GameBitmaps[handle].data16 = NULL;
627 GameBitmaps[handle].cache_slot = -1;
628 GameBitmaps[handle].used = 0;
629 Num_of_bitmaps--;
630}
631// Returns -1 if this name is not already in use, else index of bitmap that is using name
632int bm_TestName(const char *src) {
633 uint32_t i, limit;

Callers 2

bm_ShutdownBitmapsFunction · 0.85
bm_FreeBitmapFunction · 0.85

Calls 2

bm_deleteNodeFunction · 0.85
bm_FreeBitmapDataFunction · 0.85

Tested by

no test coverage detected