returns a bitmaps mipped status, else -1 if something is wrong
| 1166 | |
| 1167 | // returns a bitmaps mipped status, else -1 if something is wrong |
| 1168 | int bm_mipped(int handle) { |
| 1169 | if (!GameBitmaps[handle].used) { |
| 1170 | Int3(); |
| 1171 | return -1; |
| 1172 | } |
| 1173 | // If this bitmap is not page in, do so! |
| 1174 | if (GameBitmaps[handle].flags & BF_NOT_RESIDENT) |
| 1175 | if (!bm_MakeBitmapResident(handle)) |
| 1176 | return 0; |
| 1177 | if (GameBitmaps[handle].flags & BF_MIPMAPPED) |
| 1178 | return 1; |
| 1179 | return 0; |
| 1180 | } |
| 1181 | // returns a bitmaps data (based on given miplevel), else NULL if something is wrong |
| 1182 | uint16_t *bm_data(int handle, int miplevel) { |
| 1183 | uint16_t *d; |
no test coverage detected