Draws a simple bitmap at the specified x,y location
| 400 | |
| 401 | // Draws a simple bitmap at the specified x,y location |
| 402 | void rend_DrawSimpleBitmap(int bm_handle, int x, int y) { |
| 403 | rend_SetAlphaType(AT_CONSTANT_TEXTURE); |
| 404 | rend_SetAlphaValue(255); |
| 405 | rend_SetLighting(LS_NONE); |
| 406 | rend_SetColorModel(CM_MONO); |
| 407 | rend_SetOverlayType(OT_NONE); |
| 408 | rend_SetFiltering(0); |
| 409 | rend_DrawScaledBitmap(x, y, x + bm_w(bm_handle, 0), y + bm_h(bm_handle, 0), bm_handle, 0, 0, 1, 1); |
| 410 | rend_SetFiltering(1); |
| 411 | } |
| 412 | |
| 413 | // Fills in the passed in pointer with the current rendering state |
| 414 | void rend_GetRenderState(rendering_state *rstate) { memcpy(rstate, &gpu_state, sizeof(rendering_state)); } |
no test coverage detected