Am I close?Code:#include <windows.h> #include <GL/gl.h> #include <GL/glu.h> int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { glClearColor (0.0, 0.0, 0.0, 0.0); glClear (GL_COLOR_BUFFER_BIT); glColor3f (1.0, 1.0, 1.0); glOrtho(0.0, 1.0, 0.0, 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(); glFlush(); }
I'm using Dev-C++ and I don't get an error when I compile it but I get something else. I'd show it but I get an error message when I try. IM me on AIM and I can show you what it is.
NaRutoMeTis



LinkBack URL
About LinkBacks


