catalanoli
09-24-2002, 05:22 PM
hi
i have installed the VC++ but i don't get where the openGL fits in .. where do i put the directory or folders cos when i try to write a code and compile it it says:
Cannot compile the C:\Program files\Visual Studio..... no compile tool is associtated with the file extension
i am just praticing my first openGL coding:
/*simple.c*/
#include <GL/glut.h>
void display() {
glClear(GL_COLOR_BUFFER_BIT);
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();
}
i have installed the VC++ but i don't get where the openGL fits in .. where do i put the directory or folders cos when i try to write a code and compile it it says:
Cannot compile the C:\Program files\Visual Studio..... no compile tool is associtated with the file extension
i am just praticing my first openGL coding:
/*simple.c*/
#include <GL/glut.h>
void display() {
glClear(GL_COLOR_BUFFER_BIT);
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();
}