From: Joschka B. <jbo...@us...> - 2007-02-28 06:38:12
|
Update of /cvsroot/simspark/simspark/spark/kerosin/fontserver In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv32703/kerosin/fontserver Modified Files: Tag: WIN32 font.cpp Log Message: use kerosin namespace explicitly to avoid clash with X11 Font type in Linux Index: font.cpp =================================================================== RCS file: /cvsroot/simspark/simspark/spark/kerosin/fontserver/font.cpp,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** font.cpp 28 Feb 2007 04:41:06 -0000 1.1.2.1 --- font.cpp 28 Feb 2007 06:38:07 -0000 1.1.2.2 *************** *** 14,30 **** - using namespace kerosin; using namespace salt; ! Font::Font(FontServer &fontServer) : mTexID(0), mRowHeight(0), mSize(0), mFontServer(fontServer) { } ! Font::~Font() { } ! bool Font::Init(const std::string &name, unsigned int size, FT_Face face) { mName = name; --- 14,29 ---- using namespace salt; ! kerosin::Font::Font(FontServer &fontServer) : mTexID(0), mRowHeight(0), mSize(0), mFontServer(fontServer) { } ! kerosin::Font::~Font() { } ! bool kerosin::Font::Init(const std::string &name, unsigned int size, FT_Face face) { mName = name; *************** *** 201,205 **** } ! bool Font::Bind(int vRows) { glEnable(GL_TEXTURE_2D); --- 200,204 ---- } ! bool kerosin::Font::Bind(int vRows) { glEnable(GL_TEXTURE_2D); *************** *** 227,231 **** } ! void Font::Dump() { glBegin(GL_QUADS); --- 226,230 ---- } ! void kerosin::Font::Dump() { glBegin(GL_QUADS); *************** *** 241,245 **** } ! void Font::DrawString(float x, float y, const char *string) { const char *c = string; --- 240,244 ---- } ! void kerosin::Font::DrawString(float x, float y, const char *string) { const char *c = string; *************** *** 275,279 **** } ! void Font::Printf(float x, float y, const char *format, ...) { char buffer[4096]; --- 274,278 ---- } ! void kerosin::Font::Printf(float x, float y, const char *format, ...) { char buffer[4096]; *************** *** 285,289 **** } ! void Font::RowPrintf(float x, float row, const char *format, ...) { char buffer[4096]; --- 284,288 ---- } ! void kerosin::Font::RowPrintf(float x, float row, const char *format, ...) { char buffer[4096]; *************** *** 295,299 **** } ! float Font::GetStringWidth(const char* string, int numChar) { if (numChar == -1) numChar = strlen(string); --- 294,298 ---- } ! float kerosin::Font::GetStringWidth(const char* string, int numChar) { if (numChar == -1) numChar = strlen(string); *************** *** 318,332 **** } ! float Font::GetRowHeight() { return (float)mRowHeight; } ! const std::string& Font::GetName() const { return mName; } ! unsigned int Font::GetSize() const { return mSize; --- 317,331 ---- } ! float kerosin::Font::GetRowHeight() { return (float)mRowHeight; } ! const std::string& kerosin::Font::GetName() const { return mName; } ! unsigned int kerosin::Font::GetSize() const { return mSize; |