X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffont.cpp;h=623f1ebebda04df2e97909b66c51416602e694a6;hb=a40fc85277dba5c34402a0e703d038efd30cc57b;hp=fba9f331fb7e7cbcceaaf04e21eca8215f89aa46;hpb=2fa1bb084e54af7134b44d3ee7512056e28de67e;p=libs%2Fgl.git diff --git a/source/font.cpp b/source/font.cpp index fba9f331..623f1ebe 100644 --- a/source/font.cpp +++ b/source/font.cpp @@ -74,7 +74,7 @@ void Font::draw_string(const string &str, StringCodec::Decoder &dec, const Color void Font::build_string(const string &str, StringCodec::Decoder &dec, PrimitiveBuilder &bld) const { - MatrixStack::Push push_mtx(bld.matrix()); + VertexBuilder::PushMatrix push_mtx(bld); unsigned prev = 0; unsigned next = 0; @@ -94,7 +94,7 @@ void Font::build_string(const string &str, StringCodec::Decoder &dec, PrimitiveB continue; if(prev) - bld.matrix() *= Matrix::translation(get_glyph_advance(prev, c), 0, 0); + bld.transform(Matrix::translation(get_glyph_advance(prev, c), 0, 0)); create_glyph_quad(j->second, bld); prev = c;