void myDisplay()
{
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

    glMatrixMode(GL_MODELVIEW);
    glLoadIdentity();
    gluLookAt(eye[0], eye[1], eye[2], center[0], center[1], center[2], up[0], up[1], up[2]);

    DrawGroundPlane();
    DrawRobotArm(16);
    drawCube();

    glutSwapBuffers();
}
Example #2
0
void CParticleSystemDrawer::Draw(CParticleSystem* ps) {
	DrawGroundPlane(ps, 2.0f);
	DrawSystemBoundaries(ps);
	DrawSystem(ps);
}