X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frender%2Ftext.cpp;h=cb7f998e9bb2a38d4102024fc4648e8461b38f0c;hb=c0b7d6ee4a7478f5aecb1504429ec1fc846d64ed;hp=b43061c522a5addbbf2ff474742efd97fb78fbef;hpb=88e67cefcb759902c6bd344373be0b1cd0cf7f6b;p=libs%2Fgl.git diff --git a/source/render/text.cpp b/source/render/text.cpp index b43061c5..cb7f998e 100644 --- a/source/render/text.cpp +++ b/source/render/text.cpp @@ -1,6 +1,7 @@ #include "meshbuilder.h" #include "program.h" #include "renderer.h" +#include "technique.h" #include "text.h" #include "texture2d.h" @@ -26,8 +27,8 @@ void Text::set_technique(const Technique *tech, Tag tex_slot) { if(tech) { - if(!tex_slot.id && tech->has_pass(Tag())) - if(const Program *shprog = tech->get_pass(Tag()).get_shader_program()) + if(!tex_slot.id && tech->has_method(Tag())) + if(const Program *shprog = tech->get_method(Tag()).get_shader_program()) { if(shprog->get_uniform_location(Tag("font_tex"))>=0) tex_slot = "font_tex"; @@ -102,7 +103,7 @@ void Text::set_alignment(float h, float v) unsigned n_vertices = mesh.get_n_vertices(); for(unsigned i=0; i(mesh.modify_vertex(i)+pos_offset); pos[0] += horz_adjust; pos[1] += vert_adjust; }