This commit is contained in:
David Rose 2007-01-30 12:48:45 +00:00
parent d0da993afc
commit 3e1d2a3a39
3 changed files with 30 additions and 29 deletions

View File

@ -27,7 +27,7 @@
#include "configVariableDouble.h"
#include "configVariableFilename.h"
#include "configVariableEnum.h"
#include "dynamicTextFont.h"
#include "textFont.h"
class DSearchPath;

View File

@ -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();

View File

@ -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);