+ Geometry rgeom;
+ rgeom.w = icon->get_width();
+ rgeom.h = icon->get_height();
+ part.get_alignment().apply(rgeom, geom, part.get_margin());
+
+ GL::MeshBuilder bld(part_cache.create_mesh(part, *icon));
+ bld.color(1.0f, 1.0f, 1.0f);
+ bld.begin(GL::TRIANGLE_STRIP);
+ bld.texcoord(0, 1);
+ bld.vertex(rgeom.x, rgeom.y+rgeom.h);
+ bld.texcoord(0, 0);
+ bld.vertex(rgeom.x, rgeom.y);
+ bld.texcoord(1, 1);
+ bld.vertex(rgeom.x+rgeom.w, rgeom.y+rgeom.h);
+ bld.texcoord(1, 0);
+ bld.vertex(rgeom.x+rgeom.w, rgeom.y);
+ bld.end();