25 for (uint32_t x = 0; x <
text.size(); x++)
50 return text.back().c_str();
57 text.back().resize(
text.back().length()-1);
64 text.back().append(txt);
80 glDisable(GL_LIGHTING);
85 glEnable(GL_LINE_SMOOTH);
89 glDisable(GL_DEPTH_TEST);
91 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
93 glGetIntegerv(GL_MATRIX_MODE, &matrixMode);
94 glMatrixMode(GL_PROJECTION);
97 glFrustum(-1, 1, -1, 1, 1.9, 2.1);
99 glMatrixMode(GL_MODELVIEW);
105 glColor4f(0.0, 0.0, 0.0, 0.5);
106 glVertex3f(-1-0.01, -1-0.07, 0.0);
107 glVertex3f( 1+0.01, -1-0.07, 0.0);
115 for (
unsigned int x =
index; x <
text.size(); x++)
119 while (charOffset != -1)
122 glTranslatef(-1, -1+lineOffset*0.06, 0);
123 glScalef(1.0/(24*120.0), 1.0/(24*120.0), 1);
124 glRotatef(180, 0.0, 0.0, 1.0);
125 glRotatef(180, 0.0, 1.0, 0.0);
126 glColor3f(1.0, 1.0, 1.0);
129 if (x ==
text.size()-1)
140 glMatrixMode(GL_PROJECTION);
142 glMatrixMode(matrixMode);
143 glEnable(GL_DEPTH_TEST);
144 glDisable(GL_LINE_SMOOTH);
151 const float linesPerPage = 30.0f;
156 for (
unsigned int x =
index; x <
text.size(); x++)
169 for (
unsigned int x = start; x < txt.length(); x++)
186 if ((cnt > 45) && (txt[x] ==
' '))