mirror of
https://github.com/glest/glest-source.git
synced 2025-08-13 20:03:58 +02:00
Fixed the god-awful indentation
This commit is contained in:
@@ -18,42 +18,45 @@
|
||||
|
||||
#include "font_text.h"
|
||||
|
||||
namespace Shared { namespace Graphics { namespace Gl {
|
||||
namespace Shared {
|
||||
namespace Graphics {
|
||||
namespace Gl {
|
||||
|
||||
/**
|
||||
* Use FTGL for rendering text in OpenGL
|
||||
*/
|
||||
//====================================================================
|
||||
class TextFTGL : public Text
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Use FTGL for rendering text in OpenGL
|
||||
*/
|
||||
//====================================================================
|
||||
class TextFTGL : public Text {
|
||||
public:
|
||||
|
||||
static string langHeightText;
|
||||
static int faceResolution;
|
||||
static string langHeightText;
|
||||
static int faceResolution;
|
||||
|
||||
TextFTGL(FontTextHandlerType type);
|
||||
virtual ~TextFTGL();
|
||||
virtual void init(string fontName, string fontFamilyName, int fontSize);
|
||||
TextFTGL(FontTextHandlerType type);
|
||||
virtual ~TextFTGL();
|
||||
virtual void init(string fontName, string fontFamilyName, int fontSize);
|
||||
|
||||
virtual void SetFaceSize(int);
|
||||
virtual int GetFaceSize();
|
||||
virtual void SetFaceSize(int);
|
||||
virtual int GetFaceSize();
|
||||
|
||||
virtual void Render(const char*, const int = -1);
|
||||
virtual float Advance(const char*, const int = -1);
|
||||
virtual float LineHeight(const char*, const int = -1);
|
||||
virtual void Render(const char*, const int = -1);
|
||||
virtual float Advance(const char*, const int = -1);
|
||||
virtual float LineHeight(const char*, const int = -1);
|
||||
|
||||
virtual void Render(const wchar_t*, const int = -1);
|
||||
virtual float Advance(const wchar_t*, const int = -1);
|
||||
virtual float LineHeight(const wchar_t* = L" ", const int = -1);
|
||||
virtual void Render(const wchar_t*, const int = -1);
|
||||
virtual float Advance(const wchar_t*, const int = -1);
|
||||
virtual float LineHeight(const wchar_t* = L" ", const int = -1);
|
||||
|
||||
private:
|
||||
FTFont *ftFont;
|
||||
const char* fontFile;
|
||||
private:
|
||||
FTFont *ftFont;
|
||||
const char* fontFile;
|
||||
|
||||
void cleanupFont();
|
||||
};
|
||||
void cleanupFont();
|
||||
};
|
||||
|
||||
}}}//end namespace
|
||||
}
|
||||
}
|
||||
}//end namespace
|
||||
|
||||
#endif // USE_FTGL
|
||||
|
||||
|
Reference in New Issue
Block a user