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

Function rend_SetFrameBufferCopyState

renderer/HardwareOpenGL.cpp:2091–2104  ·  view source on GitHub ↗

Gets a renderer ready for a framebuffer copy, or stops a framebuffer copy

Source from the content-addressed store, hash-verified

2089
2090// Gets a renderer ready for a framebuffer copy, or stops a framebuffer copy
2091void rend_SetFrameBufferCopyState(bool state) {
2092 if (state) {
2093 ASSERT(opengl_Framebuffer_ready == 0);
2094 opengl_Framebuffer_ready = 1;
2095 } else {
2096 ASSERT(opengl_Framebuffer_ready != 0);
2097 opengl_Framebuffer_ready = 0;
2098
2099 if (opengl_Framebuffer_ready == 2) {
2100 bm_DestroyChunkedBitmap(&opengl_Chunked_bitmap);
2101 opengl_ResetCache();
2102 }
2103 }
2104}
2105
2106// Gets OpenGL ready to work in a window
2107int rend_InitOpenGLWindow(oeApplication *app, renderer_preferred_state *pref_state) {

Callers 2

mve_SequenceStartFunction · 0.50
mve_SequenceCloseFunction · 0.50

Calls 2

bm_DestroyChunkedBitmapFunction · 0.85
opengl_ResetCacheFunction · 0.70

Tested by

no test coverage detected