00001 #ifndef __FONT_H__
00002 #define __FONT_H__
00003
00004 #ifndef DOXYGEN_IGNORE_TAG
00005
00026 #endif
00027
00028 #include <string>
00029
00030 #include "../Types/Vec2.h"
00031 #include "../Types/Size2.h"
00032 #include "../Types/Colour.h"
00033
00034 namespace NE { class Renderer; }
00035 namespace NE { class Sprite; }
00036
00037 class Font
00038 {
00039 private:
00040
00041 NE::Sprite* pSprite;
00042
00043 USize2 letterSize;
00044 unsigned char startingLetter;
00045
00046
00047 Font(const Font& s);
00048 void operator= (const Font& s);
00049
00050 public:
00051 Font(NE::Sprite* pSprite, const USize2& letterSize, const unsigned char startingLetter);
00052 ~Font(void);
00053
00054 USize2 getLetterSize(void) { return letterSize; }
00055 USize2 getStringSize(const std::string& string);
00056
00057 bool draw(const NE::Renderer& r, const std::string& text, const IVec2& position);
00058 };
00059
00093 #endif