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;
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);
104 if (vdata->get_usage_hint() != usage_hint) {
int get_character() const
Returns the Unicode value that corresponds to the character this glyph represents.
PN_stdfloat get_advance() const
Returns the distance by which the character pointer should be advanced after placing this character; ...
void set_usage_hint(UsageHint usage_hint)
Changes the UsageHint hint for this vertex data, and for all of the arrays that share this data...
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.