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

Function CreateBmpStatic

Descent3/TelComEffects.cpp:1105–1116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1103}
1104
1105bool CreateBmpStatic(tceffect *tce, const char *filename) {
1106 ASSERT(filename);
1107
1108 tce->bmpinfo.chunk_bmp.pw = tce->bmpinfo.chunk_bmp.ph = 0;
1109 tce->bmpinfo.bm_handle = bm_AllocLoadFileBitmap(IGNORE_TABLE(filename), 0);
1110 if (tce->bmpinfo.bm_handle == -1) {
1111 tce->bmpinfo.bm_handle = BAD_BITMAP_HANDLE;
1112 mprintf(0, "Unable to load bmp '%s'\n", filename);
1113 } else
1114 bm_CreateChunkedBitmap(tce->bmpinfo.bm_handle, &tce->bmpinfo.chunk_bmp);
1115 return true;
1116}
1117
1118bool CreateBmpBlur(tceffect *tce, const char *filename) {
1119 ASSERT(filename);

Callers 1

CreateBitmapEffectFunction · 0.85

Calls 2

bm_AllocLoadFileBitmapFunction · 0.85
bm_CreateChunkedBitmapFunction · 0.85

Tested by

no test coverage detected