Implemented cylinder shape, also fixed the coordinate system (again). I fucking hate...
[fail.git] / scenegraph / Font.h
blobe0f5177211440d7aee79e22034aa7536ab6f3703
1 #ifndef AWFUL_SCENEGRAPH_FONT_H_
2 #define AWFUL_SCENEGRAPH_FONT_H_
4 #include "core/core.h"
5 #include <string>
6 #include <math.h>
8 class FTGLTextureFont;
10 namespace awful { namespace scenegraph
12 class Font : public RefCounted
14 public:
15 Font( std::string Filename_, uint32_t Size_ );
16 ~Font();
17 void drawText( const std::string& Text_ ) const;
19 float getHeight() const
21 return m_Height; //floor( m_FTGLFont.Ascender() + 0.5 );
24 float getTextWidth( const std::string& Text_ ) const;
26 private:
27 FTGLTextureFont* m_pFTGLFont;
28 float m_Height;
29 float m_Offset;
33 #endif