Renamed Draw event to Exposed and added some OpenGL functions