$ sudo apt-get upgrade
$ sudo apt-get update
$ sudo apt-get install freeglut3-dev
glClear(GL_COLOR_BUFFER_BIT)
$ g++ <filename.ext> -lglut -lGLU -lGL
#include<GL/glut.h>
#include<GL/gl.h>
void init()
{
glClearColor(R,G,B,Transparency);
glMatrixMode(GL_PROJECTIONS);
gluOrtho2d(xmin,xmax,ymin,ymax);
}
void display()
{
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(R,G,B);
glBegin(PRIMITIVE SHAPE);
glVertex3d(X,Y,Z);
glEnd();
glFlush();
}
int main(int argc, char **argv)
{
glutInit(&argc, argv);
glutInitDisplayMode( GLUT_SINGLE | GLUT_RGB );
glutInitWindowSize( xmax,ymax );
glutCreateWindow("Window Name");
init();
glutDisplayFunc();
glutMainLoop();
}