|
@@ -68,6 +68,7 @@ GLFontEngine::GLFontEngine(std::string fontstr) {
|
68
|
68
|
|
69
|
69
|
void GLFontEngine::init() {
|
70
|
70
|
// r = g = b = a = 1.0f;
|
|
71
|
+ col.set(1.0f, 1.0f, 1.0f);
|
71
|
72
|
fsize = 16;
|
72
|
73
|
}
|
73
|
74
|
|
|
@@ -105,6 +106,11 @@ void GLFontEngine::renderText(std::string text, SDL_Rect pos) {
|
105
|
106
|
|
106
|
107
|
void GLFontEngine::renderLine(std::string text, SDL_Rect pos) {
|
107
|
108
|
// glColor4f(r, g, b, a);
|
|
109
|
+
|
|
110
|
+ glMatrixMode(GL_TEXTURE);
|
|
111
|
+ glLoadIdentity();
|
|
112
|
+ glMatrixMode(GL_MODELVIEW);
|
|
113
|
+
|
108
|
114
|
glColorGLC(col);
|
109
|
115
|
|
110
|
116
|
if(fontloaded) {
|