- void DisplayWidget::paintGL()
- {
- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // clears the buffer
- glMatrixMode(GL_MODELVIEW);
- glLoadIdentity(); // set the identity matrix
- glPushMatrix(); // push the current matrix stack
- glTranslatef(0, 0, -10); //multiply the current matrix by a translation matrix
- glRotatef(xRot / 16.0, 1.0, 0.0, 0.0);
- glRotatef(yRot / 16.0, 0.0, 1.0, 0.0);
- glRotatef(zRot / 16.0, 0.0, 0.0, 1.0);
- glTranslatef(-xT, -yT, -zT);
- glCallList(clusterObject);
- glPopMatrix();
- } //paintGL