- Added fullscreen variable in core.lua.
- Added state system. Empty for now.
- Core holds a 'should_close' variable to control the main loop.
- Events are now forwarded to the core, which checks if the event is of type 'EXIT' (or key ESC is pressed) to set the flag should_close = true.
- Therefore the event manager requests a pointer to the core.
- GUI base component now holds a 'dirty' flag, to keep control if it needs to be updated (vbo reuploaded and such).
- GUI base now has an 'add child' function and a vector of bases, to make easy the addition of child elements.
- GUI button holds a pointer to a label, one of his childs.
- GUI label is constructed with one more parameter: a vec4 for the color.
- GUI system now checks if H is pressed, to enable or disable blending.
- GUI helper add_text returns an integer representing text width, NOT WORKING RIGHT.
- INPUT system added window close callback. Broadcasts EXIT event.
- Added exit_exceptioni to put inside a try-catch block all main loop. This way, we ensure everything is cleaned up. Route should be: EXCEPT - CATCH - CLEANUP, or simply CLEANUP when the app ends gracefully.