Fixed the god-awful indentation

This commit is contained in:
mathusummut
2018-05-06 00:01:36 +02:00
parent 643e3820f5
commit 35b7b1f1a6
459 changed files with 204893 additions and 217545 deletions

View File

@@ -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