From e9f226797e43cedf17b094bc498272213ed53687 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 13 Sep 2022 15:25:42 +0200 Subject: Added monitor mirroring --- src/render/OpenGL.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/render/OpenGL.hpp') diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index b81fd0f8..e3350c15 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -33,8 +33,10 @@ inline const float fanVertsFull[] = { struct SMonitorRenderData { CFramebuffer primaryFB; - CFramebuffer mirrorFB; - CFramebuffer mirrorSwapFB; + CFramebuffer mirrorFB; // these are used for some effects, + CFramebuffer mirrorSwapFB; // etc + + CFramebuffer monitorMirrorFB; // used for mirroring outputs CTexture stencilTex; @@ -102,6 +104,9 @@ public: void preWindowPass(); void preRender(CMonitor*); + void saveBufferForMirror(); + void renderMirrored(); + SCurrentRenderData m_RenderData; GLint m_iCurrentOutputFb = 0; -- cgit v1.2.3