diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-04-16 19:47:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-16 19:47:53 +0100 |
| commit | b5ea887f072fa055cf23ec389ed81e3ee4c5319a (patch) | |
| tree | 7e160c3677e9829aa247a56dbc05df98fe084cea /src/render/Renderer.hpp | |
| parent | 66ea2e2c9ed4e9257521e6706fbd21feb7e3cc5b (diff) | |
debug/overlay: optimize rendering, cleanup and nicetify (#14097)
optimizes the rendering, drops direct cairo, fixes up api.
Also improves the visuals etc of the overlay
Diffstat (limited to 'src/render/Renderer.hpp')
| -rw-r--r-- | src/render/Renderer.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/Renderer.hpp b/src/render/Renderer.hpp index 42592f2c..f52b9e3a 100644 --- a/src/render/Renderer.hpp +++ b/src/render/Renderer.hpp @@ -31,6 +31,8 @@ #include "Framebuffer.hpp" #include "Texture.hpp" +#include <hyprgraphics/resource/resources/TextResource.hpp> + struct SMonitorRule; class CWorkspace; class CInputPopup; @@ -164,6 +166,7 @@ namespace Render { virtual SP<ITexture> createTexture(const SP<Aquamarine::IBuffer> buffer, bool keepDataCopy = false); virtual SP<ITexture> renderText(const std::string& text, CHyprColor col, int pt, bool italic = false, const std::string& fontFamily = "", int maxWidth = 0, int weight = 400); + virtual SP<ITexture> renderText(Hyprgraphics::CTextResource::STextResourceData&& data); SP<ITexture> loadAsset(const std::string& filename); virtual bool shouldUseNewBlurOptimizations(PHLLS pLayer, PHLWINDOW pWindow); virtual bool explicitSyncSupported() = 0; |
