|
#define GLFW_DLL
#include <stdio.h>
#include <gl/glew.h>
#include <gl/glfw.h>
GLint main(GLint argc, char** argv)
{
int code = glewInit();
if(code != GLEW_OK)
{
printf("Error! : 无法初始化glew!\n");
switch (code)
{
case 1:
printf("GLEW_ERROR_NO_GL_VERSION ==> missing GL version!\n");
break;
case 2:
printf("GLEW_ERROR_GL_VERSION_10_ONLY ==> Need at least OpenGL 1.1!\n");
break;
case 3:
printf("GLEW_ERROR_GLX_VERSION_11_ONLY ==> Need at least GLX 1.2!\n");
}
return 0;
}
......
}
what`s the matter?求解。 [em4] [em17] |
|