Skip to content

Lab 7: Mouse Input

ArthurFirmino edited this page Mar 7, 2018 · 1 revision

Lab 7: Mouse Input

The GLFW is a supporting library for OpenGL to create windows and receiving inputs and events. The Window class in OpenGP wraps GLFW's window functionality, but the conventions are still the same. In our example, we create a multi-line segment with 4 control points, and use the mouse to move one of the control points. There are 2 mouse-related callbacks in this exercise that we haven't seen before, the MouseMoveEvent and MouseButtonEvent callbacks.

See the exercise code, understand it, and try to implement the TODO.

Finally, when you are ready, integrate this exercise's code with your Assignment 3 code to move the path's control points.

Clone this wiki locally