diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2024-08-29 23:30:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-29 23:30:12 +0200 |
| commit | 604eb21a7e55d85ec7f6cb8cba39fc4c20a07a9d (patch) | |
| tree | 7b31fb7e21d779fee2911aa7430feed1ec3774d6 /src/render/OpenGL.hpp | |
| parent | 92a0dd164e9cc74060b63abae67b0204b6b6074c (diff) | |
renderer: better lockscreen dead behavior (#7574)
---------
Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
Diffstat (limited to 'src/render/OpenGL.hpp')
| -rw-r--r-- | src/render/OpenGL.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index f405cb7c..06078a00 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -277,7 +277,7 @@ class CHyprOpenGLImpl { CShader m_sFinalScreenShader; CTimer m_tGlobalTimer; - SP<CTexture> m_pBackgroundTexture; + SP<CTexture> m_pBackgroundTexture, m_pLockDeadTexture, m_pLockDead2Texture, m_pLockTtyTextTexture; void logShaderError(const GLuint&, bool program = false); GLuint createProgram(const std::string&, const std::string&, bool dynamic = false); @@ -287,7 +287,9 @@ class CHyprOpenGLImpl { void initDRMFormats(); void initEGL(bool gbm); EGLDeviceEXT eglDeviceFromDRMFD(int drmFD); - void createBackgroundTexture(const std::string& path); + SP<CTexture> loadAsset(const std::string& file); + SP<CTexture> renderText(const std::string& text, CColor col, int pt, bool italic = false); + void initAssets(); // std::optional<std::vector<uint64_t>> getModsForFormat(EGLint format); |
