#include "bindable.h"
#include "gl.h"
#include "font.h"
-#include "immediate.h"
-#include "primitivetype.h"
+#include "primitivebuilder.h"
#include "texture2d.h"
using namespace std;
return x;
}
-void Font::draw_string(const string &str, StringCodec::Decoder &dec, const Color &color) const
-{
- BindRestore bind_tex(get_texture());
- Immediate imm((TEXCOORD2, COLOR4_UBYTE, VERTEX2));
- imm.color(color);
- build_string(str, dec, imm);
-}
-
void Font::build_string(const string &str, StringCodec::Decoder &dec, PrimitiveBuilder &bld) const
{
VertexBuilder::PushMatrix push_mtx(bld);