diff options
| author | vaxerski <vaxry@vaxry.net> | 2022-12-01 13:36:07 +0000 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2022-12-01 13:36:07 +0000 |
| commit | 7b020ffa84e64d0734709b2489e1da5463689e61 (patch) | |
| tree | 8d66b4951862fd67a1de828b7cfec75a6a2d6132 /src/render/OpenGL.hpp | |
| parent | b8ccf3dc3a03352bccae4cd01dcdd5bc3438c49f (diff) | |
Added screen shaders
Diffstat (limited to 'src/render/OpenGL.hpp')
| -rw-r--r-- | src/render/OpenGL.hpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index e54b76aa..fabd3666 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -111,11 +111,15 @@ public: void onWindowResizeStart(CWindow*); void onWindowResizeEnd(CWindow*); + void applyScreenShader(const std::string& path); + SCurrentRenderData m_RenderData; GLint m_iCurrentOutputFb = 0; GLint m_iWLROutputFb = 0; + bool m_bReloadScreenShader = true; // at launch it can be set + CWindow* m_pCurrentWindow = nullptr; // hack to get the current rendered window pixman_region32_t m_rOriginalDamageRegion; // used for storing the pre-expanded region @@ -134,9 +138,12 @@ private: bool m_bFakeFrame = false; bool m_bEndFrame = false; + bool m_bApplyFinalShader = false; + + CShader m_sFinalScreenShader; - GLuint createProgram(const std::string&, const std::string&); - GLuint compileShader(const GLuint&, std::string); + GLuint createProgram(const std::string&, const std::string&, bool dynamic = false); + GLuint compileShader(const GLuint&, std::string, bool dynamic = false); void createBGTextureForMonitor(CMonitor*); void initShaders(); |
