37 _character(character),
43 _state = RenderState::make_empty();
54 _character(copy._character),
57 _advance(copy._advance)
66 INLINE
void TextGlyph::
68 _character = copy._character;
71 _advance = copy._advance;
90 INLINE PT(
Geom) TextGlyph::
91 get_geom(Geom::UsageHint usage_hint)
const {
92 if (_geom == (
Geom *)NULL) {
100 PT(
Geom) new_geom = _geom->make_copy();
101 new_geom->set_usage_hint(usage_hint);
103 nassertr(vdata != NULL, new_geom);
105 new_geom->modify_vertex_data()->set_usage_hint(usage_hint);
129 INLINE PN_stdfloat TextGlyph::
130 get_advance()
const {
int get_character() const
Returns the Unicode value that corresponds to the character this glyph represents.
UsageHint get_usage_hint() const
Returns the usage hint that was passed to the constructor, and which will be passed to each array dat...
This defines the actual numeric vertex data stored in a Geom, in the structure defined by a particula...
A container for geometry primitives.
A representation of a single glyph (character) from a font.
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
TextGlyph(int character)
This constructor makes an invalid glyph.