| 246 | } |
| 247 | |
| 248 | void drawText(void) |
| 249 | { |
| 250 | using std::string; |
| 251 | using std::stringstream; |
| 252 | |
| 253 | glPushMatrix(); |
| 254 | glLoadIdentity(); |
| 255 | glRasterPos2f(-1.2f, 1.2f); |
| 256 | |
| 257 | string infoString; |
| 258 | stringstream ss; |
| 259 | g_pRng->getInfoString(infoString); |
| 260 | ss << " skip1=" << nSkip1; |
| 261 | ss << " skip2=" << nSkip2; |
| 262 | ss << " skip3=" << nSkip3; |
| 263 | ss << " points=" << g_nVerticesPopulated; |
| 264 | infoString.append(ss.str()); |
| 265 | |
| 266 | for (unsigned int i = 0; i < infoString.size(); i++) { |
| 267 | glutBitmapCharacter(GLUT_BITMAP_HELVETICA_12, infoString[i]); |
| 268 | } |
| 269 | |
| 270 | glPopMatrix(); |
| 271 | } |
| 272 | |
| 273 | void reshape(int x, int y) |
| 274 | { |
no test coverage detected