From b0685fabd8e98a54b396f9b014573f2085743b09 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 6 Sep 2011 23:35:04 +0300 Subject: [PATCH] Namespace Codecs was renamed to StringCodec --- source/font.cpp | 6 +++--- source/font.h | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/source/font.cpp b/source/font.cpp index 323152dc..88780331 100644 --- a/source/font.cpp +++ b/source/font.cpp @@ -46,7 +46,7 @@ void Font::add_glyph(unsigned code, float x1, float y1, float x2, float y2, floa glyphs.insert(GlyphMap::value_type(code, glyph)); } -float Font::get_string_width(const string &str, Codecs::Decoder &dec) const +float Font::get_string_width(const string &str, StringCodec::Decoder &dec) const { float x = 0; @@ -56,13 +56,13 @@ float Font::get_string_width(const string &str, Codecs::Decoder &dec) const return x; } -void Font::draw_string(const string &str, Codecs::Decoder &dec) const +void Font::draw_string(const string &str, StringCodec::Decoder &dec) const { Immediate imm((TEXCOORD2, COLOR4_UBYTE, VERTEX2)); draw_string(str, dec, imm); } -void Font::draw_string(const string &str, Codecs::Decoder &dec, PrimitiveBuilder &bld) const +void Font::draw_string(const string &str, StringCodec::Decoder &dec, PrimitiveBuilder &bld) const { MatrixStack::Push push_mtx(bld.matrix()); Bind bind_tex(get_texture(), true); diff --git a/source/font.h b/source/font.h index 6ae5c6d3..14320b8f 100644 --- a/source/font.h +++ b/source/font.h @@ -4,7 +4,7 @@ #include #include #include -#include +#include #include "vertexarray.h" namespace Msp { @@ -67,7 +67,7 @@ public: float get_ascent() const { return ascent; } float get_descent() const { return descent; } - float get_string_width(const std::string &, Codecs::Decoder &) const; + float get_string_width(const std::string &, StringCodec::Decoder &) const; template float get_string_width(const std::string &str) const @@ -77,10 +77,10 @@ public: } float get_string_width(const std::string &str) const - { return get_string_width(str); } + { return get_string_width(str); } - void draw_string(const std::string &, Codecs::Decoder &) const; - void draw_string(const std::string &, Codecs::Decoder &, PrimitiveBuilder &) const; + void draw_string(const std::string &, StringCodec::Decoder &) const; + void draw_string(const std::string &, StringCodec::Decoder &, PrimitiveBuilder &) const; template void draw_string(const std::string &str) const @@ -90,7 +90,7 @@ public: } void draw_string(const std::string &str) const - { draw_string(str); } + { draw_string(str); } template void draw_string(const std::string &str, PrimitiveBuilder &pb) const @@ -100,7 +100,7 @@ public: } void draw_string(const std::string &str, PrimitiveBuilder &pb) const - { return draw_string(str, pb); } + { return draw_string(str, pb); } private: void create_glyph_vertices(const Glyph &, VertexBuilder &) const; -- 2.45.2