- GL::MeshBuilder bld(icon.background);
- bld.color(0.2f, 0.2f, 0.2f, 0.7f);
-
- bld.begin(GL::TRIANGLE_FAN);
- bld.vertex(0.4, 0.5);
- bld.vertex(icon.width-0.4, 0.5);
- bld.vertex(icon.width-0.4, 1.2);
- for(int i=4; i<=12; ++i)
- bld.vertex(0.4+cos(i*M_PI/8)*0.7, 0.5+sin(i*M_PI/8)*0.7);
- bld.end();
-
- bld.begin(GL::TRIANGLE_FAN);
- bld.vertex(icon.width-0.4, 0.5);
- bld.vertex(0.4, 0.5);
- bld.vertex(0.4, -0.2);
- for(int i=-4; i<=4; ++i)
- bld.vertex(icon.width-0.4+cos(i*M_PI/8)*0.7, 0.5+sin(i*M_PI/8)*0.7);
- bld.end();
+ {
+ GL::MeshBuilder bld(icon.background);
+ bld.color(0.2f, 0.2f, 0.2f, 0.7f);
+
+ bld.begin(GL::TRIANGLE_FAN);
+ bld.vertex(0.4, 0.5);
+ bld.vertex(icon.width-0.4, 0.5);
+ bld.vertex(icon.width-0.4, 1.2);
+ for(int i=4; i<=12; ++i)
+ bld.vertex(0.4+cos(i*M_PI/8)*0.7, 0.5+sin(i*M_PI/8)*0.7);
+ bld.end();
+
+ bld.begin(GL::TRIANGLE_FAN);
+ bld.vertex(icon.width-0.4, 0.5);
+ bld.vertex(0.4, 0.5);
+ bld.vertex(0.4, -0.2);
+ for(int i=-4; i<=4; ++i)
+ bld.vertex(icon.width-0.4+cos(i*M_PI/8)*0.7, 0.5+sin(i*M_PI/8)*0.7);
+ bld.end();
+ }
+
+ icon.text.clear();
+
+ {
+ GL::MeshBuilder bld(icon.text);
+ bld.color(0.0f, 1.0f, 0.0f);
+ font.build_string(icon.label, bld);
+ }