- GLuint DisplayWidget::makePointCloud()
- {
- GLuint list = glGenLists(1); // allocates range number of contiguous display list indices
- glNewList(list, GL_COMPILE); // create new display list
- glPointSize(1); // the size of the points
- glColor3f(0.8f, 0.2f, 0.1f);
- // display the points
- glBegin(GL_POINTS);
- foreach(Point* p, pointCloud->getPointList()) {
- glVertex3f(p->x, -(p->z), p->y);
- } //for
- glEnd();
- glEndList(); // end of display list
- return list;
- } //makePointCloud