PNMTextMaker constructor should take FreetypeFont
This commit is contained in:
parent
031005d55e
commit
02e95bdba3
|
|
@ -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 ©) :
|
||||
|
|
@ -59,10 +59,23 @@ PNMTextMaker(const PNMTextMaker ©) :
|
|||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: PNMTextMaker::Copy Constructor
|
||||
// Access: Public
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
PNMTextMaker::
|
||||
PNMTextMaker(const FreetypeFont ©) :
|
||||
FreetypeFont(copy),
|
||||
_is_valid(true)
|
||||
{
|
||||
initialize();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: PNMTextMaker::Destructor
|
||||
// Access: Public
|
||||
// Description:
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
PNMTextMaker::
|
||||
~PNMTextMaker() {
|
||||
|
|
|
|||
|
|
@ -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 ©);
|
||||
PNMTextMaker(const FreetypeFont ©);
|
||||
~PNMTextMaker();
|
||||
|
||||
enum Alignment {
|
||||
|
|
|
|||
Loading…
Reference in New Issue