I’m at the point in my OpenGL book where the author explains how to plot points on the screen and make a polygon. I tried, for myself, to display a polygon in a window with the following code:
auxMainLoop(DrawScene);
cprintf("Push any key to close the coloured window...
");
getch();
}
I get no compile-time errors, and the application runs fine. It opens the window, but it doesn’t display the polygon that I defined in the code. Can anyone help me out here?
I linked glu32.lib to the project, included glu.h in the preprocessor, added the code that you gave me, but it still does not display my square… I’m using VC++ 6.0 if that makes any sort of difference…
Originally posted by Fredric:
[b]I’m at the point in my OpenGL book where the author explains how to plot points on the screen and make a polygon. I tried, for myself, to display a polygon in a window with the following code:
cprintf("Push any key to close the coloured window…
");
getch();
}
I get no compile-time errors, and the application runs fine. It opens the window, but it doesn’t display the polygon that I defined in the code. Can anyone help me out here?
[/b]
Hello mate I was looking at your code, some thing puzzled me why are you using single quotes around your includes??, also if you are using AUX, then it should not be any trouble for you to use GLUT, just re-write the code in GLUT that’s what I use, I have VC++ 4.0, yes (ooolllddd), and my codes work fine actually I’m going to get the new VC++ 6.0 soon, but anyway the code looks fine just try using GLUT instead…