mirror of
https://github.com/glest/glest-source.git
synced 2025-08-14 04:13:58 +02:00
- added packaged game fonts
- updated code to search new default font folder - added chinese language file from the fourm for testing
This commit is contained in:
@@ -23,6 +23,8 @@ class Text
|
||||
{
|
||||
public:
|
||||
|
||||
static std::string DEFAULT_FONT_PATH;
|
||||
|
||||
Text();
|
||||
virtual ~Text();
|
||||
|
||||
|
@@ -28,20 +28,15 @@ namespace Shared { namespace Graphics { namespace Gl {
|
||||
class FontGl {
|
||||
protected:
|
||||
|
||||
//#ifndef USE_FTGL
|
||||
GLuint handle;
|
||||
//#endif
|
||||
|
||||
static string default_fonttype;
|
||||
|
||||
public:
|
||||
|
||||
//#ifndef USE_FTGL
|
||||
GLuint getHandle() const {return handle;}
|
||||
//#endif
|
||||
GLuint getHandle() const {return handle;}
|
||||
|
||||
static string getDefault_fontType() { return default_fonttype; }
|
||||
static void setDefault_fontType(string value) { default_fonttype = value; }
|
||||
static string getDefault_fontType() {return default_fonttype;}
|
||||
static void setDefault_fontType(string value) {default_fonttype = value;}
|
||||
};
|
||||
|
||||
// =====================================================
|
||||
|
@@ -19,10 +19,6 @@ namespace Shared { namespace Graphics { namespace Gl {
|
||||
|
||||
class Font2DGl;
|
||||
class Font3DGl;
|
||||
//#ifdef USE_FTGL
|
||||
// class TextFTGL;
|
||||
//#endif
|
||||
|
||||
|
||||
// =====================================================
|
||||
// class TextRenderer2DGl
|
||||
@@ -33,10 +29,6 @@ private:
|
||||
Font2DGl *font;
|
||||
bool rendering;
|
||||
|
||||
//#ifdef USE_FTGL
|
||||
// TextFTGL *fontFTGL;
|
||||
//#endif
|
||||
|
||||
public:
|
||||
TextRenderer2DGl();
|
||||
virtual ~TextRenderer2DGl();
|
||||
@@ -55,10 +47,6 @@ private:
|
||||
Font3DGl *font;
|
||||
bool rendering;
|
||||
|
||||
//#ifdef USE_FTGL
|
||||
// TextFTGL *fontFTGL;
|
||||
//#endif
|
||||
|
||||
public:
|
||||
TextRenderer3DGl();
|
||||
virtual ~TextRenderer3DGl();
|
||||
|
Reference in New Issue
Block a user