Creating Widgets

We can create our own widget toolkit using OpenGL

All GUI interaction just involves checking the mouse position & button state


e.g. For a button, compare the mouse position to the boundaries of the drawn button




next