renderer: add transformers

This commit is contained in:
Vaxry
2023-10-21 14:15:48 +01:00
parent af72404259
commit 92311d260a
6 changed files with 64 additions and 0 deletions

View File

@@ -13,6 +13,7 @@
#include "Shader.hpp"
#include "Texture.hpp"
#include "Framebuffer.hpp"
#include "Transformer.hpp"
#include "../debug/TracyDefines.hpp"
@@ -41,6 +42,7 @@ struct SMonitorRenderData {
CFramebuffer primaryFB;
CFramebuffer mirrorFB; // these are used for some effects,
CFramebuffer mirrorSwapFB; // etc
CFramebuffer offMainFB;
CFramebuffer monitorMirrorFB; // used for mirroring outputs
@@ -75,6 +77,7 @@ struct SCurrentRenderData {
float savedProjection[9];
SMonitorRenderData* pCurrentMonData = nullptr;
CFramebuffer* currentFB = nullptr;
CRegion damage;
@@ -142,6 +145,10 @@ class CHyprOpenGLImpl {
void applyScreenShader(const std::string& path);
void bindOffMain();
void renderOffToMain(CFramebuffer* off);
void bindBackOnMain();
SCurrentRenderData m_RenderData;
GLint m_iCurrentOutputFb = 0;