最終更新日08 Oct 2013 14:27



プロシージャエントリポイントがglewInitが glew32.dllから見つかりませんでした。


  • glewinfo.exe
  • visualinfo.exe

visualinfo: extensions and visuals

visualinfo is an extended version of glxinfo. The Windows version creates a file called visualinfo.txt, which contains a list of available OpenGL, WGL, and GLU extensions as well as a table of visuals aka. pixel formats. Pbuffer and MRT capable visuals are also included. For additional usage information, type visualinfo -h.
glewinfo: extension verification utility

glewinfo allows you to verify the entry points for the extensions supported on your platform. The Windows version reports the results to a text file called glewinfo.txt. The Unix version prints the results to stdout.
Windows usage:
glewinfo [-pf <id>]
where <id> is the pixel format id for which the capabilities are displayed.
Unix usage:
glewinfo [-display <dpy>] [-visual <id>]
where <dpy> is the X11 display and <id> is the visual id for which the capabilities are displayed.

#pragma comment(lib, "glew32.lib")
GLenum err = glewInit();
if (GLEW_OK != err)
  /* glewInitの失敗 */
  fprintf(stderr, "Error: %s\n", glewGetErrorString(err));
fprintf(stdout, "Status: Using GLEW %s\n", glewGetString(GLEW_VERSION));
/* error codes */
#define GLEW_OK 0
#define GLEW_NO_ERROR 0
#define GLEW_ERROR_NO_GL_VERSION 1  /* missing GL version */
#define GLEW_ERROR_GL_VERSION_10_ONLY 2  /* Need at least OpenGL 1.1 */
#define GLEW_ERROR_GLX_VERSION_11_ONLY 3  /* Need at least GLX 1.2 */