关于opengl的一个小问题~~
代码:
#include <Gl/Gl.H>
#include <Gl/GLU.H>
#include <Gl/glut.h>
void redn(void)
{
glClear(GL_COLOR_BUFFER_BIT);
glFlush();
}
void main(void)
{
glutIntDisplayMode(GLUT_SINGLE | GLUT_RGB);
glutCreateWindow("temp");
glutDisplayFunc(glClear(GL_COLOR_BUFFER_BIT););
glClearColor(0.0f,1.0f,1.2f,1.5f);
glutMainLoop();
}
然后报错误
:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing ';' before type 'void'
c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: 'WINGDIAPI' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found
我还缺点什么东西?