64,281
社区成员
发帖
与我相关
我的任务
分享
#include <GL/glew.h>
#include <GL/glut.h>
void main(int argc, char **argv)
{
glutInit(&argc, argv);
glewInit();
if (glewIsSupported("GL_VERSION_2_0"))
printf("Ready for OpenGL 2.0\n");
else { printf("OpenGL 2.0 not supported\n");
exit(1); }
setShaders();
glutMainLoop();
}