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

Function bm_rowsize

bitmap/bitmain.cpp:1347–1353  ·  view source on GitHub ↗

given a handle and a miplevel, returns the bytes per bitmap row

Source from the content-addressed store, hash-verified

1345}
1346// given a handle and a miplevel, returns the bytes per bitmap row
1347int bm_rowsize(int handle, int miplevel) {
1348 int w;
1349 ASSERT(GameBitmaps[handle].used > 0);
1350 w = bm_w(handle, miplevel);
1351 w *= 2;
1352 return w;
1353}
1354// a function to determine if a pixel in a bitmap is transparent
1355bool bm_pixel_transparent(int bm_handle, int x, int y) {
1356 if ((bm_data(bm_handle, 0)) == NULL)

Callers 6

makecornerFunction · 0.85
grMemorySurfaceMethod · 0.85
grfont_XlateMonoCharFunction · 0.85
grfont_XlateColorCharFunction · 0.85
grfont_ClearBitmapFunction · 0.85

Calls 1

bm_wFunction · 0.85

Tested by

no test coverage detected