|
|
@@ -28,7 +28,7 @@
|
|
|
// font. This is a piece of renderable geometry of some
|
|
|
// kind.
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-class EXPCL_PANDA_TEXT TextGlyph : public ReferenceCount {
|
|
|
+class EXPCL_PANDA_TEXT TextGlyph : public TypedReferenceCount {
|
|
|
public:
|
|
|
INLINE TextGlyph(int character);
|
|
|
INLINE TextGlyph(int character, const Geom *geom,
|
|
|
@@ -50,6 +50,23 @@ protected:
|
|
|
CPT(Geom) _geom;
|
|
|
CPT(RenderState) _state;
|
|
|
PN_stdfloat _advance;
|
|
|
+
|
|
|
+public:
|
|
|
+ static TypeHandle get_class_type() {
|
|
|
+ return _type_handle;
|
|
|
+ }
|
|
|
+ static void init_type() {
|
|
|
+ TypedReferenceCount::init_type();
|
|
|
+ register_type(_type_handle, "TextGlyph",
|
|
|
+ TypedReferenceCount::get_class_type());
|
|
|
+ }
|
|
|
+ virtual TypeHandle get_type() const {
|
|
|
+ return get_class_type();
|
|
|
+ }
|
|
|
+ virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
|
|
|
+
|
|
|
+private:
|
|
|
+ static TypeHandle _type_handle;
|
|
|
};
|
|
|
|
|
|
#include "textGlyph.I"
|