#include <FTLibrary.h>
This class encapsulates the Freetype Library. This is a singleton class and ensures that only one FT_Library is in existence at any one time. All constructors are private therefore clients cannot create or instantiate this class themselves and must access it's methods via the static FTLibrary::Instance()
function.
Just because this class returns a valid FTLibrary
object doesn't mean that the Freetype Library has been successfully initialised. Clients should check for errors. You can initialse the library AND check for errors using the following code... err = FTLibrary::Instance().Error();
Definition at line 29 of file FTLibrary.h.
Public Member Functions | |
const FT_Library *const | GetLibrary () const |
Gets a pointer to the native Freetype library. | |
FT_Error | Error () const |
Queries the library for errors. | |
~FTLibrary () | |
Destructor. | |
Static Public Member Functions | |
const FTLibrary & | Instance () |
Global acces point to the single FTLibrary object. |
|
Destructor. Disposes of the Freetype library Definition at line 11 of file FTLibrary.cpp. |
|
Queries the library for errors.
Definition at line 51 of file FTLibrary.h. |
|
Gets a pointer to the native Freetype library.
Definition at line 44 of file FTLibrary.h. |
|
Global acces point to the single FTLibrary object.
Definition at line 4 of file FTLibrary.cpp. |