Free Web Hosting Provider - Web Hosting - E-commerce - High Speed Internet - Free Web Page
Search the Web

 

 

Below are the links for the required files to compile your first OpenGl program:

  •  Download the zipped GLUT 3.7 source code distribution: glut37.zip
              Click Here To Download 

     

  • Download the GLUT header file, the .LIB, and .DLL files all pre-compiled for Intel platforms
             Click Here To Download

 

Instructions:

I. Extension Method:

This method indicated that you should distribute the files according to their locations:

    Extension                  Location

a. *.LIB                         Compiler\Lib (C:\Program Files\Microsoft Visual Studio\VC98)

b. *.H                             Compiler\Include (Same Directory as above)

c.  *.DLL                       Windows\system32

II. Trail Method:

Step 1:

Basically in the include statment at the beginning of the program, type the full path to the location of the directory eg:

#include <D:\University Files II\Computer Graphics\Trail\glut-3.7\include\GL/glut.h>

void display(void)
{
/* clear all pixels */
glClear (GL_COLOR_BUFFER_BIT);

/* draw white polygon (rectangle) with corners at
* (0.25, 0.25, 0.0) and (0.75, 0.75, 0.0)
*/
glColor3f (1.0, 1.0, 1.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();

/* don't wait!
* start processing buffered OpenGL routines
*/
glFlush ();
}

Step 2:

Place the DLL files in the system 32 and if the compiler didn't recognize them, paste them as well in the workspace folder (That is the place where the Files of your actual program are created as well as the debug folder)