void PostRender() { while(context->screen_capture.size()) { std::pair<std::string,Viewport> fv = context->screen_capture.front(); context->screen_capture.pop(); SaveFramebuffer(fv.first, fv.second); } #ifdef BUILD_PANGOLIN_VIDEO if(context->recorder.IsOpen()) { SaveFramebuffer(context->recorder, context->record_view->GetBounds() ); RenderRecordGraphic(context->record_view->GetBounds()); } #endif // BUILD_PANGOLIN_VIDEO // Disable scissor each frame Viewport::DisableScissor(); }
void moGLManager::SaveGLState() { // For more info about the GL attributes, see apendix B of the Red Book: // http://cs-sdl.sourceforge.net/index.php/Red_Book_Appendix_B SaveFramebuffer(); #ifndef OPENGLESV2 glPushAttrib(GL_ALL_ATTRIB_BITS); #endif SaveGLMatrices(); }