converted glrenderer to use the new ecs API