30 INLINE
TextGlyph(
int character, PN_stdfloat advance=0);
34 INLINE
void operator = (
const TextGlyph ©);
38 INLINE
int get_character()
const;
39 INLINE
bool has_quad()
const;
40 INLINE
bool get_quad(LVecBase4 &dimensions, LVecBase4 &texcoords)
const;
42 INLINE PN_stdfloat get_advance()
const;
44 MAKE_PROPERTY(character, get_character);
45 MAKE_PROPERTY(state, get_state);
46 MAKE_PROPERTY(advance, get_advance);
48 virtual bool is_whitespace()
const;
50 PT(
Geom) get_geom(Geom::UsageHint usage_hint)
const;
53 void calc_tight_bounds(LPoint3 &min_point, LPoint3 &max_point,
54 bool &found_any,
Thread *current_thread)
const;
56 void set_quad(
const LVecBase4 &dimensions,
const LVecBase4 &texcoords,
63 void check_quad_geom();
64 void make_quad_geom();
74 LVecBase4 _quad_dimensions;
75 LVecBase4 _quad_texcoords;
83 static void init_type() {
84 TypedReferenceCount::init_type();
86 TypedReferenceCount::get_class_type());
89 return get_class_type();
91 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
This is an abstract base class for a family of classes that represent the fundamental geometry primit...
This is a specialization on Geom for containing a primitive intended to represent a TextGlyph.
This defines the actual numeric vertex data stored in a Geom, in the structure defined by a particula...
A container for geometry primitives.
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
A representation of a single glyph (character) from a font.
A thread; that is, a lightweight process.
TypeHandle is the identifier used to differentiate C++ class types.
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.