diff options
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); |