- GL::translate(rgeom.x, rgeom.y, 0);
- graphic[state]->render(rgeom.w, rgeom.h);
+ GL::MeshBuilder bld(cache.create_mesh(*this, *graphic[state]->get_texture()));
+ bld.transform(GL::Matrix::translation(rgeom.x, rgeom.y, 0));
+ graphic[state]->build(rgeom.w, rgeom.h, bld);