diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-27 12:32:00 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-27 12:32:00 +0200 |
| commit | 31a079b347ddede3f672b0b059967f5e6bc74a36 (patch) | |
| tree | c957d8af9866189dbaaa71f4481e13e860ff640c /src/render/OpenGL.hpp | |
| parent | 50b991674b6d6607477232a774d5f730789d18a8 (diff) | |
added DPMS
Diffstat (limited to 'src/render/OpenGL.hpp')
| -rw-r--r-- | src/render/OpenGL.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index 84cfcd39..8c70529c 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -40,7 +40,7 @@ struct SMonitorRenderData { }; struct SCurrentRenderData { - SMonitor* pMonitor = nullptr; + CMonitor* pMonitor = nullptr; float projection[9]; SMonitorRenderData* pCurrentMonData = nullptr; @@ -56,7 +56,7 @@ public: CHyprOpenGLImpl(); - void begin(SMonitor*, pixman_region32_t*, bool fake = false); + void begin(CMonitor*, pixman_region32_t*, bool fake = false); void end(); void renderRect(wlr_box*, const CColor&, int round = 0); @@ -78,7 +78,7 @@ public: void scissor(const pixman_box32*); void scissor(const int x, const int y, const int w, const int h); - void destroyMonitorResources(SMonitor*); + void destroyMonitorResources(CMonitor*); SCurrentRenderData m_RenderData; @@ -91,8 +91,8 @@ public: std::unordered_map<CWindow*, CFramebuffer> m_mWindowFramebuffers; std::unordered_map<SLayerSurface*, CFramebuffer> m_mLayerFramebuffers; - std::unordered_map<SMonitor*, SMonitorRenderData> m_mMonitorRenderResources; - std::unordered_map<SMonitor*, CTexture> m_mMonitorBGTextures; + std::unordered_map<CMonitor*, SMonitorRenderData> m_mMonitorRenderResources; + std::unordered_map<CMonitor*, CTexture> m_mMonitorBGTextures; private: std::list<GLuint> m_lBuffers; @@ -117,7 +117,7 @@ private: GLuint createProgram(const std::string&, const std::string&); GLuint compileShader(const GLuint&, std::string); - void createBGTextureForMonitor(SMonitor*); + void createBGTextureForMonitor(CMonitor*); // returns the out FB, can be either Mirror or MirrorSwap CFramebuffer* blurMainFramebufferWithDamage(float a, wlr_box* pBox, pixman_region32_t* damage); |
