diff options
| author | outfoxxed <outfoxxed@outfoxxed.me> | 2025-05-12 05:15:47 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-12 14:15:47 +0200 |
| commit | da3583fd5e86044d02af9fcfac84724e02545336 (patch) | |
| tree | a147d0ed8083eadc7e0509cae18861671c3b4a47 /src/render/OpenGL.hpp | |
| parent | 04124988e8b4a9cdfc5995388ebfaad0005b4b31 (diff) | |
opengl: publicize shader creation/usage functions (#10378)
Allows plugins to create and use shaders again
Diffstat (limited to 'src/render/OpenGL.hpp')
| -rw-r--r-- | src/render/OpenGL.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index 5d76bba8..09aff9da 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -240,6 +240,11 @@ class CHyprOpenGLImpl { EGLImageKHR createEGLImage(const Aquamarine::SDMABUFAttrs& attrs); bool initShaders(); + + GLuint createProgram(const std::string&, const std::string&, bool dynamic = false, bool silent = false); + GLuint compileShader(const GLuint&, std::string, bool dynamic = false, bool silent = false); + void useProgram(GLuint prog); + bool m_shadersInitialized = false; SP<SPreparedShaders> m_shaders; @@ -321,15 +326,12 @@ class CHyprOpenGLImpl { SP<CTexture> m_lockTtyTextTexture; // TODO: don't always load lock void logShaderError(const GLuint&, bool program = false, bool silent = false); - GLuint createProgram(const std::string&, const std::string&, bool dynamic = false, bool silent = false); - GLuint compileShader(const GLuint&, std::string, bool dynamic = false, bool silent = false); void createBGTextureForMonitor(PHLMONITOR); void initDRMFormats(); void initEGL(bool gbm); EGLDeviceEXT eglDeviceFromDRMFD(int drmFD); void initAssets(); void initMissingAssetTexture(); - void useProgram(GLuint prog); // std::optional<std::vector<uint64_t>> getModsForFormat(EGLint format); |
