mirror of
https://github.com/glest/glest-source.git
synced 2025-10-02 02:16:40 +02:00
Fixed the god-awful indentation
This commit is contained in:
@@ -19,42 +19,47 @@
|
||||
|
||||
using std::string;
|
||||
|
||||
namespace Shared { namespace Graphics {
|
||||
namespace Shared {
|
||||
namespace Graphics {
|
||||
|
||||
// =====================================================
|
||||
// class TextRenderer2D
|
||||
// =====================================================
|
||||
// =====================================================
|
||||
// class TextRenderer2D
|
||||
// =====================================================
|
||||
|
||||
class TextRenderer {
|
||||
public:
|
||||
virtual void render(const string &text, float x, float y, bool centered=false, Vec3f *color=NULL) = 0;
|
||||
virtual void end()= 0;
|
||||
class TextRenderer {
|
||||
public:
|
||||
virtual void render(const string &text, float x, float y, bool centered = false, Vec3f *color = NULL) = 0;
|
||||
virtual void end() = 0;
|
||||
|
||||
virtual ~TextRenderer() {}
|
||||
};
|
||||
virtual ~TextRenderer() {
|
||||
}
|
||||
};
|
||||
|
||||
class TextRenderer2D : public TextRenderer {
|
||||
public:
|
||||
virtual ~TextRenderer2D(){};
|
||||
class TextRenderer2D : public TextRenderer {
|
||||
public:
|
||||
virtual ~TextRenderer2D() {
|
||||
};
|
||||
|
||||
virtual void begin(Font2D *font)= 0;
|
||||
//virtual void render(const string &text, int x, int y, bool centered= false,Vec3f *color=NULL)= 0;
|
||||
//virtual void end()= 0;
|
||||
};
|
||||
virtual void begin(Font2D *font) = 0;
|
||||
//virtual void render(const string &text, int x, int y, bool centered= false,Vec3f *color=NULL)= 0;
|
||||
//virtual void end()= 0;
|
||||
};
|
||||
|
||||
// =====================================================
|
||||
// class TextRenderer3D
|
||||
// =====================================================
|
||||
// =====================================================
|
||||
// class TextRenderer3D
|
||||
// =====================================================
|
||||
|
||||
class TextRenderer3D : public TextRenderer {
|
||||
public:
|
||||
virtual ~TextRenderer3D(){};
|
||||
class TextRenderer3D : public TextRenderer {
|
||||
public:
|
||||
virtual ~TextRenderer3D() {
|
||||
};
|
||||
|
||||
virtual void begin(Font3D *font)= 0;
|
||||
//virtual void render(const string &text, float x, float y, bool centered= false,Vec3f *color=NULL)= 0;
|
||||
//virtual void end()= 0;
|
||||
};
|
||||
virtual void begin(Font3D *font) = 0;
|
||||
//virtual void render(const string &text, float x, float y, bool centered= false,Vec3f *color=NULL)= 0;
|
||||
//virtual void end()= 0;
|
||||
};
|
||||
|
||||
}}//end namespace
|
||||
}
|
||||
}//end namespace
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user