| 430 | } |
| 431 | |
| 432 | int |
| 433 | OpenGLRenderer::drawPoint(const Vector &pos1, float V1, int tag, int mode, int numPixels) |
| 434 | { |
| 435 | glPointSize(numPixels); |
| 436 | |
| 437 | glBegin(GL_POINTS); |
| 438 | float r, g, b; |
| 439 | |
| 440 | theMap->getRGB(V1, r, g, b); |
| 441 | glColor3f(r,g,b); |
| 442 | glVertex3f(pos1(0),pos1(1),pos1(2)); |
| 443 | |
| 444 | if (theOutputFileName != 0) { |
| 445 | theFile << "Point\n" << pos1(0) << " " << pos1(1) << " " << pos1(2) |
| 446 | << " " << r << " " << g << " " << b << " " << endln; |
| 447 | } |
| 448 | |
| 449 | glEnd(); |
| 450 | |
| 451 | return 0; |
| 452 | } |
| 453 | |
| 454 | |
| 455 | int |