Unuk/src/libUnuk/Font.cpp
Rtch90 fe6ccf46d9 -- [Re-Write] Removed nearly everything, and started from scratch.
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.
2011-11-06 23:11:15 +00:00

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);
}