
The reason for doing this? Got an idea for gameplay, and what I previusly wrote did not fit, and it sucked anyhow. Let's play.
12 lines
250 B
C++
12 lines
250 B
C++
#include "Font.h"
|
|
|
|
TTF_Font* Font(const char* filename, const int size) {
|
|
ifstream font(filename);
|
|
|
|
if(font.is_open() == false) {
|
|
Debug::logger->message("Font: %s cannot be found.");
|
|
exit(-1);
|
|
}
|
|
return TTF_OpenFont(filename, size);
|
|
}
|