Refactor the renderer example to support backends

So now we can use glx to test the renderers