glLineWidth(1);
- int size = int(font.get_default_size()+0.5);
+ int size = int(font.get_native_size()+0.5);
float spacing = round(size*1.1)/size;
float baseline = round((0.5-font.get_ascent()*0.5-font.get_descent()*0.5)*size)/size;
{
GL::MeshBuilder bld(icon.text);
bld.color(0.0f, 1.0f, 0.0f);
- font.draw_string(icon.label, bld);
+ font.build_string(icon.label, bld);
}
}
#include <msp/gl/misc.h>
#include <msp/gl/projection.h>
#include <msp/gl/tests.h>
-#include <msp/gl/transform.h>
#include <msp/io/print.h>
#include <msp/strings/format.h>
#include <msp/time/units.h>
if(picking && picking_track && picking_entry>=0)
{
- GL::PushMatrix push_mat;
+ GL::MatrixStack::Push push_mat(GL::MatrixStack::modelview());
float rot = picking_track->get_endpoint_direction(picking_entry);
Vector pos = picking_track->get_endpoint_position(picking_entry);
- GL::translate(pos.x, pos.y, pos.z+0.03);
- GL::rotate(rot*180/M_PI+180, 0, 0, 1);
+ GL::MatrixStack::modelview() *= GL::Matrix::translation(pos.x, pos.y, pos.z+0.03);
+ GL::MatrixStack::modelview() *= GL::Matrix::rotation(rot+M_PI, 0, 0, 1);
arrow_mesh.draw();
}