duckonaut / hyprlens Goto Github PK
View Code? Open in Web Editor NEWHyprland plugin for a different, shared texture as the transparent x-ray background
Hyprland plugin for a different, shared texture as the transparent x-ray background
g++ -c -o obj/main.o src/main.cpp -g -fPIC --no-gnu-unique -std=c++23 -fdiagnostics-color=always `pkg-config --cflags hyprland pixman-1 libdrm` -Iinclude
src/main.cpp: In function ‘void hijackBlurFramebuffer()’:
src/main.cpp:100:45: error: no matching function for call to ‘CHyprOpenGLImpl::renderTexture(CTexture&, wlr_box*, float, int, bool, bool)’
100 | g_pHyprOpenGL->renderTexture(*g_pTexture, &wholeMonitor, 1.f, 0, false, true);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/hyprland/src/render/Renderer.hpp:8,
from /usr/local/include/hyprland/src/Compositor.hpp:26,
from src/main.cpp:8:
/usr/local/include/hyprland/src/render/OpenGL.hpp:125:27: note: candidate: ‘void CHyprOpenGLImpl::renderTexture(wlr_texture*, CBox*, float, int, bool)’
125 | void renderTexture(wlr_texture*, CBox*, float a, int round = 0, bool allowCustomUV = false);
| ^~~~~~~~~~~~~
/usr/local/include/hyprland/src/render/OpenGL.hpp:125:27: note: candidate expects 5 arguments, 6 provided
/usr/local/include/hyprland/src/render/OpenGL.hpp:126:27: note: candidate: ‘void CHyprOpenGLImpl::renderTexture(const CTexture&, CBox*, float, int, bool, bool)’
126 | void renderTexture(const CTexture&, CBox*, float a, int round = 0, bool discardActive = false, bool allowCustomUV = false);
| ^~~~~~~~~~~~~
/usr/local/include/hyprland/src/render/OpenGL.hpp:126:58: note: no known conversion for argument 2 from ‘wlr_box*’ to ‘CBox*’
126 | void renderTexture(const CTexture&, CBox*, float a, int round = 0, bool discardActive = false, bool allowCustomUV = false);
| ^~~~~
src/main.cpp:103:45: error: no matching function for call to ‘CHyprOpenGLImpl::renderTexture(CTexture&, wlr_box*, float, int)’
103 | g_pHyprOpenGL->renderTexture(*g_pTexture, &wholeMonitor, 1.f, 0);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/hyprland/src/render/OpenGL.hpp:125:27: note: candidate: ‘void CHyprOpenGLImpl::renderTexture(wlr_texture*, CBox*, float, int, bool)’
125 | void renderTexture(wlr_texture*, CBox*, float a, int round = 0, bool allowCustomUV = false);
| ^~~~~~~~~~~~~
/usr/local/include/hyprland/src/render/OpenGL.hpp:125:41: note: no known conversion for argument 1 from ‘CTexture’ to ‘wlr_texture*’
125 | void renderTexture(wlr_texture*, CBox*, float a, int round = 0, bool allowCustomUV = false);
| ^~~~~~~~~~~~
/usr/local/include/hyprland/src/render/OpenGL.hpp:126:27: note: candidate: ‘void CHyprOpenGLImpl::renderTexture(const CTexture&, CBox*, float, int, bool, bool)’
126 | void renderTexture(const CTexture&, CBox*, float a, int round = 0, bool discardActive = false, bool allowCustomUV = false);
| ^~~~~~~~~~~~~
/usr/local/include/hyprland/src/render/OpenGL.hpp:126:58: note: no known conversion for argument 2 from ‘wlr_box*’ to ‘CBox*’
126 | void renderTexture(const CTexture&, CBox*, float a, int round = 0, bool discardActive = false, bool allowCustomUV = false);
| ^~~~~
src/main.cpp:110:50: error: ‘struct SMonitorRenderData’ has no member named ‘primaryFB’
110 | g_pHyprOpenGL->m_RenderData.pCurrentMonData->primaryFB.bind();
| ^~~~~~~~~
make: *** [Makefile:75: obj/main.o] Error 1
I think it would be awesome to be able to set an image on a per window basis using an external command so you could do things like set a music players background to the album cover on song change.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.