News for hackers. Stuff that matters.
Re:Blender 4.0 by gosub100 on Tuesday November 14, 2023 @02:11PM (#38267989)
I have an OpenGL personal project that I'm struggling with the UI on (using QT5 currently with GLCanvas with buttons around it). If I wanted to switch to a GL-only UI (and discard QT altogether), how would I add event listeners? I can get a borderless window as a GL viewport, but I don't know how to detect clicks and match them to which GL object.
Re:Blender 4.0 by tedunangst on Tuesday November 14, 2023 @04:21PM (#38269975)
You have a click at pixel 43, so what did you draw between pixels 40 and 50? That's what they clicked. You have to know what's on the screen, but you should know this, because you put it there. Or just use dear imgui.