i keep getting missing prototype for glEnd
and missing prototype of glflush
then poissible usage of GL_POLYGON(GL_BUFFER_BIT)
i use icc compiler
Code:#include<gl\gl.h> #include<gl\glu.h> #include<gl\glaux.h> main() { glClearColor(0.0, 0.0, 0.0, 0.0); glClear(GL_COLOR_BUFFER_BIT); glColor3f(1.0, 1.0, 1.0); glOrtho(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0); 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(); }