given a handle and a miplevel, returns the bytes per bitmap row
| 1345 | } |
| 1346 | // given a handle and a miplevel, returns the bytes per bitmap row |
| 1347 | int 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 |
| 1355 | bool bm_pixel_transparent(int bm_handle, int x, int y) { |
| 1356 | if ((bm_data(bm_handle, 0)) == NULL) |
no test coverage detected