PNMTextMaker constructor should take FreetypeFont

This commit is contained in:
rdb 2014-09-13 17:21:38 +00:00
parent 031005d55e
commit 02e95bdba3
2 changed files with 16 additions and 2 deletions

View File

@ -46,7 +46,7 @@ PNMTextMaker(const char *font_data, int data_length, int face_index) {
////////////////////////////////////////////////////////////////////
// Function: PNMTextMaker::Copy Constructor
// Access: Public
// Description:
// Description:
////////////////////////////////////////////////////////////////////
PNMTextMaker::
PNMTextMaker(const PNMTextMaker &copy) :
@ -59,10 +59,23 @@ PNMTextMaker(const PNMTextMaker &copy) :
{
}
////////////////////////////////////////////////////////////////////
// Function: PNMTextMaker::Copy Constructor
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
PNMTextMaker::
PNMTextMaker(const FreetypeFont &copy) :
FreetypeFont(copy),
_is_valid(true)
{
initialize();
}
////////////////////////////////////////////////////////////////////
// Function: PNMTextMaker::Destructor
// Access: Public
// Description:
// Description:
////////////////////////////////////////////////////////////////////
PNMTextMaker::
~PNMTextMaker() {

View File

@ -41,6 +41,7 @@ PUBLISHED:
PNMTextMaker(const Filename &font_filename, int face_index);
PNMTextMaker(const char *font_data, int data_length, int face_index);
PNMTextMaker(const PNMTextMaker &copy);
PNMTextMaker(const FreetypeFont &copy);
~PNMTextMaker();
enum Alignment {