mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
clean up properly
This commit is contained in:
parent
6a6b12053a
commit
d3b9f82604
@ -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
|
// Function: DynamicTextFont::get_num_pages
|
||||||
// Access: Published
|
// Access: Published
|
||||||
|
@ -45,6 +45,7 @@
|
|||||||
class EXPCL_PANDA DynamicTextFont : public TextFont {
|
class EXPCL_PANDA DynamicTextFont : public TextFont {
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
DynamicTextFont(const Filename &font_filename, int face_index = 0);
|
DynamicTextFont(const Filename &font_filename, int face_index = 0);
|
||||||
|
virtual ~DynamicTextFont();
|
||||||
|
|
||||||
INLINE bool set_point_size(float point_size);
|
INLINE bool set_point_size(float point_size);
|
||||||
INLINE float get_point_size() const;
|
INLINE float get_point_size() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user