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

Function rend_CopyBitmapToFramebuffer

renderer/HardwareOpenGL.cpp:2077–2088  ·  view source on GitHub ↗

Takes a bitmap and blits it to the screen using linear frame buffer stuff X and Y are the destination X,Y

Source from the content-addressed store, hash-verified

2075// Takes a bitmap and blits it to the screen using linear frame buffer stuff
2076// X and Y are the destination X,Y
2077void 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
2091void rend_SetFrameBufferCopyState(bool state) {

Callers 1

FrameMovieFunction · 0.50

Calls 3

bm_CreateChunkedBitmapFunction · 0.85
rend_DrawChunkedBitmapFunction · 0.70

Tested by

no test coverage detected