Added update function

Closes https://github.com/PistonDevelopers/opengl_graphics/issues/48