35 #ifndef IECOREGL_FONT_H
36 #define IECOREGL_FONT_H
38 #include "IECore/Font.h"
40 #include "IECoreImage/Font.h"
42 #include "IECoreGL/Export.h"
43 #include "IECoreGL/TypeIds.h"
44 #include "IECoreGL/AlphaTexture.h"
49 IE_CORE_FORWARDDECLARE( MeshPrimitive );
50 IE_CORE_FORWARDDECLARE( State );
58 Font( IECore::FontPtr font );
63 const MeshPrimitive *mesh(
char c )
const;
64 const AlphaTexture *texture()
const;
68 void renderSprites(
const std::string &text )
const;
70 void renderMeshes(
const std::string &text, State *state )
const;
74 IECore::FontPtr m_font;
75 IECoreImage::FontPtr m_imageFont;
77 typedef std::vector<ConstMeshPrimitivePtr> MeshVector;
78 mutable MeshVector m_meshes;
80 mutable ConstAlphaTexturePtr m_texture;
84 IE_CORE_DECLAREPTR( Font );
88 #endif // IECOREGL_FONT_H
The namespace within which all CoreGL functionality is defined.
Definition: AlphaTexture.h:41
Definition: RunTimeTyped.h:211