Events in cpp / opengl
I would like to create an event handling framework for my opengl project. It should look like wpf has - 3 types of events - straight, tunneling, bubbling. Then I want to handle events like mouse up, down, move, etc. How should I approach this problem? Is there any library out there to handle this. thank
+1
source to share
1 answer
The OpenGL Utility Toolkit (GLUT) does exactly that - you set up a bunch of event handlers for things like keyboard input, mouse input, display redrawing and window resizing, call a function glutMainLoop()
and you're good to go.
+2
source to share