clean up properly

This commit is contained in:
David Rose 2002-04-05 19:27:15 +00:00
parent 6a6b12053a
commit d3b9f82604
2 changed files with 14 additions and 0 deletions

View File

@ -119,6 +119,19 @@ DynamicTextFont(const Filename &font_filename, int face_index) {
}
}
////////////////////////////////////////////////////////////////////
// Function: DynamicTextFont::Constructor
// Access: Published, Virtual
// Description:
////////////////////////////////////////////////////////////////////
DynamicTextFont::
~DynamicTextFont() {
if (_is_valid) {
FT_Done_Face(_face);
_is_valid = false;
}
}
////////////////////////////////////////////////////////////////////
// Function: DynamicTextFont::get_num_pages
// Access: Published

View File

@ -45,6 +45,7 @@
class EXPCL_PANDA DynamicTextFont : public TextFont {
PUBLISHED:
DynamicTextFont(const Filename &font_filename, int face_index = 0);
virtual ~DynamicTextFont();
INLINE bool set_point_size(float point_size);
INLINE float get_point_size() const;