00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef TEXTGLYPH_H
00020 #define TEXTGLYPH_H
00021
00022 #include "pandabase.h"
00023 #include "renderState.h"
00024 #include "referenceCount.h"
00025 #include "geom.h"
00026 #include "pointerTo.h"
00027
00028
00029
00030
00031
00032
00033
00034 class EXPCL_PANDA TextGlyph : public ReferenceCount {
00035 public:
00036 INLINE TextGlyph();
00037 INLINE TextGlyph(Geom *geom, const RenderState *state, float advance);
00038 INLINE TextGlyph(const TextGlyph ©);
00039 INLINE void operator = (const TextGlyph ©);
00040 virtual ~TextGlyph();
00041
00042 INLINE PT(Geom) get_geom() const;
00043 INLINE const RenderState *get_state() const;
00044 INLINE float get_advance() const;
00045
00046 protected:
00047 PT(Geom) _geom;
00048 CPT(RenderState) _state;
00049 float _advance;
00050 };
00051
00052 #include "textGlyph.I"
00053
00054 #endif