Takes a bitmap and blits it to the screen using linear frame buffer stuff X and Y are the destination X,Y
| 2075 | // Takes a bitmap and blits it to the screen using linear frame buffer stuff |
| 2076 | // X and Y are the destination X,Y |
| 2077 | void rend_CopyBitmapToFramebuffer(int bm_handle, int x, int y) { |
| 2078 | ASSERT(opengl_Framebuffer_ready); |
| 2079 | |
| 2080 | if (opengl_Framebuffer_ready == 1) { |
| 2081 | bm_CreateChunkedBitmap(bm_handle, &opengl_Chunked_bitmap); |
| 2082 | opengl_Framebuffer_ready = 2; |
| 2083 | } else { |
| 2084 | opengl_ChangeChunkedBitmap(bm_handle, &opengl_Chunked_bitmap); |
| 2085 | } |
| 2086 | |
| 2087 | rend_DrawChunkedBitmap(&opengl_Chunked_bitmap, 0, 0, 255); |
| 2088 | } |
| 2089 | |
| 2090 | // Gets a renderer ready for a framebuffer copy, or stops a framebuffer copy |
| 2091 | void rend_SetFrameBufferCopyState(bool state) { |
no test coverage detected