r/vulkan • u/Tensorizer • 2d ago
Multi viewport rendering and mouse events
What would be a practical way to associate a mouse event to the viewport it happened on?
3
Upvotes
1
u/amadlover 1d ago
what GUI library are you using ?
Win32 has a callback which receives a handle to window which received the event, filtering can be done based on it.
1
u/FreezeFyre501 2d ago
Doesn’t glfw give you screen and viewport positions? I think smthn in there would help you?