summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-09-13 15:25:42 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-09-13 15:25:42 +0200
commite9f226797e43cedf17b094bc498272213ed53687 (patch)
tree9a1a49cf308dac971a5bd73e4a00175930d323de /src/render/OpenGL.hpp
parent7d4f0a319943f56b1a277ceae198fc3f77615afe (diff)
Added monitor mirroring
Diffstat (limited to 'src/render/OpenGL.hpp')
-rw-r--r--src/render/OpenGL.hpp9
1 files changed, 7 insertions, 2 deletions
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;