Hello.. I'm trying to use OpenGL to draw the great pyramid model and have it rotate.. i'm having trouble with my points as you can see they are commented out. I'm also trying to figure out how to turn the eye point and how to rotate it...

here are my points

glBegin(GL_POLYGON);

        glVertex3f(0.25, 0.25, 0.0);
        glVertex3f(0.75, 0.25, 0.0);
        glVertex3f(0.50, 0.75, 0.50);

   glEnd();

   glBegin(GL_POLYGON);

        glVertex3f(0.25, 0.25, 0.0);
        glVertex3f(0.75, 0.25, 0.0);
        glVertex3f(0.50, 0.75, 0.50);

   glEnd();

/*   
   glBegin(GL_POLYGON);

        glVertex3f(0.75, 0.50, 0.0);
        glVertex3f(0.25, 0.75, 0.0);
        glVertex3f(0.50, 0.25, 0.0);

   glBegin(GL_POLYGON);

        glVertex3f(0.25, 0.75, 0.0);
        glVertex3f(0.50, 0.25, 0.0);
        glVertex3f(0.75, 0.50, 0.0);

   glBegin(GL_POLYGON);

        glVertex3f(0.25, 0.25, 0.0);
        glVertex3f(0.75, 0.25, 0.0);
        glVertex3f(0.75, 0.75, 0.0);
                glVertex3f(0.25, 0.75, 0.0);

   glEnd();

[IMG]http://www.gameroom.com/gizapump/GPaerial.jpg[/IMG]

have you got Dev c++

The IDE includes an OpenGL sample that does exactly this, its very consice