GLFW transparent window background touch/click pass through
As mentioned on the forums here: https://forum.openframeworks.cc/t/transparent-window-app-with-mouse-click-pass-through/43816
GLFW Window clear transparency - mouse passThrough
- GLFW 3.4 + supports click pass through with these commands
Changes additional bools for GLFW settings.
- bool mousePassThrough; // input pass through for transparency window
- bool floating; // type of window
Thanks to @artificiel for documenting floating / passThrough info
usage would be something like in main.cpp:
ofGLFWWindowSettings settings;
settings.transparent = true;
settings.mousePassThrough = true;
settings.floating = true;
settings.decorated = false;
Example:
I made an example as this requires a bit of main.cpp setup and understanding of the limitations and powers of this GLFW passThrough.
I wonder if .transparentInput is the correct base name for the click through feature? adopting GLFW naming would make things more auto-documented, so .mousePassthrough to shadow GLFW_MOUSE_PASSTHROUGH?
likewise, ofSetWindowMousePassthrough(bool) instead of ofSetWindowTransparencyInput(bool)?
unless "transparent input" is a term commonly used?
- ofSetWindowMousePassthrough()
- settings.mousePassThrough =
Okay rechecked this bad boi going to merge