diff --git a/panda/src/text/config_text.h b/panda/src/text/config_text.h index 09b61d86f8..37f0be915b 100644 --- a/panda/src/text/config_text.h +++ b/panda/src/text/config_text.h @@ -27,7 +27,7 @@ #include "configVariableDouble.h" #include "configVariableFilename.h" #include "configVariableEnum.h" -#include "dynamicTextFont.h" +#include "textFont.h" class DSearchPath; diff --git a/panda/src/text/dynamicTextFont.h b/panda/src/text/dynamicTextFont.h index 912309f2c4..51383aeeb6 100644 --- a/panda/src/text/dynamicTextFont.h +++ b/panda/src/text/dynamicTextFont.h @@ -46,34 +46,6 @@ class NurbsCurveResult; //////////////////////////////////////////////////////////////////// class EXPCL_PANDA DynamicTextFont : public TextFont, public FreetypeFont { PUBLISHED: - enum RenderMode { - // Each glyph is a single textured rectangle - RM_texture, - - // Each glyph is a lot of line segments - RM_wireframe, - - // Each glyph is a lot of triangles - RM_polygon, - - // a 3-D outline, like a cookie cutter - RM_extruded, - - // combination of RM_extruded and RM_polygon - RM_solid, - - // Returned by string_render_mode() for an invalid match. - RM_invalid, - }; - - enum WindingOrder { - WO_default, - WO_left, - WO_right, - - WO_invalid, - }; - DynamicTextFont(const Filename &font_filename, int face_index = 0); DynamicTextFont(const char *font_data, int data_length, int face_index); virtual ~DynamicTextFont(); diff --git a/panda/src/text/textFont.h b/panda/src/text/textFont.h index 5386ea7fc8..2415ecad78 100644 --- a/panda/src/text/textFont.h +++ b/panda/src/text/textFont.h @@ -45,6 +45,35 @@ public: PUBLISHED: virtual ~TextFont(); + enum RenderMode { + // Each glyph is a single textured rectangle + RM_texture, + + // Each glyph is a lot of line segments + RM_wireframe, + + // Each glyph is a lot of triangles + RM_polygon, + + // a 3-D outline, like a cookie cutter + RM_extruded, + + // combination of RM_extruded and RM_polygon + RM_solid, + + // Returned by string_render_mode() for an invalid match. + RM_invalid, + }; + + enum WindingOrder { + WO_default, + WO_left, + WO_right, + + WO_invalid, + }; + + INLINE bool is_valid() const; INLINE float get_line_height() const; INLINE void set_line_height(float line_height);