Combined HelloWorld OpenGL example with the statemachine previously
built