35 #ifndef IECOREGL_TEXTPRIMITIVE_H
36 #define IECOREGL_TEXTPRIMITIVE_H
38 #include "IECoreGL/Export.h"
39 #include "IECoreGL/Primitive.h"
40 #include "IECoreGL/TypedStateComponent.h"
45 IE_CORE_FORWARDDECLARE( Font )
47 class IECOREGL_API TextPrimitive : public Primitive
52 IE_CORE_DECLARERUNTIMETYPEDEXTENSION( IECoreGL::TextPrimitive, TextPrimitiveTypeId, Primitive );
54 TextPrimitive(
const std::string &text, FontPtr font );
55 ~TextPrimitive()
override;
57 Imath::Box3f bound()
const override;
72 typedef TypedStateComponent<RenderType, TextPrimitiveTypeTypeId> Type;
73 IE_CORE_DECLAREPTR( Type );
76 void render( State *currentState )
const override;
77 void renderInstances(
size_t numInstances )
const override;
85 void renderMeshes( State *state )
const;
86 void renderSprites( State *state )
const;
90 IE_CORE_DECLAREPTR( TextPrimitive );
94 #endif // IECOREGL_TEXTPRIMITIVE_H
The namespace within which all CoreGL functionality is defined.
Definition: AlphaTexture.h:41
Definition: PrimitiveVariable.h:47