create a context object for the opengl renderers to keep state in