font(f),
mesh((TEXCOORD2, VERTEX2)),
horz_align(0.0f),
- vert_offset(0.0f)
+ vert_offset(0.0f),
+ width(0.0f)
{
object.set_mesh(&mesh);
if(tech)
clear();
width = font.get_string_width(text, dec);
MeshBuilder bld(mesh);
- bld.matrix() *= Matrix::translation(Vector3(-horz_align*width, vert_offset, 0.0f));
+ bld.transform(Matrix::translation(Vector3(-horz_align*width, vert_offset, 0.0f)));
font.build_string(text, dec, bld);
}