A Sample OpenGL/GLUT program
This is a very simple OpenGL/GLUT program that I want you to compile and
run. This is to test whether you have a complete OpenGL/GLUT installed
on your favor computer system.

////////////////////////////////////////////////////////
//
// This should be your first OpenGL/Glut program
// do nothing but draw a yellow rectangular polygon at the
// center of the window
//
////////////////////////////////////////////////////////

#include <GL/glut.h>
#include <GL/gl.h>

void display()
{

  glClear(GL_COLOR_BUFFER_BIT);
  glColor4f(1,1,0,1);

  glBegin(GL_POLYGON);
    glVertex2f(-0.5, -0.5);
    glVertex2f(-0.5,  0.5);
    glVertex2f(0.5, 0.5);
    glVertex2f(0.5, -0.5);
  glEnd();
  glFlush();

}

int main(int argc, char** argv)
{
  glutInit(&argc, argv);
  glutCreateWindow("simple");
  glutDisplayFunc(display);
  glutMainLoop();
}

Here is the image that you should get on your screen:
 


 

If you get this - congratulations!! A nice first step.