2003-07-06 15:01:13 +00:00
|
|
|
/* ------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
/* error codes */
|
|
|
|
#define GLEW_OK 0
|
2003-09-12 03:50:22 +00:00
|
|
|
#define GLEW_NO_ERROR 0
|
2003-07-06 15:01:13 +00:00
|
|
|
#define GLEW_ERROR_NO_GL_VERSION 1 /* missing GL version */
|
2010-12-27 17:21:19 +00:00
|
|
|
#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 */
|
2016-11-13 02:08:32 +00:00
|
|
|
#define GLEW_ERROR_NO_GLX_DISPLAY 4 /* Need GLX display for GLX support */
|
2003-09-12 03:50:22 +00:00
|
|
|
|
|
|
|
/* string codes */
|
|
|
|
#define GLEW_VERSION 1
|
2007-12-28 00:24:07 +00:00
|
|
|
#define GLEW_VERSION_MAJOR 2
|
|
|
|
#define GLEW_VERSION_MINOR 3
|
|
|
|
#define GLEW_VERSION_MICRO 4
|
2003-07-06 15:01:13 +00:00
|
|
|
|
2015-03-29 01:43:56 +00:00
|
|
|
/* ------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
/* GLEW version info */
|
|
|
|
|
|
|
|
/*
|
|
|
|
VERSION GLEW_VERSION_STRING
|
|
|
|
VERSION_MAJOR GLEW_VERSION_MAJOR_STRING
|
|
|
|
VERSION_MINOR GLEW_VERSION_MINOR_STRING
|
|
|
|
VERSION_MICRO GLEW_VERSION_MICRO_STRING
|
|
|
|
*/
|
|
|
|
|
2003-07-06 15:01:13 +00:00
|
|
|
/* API */
|
2012-05-04 15:31:47 +00:00
|
|
|
GLEWAPI GLenum GLEWAPIENTRY glewInit (void);
|
|
|
|
GLEWAPI GLboolean GLEWAPIENTRY glewIsSupported (const char *name);
|
2004-12-30 03:11:33 +00:00
|
|
|
#define glewIsExtensionSupported(x) glewIsSupported(x)
|
2004-02-01 18:13:05 +00:00
|
|
|
|
2016-02-06 02:19:47 +00:00
|
|
|
#ifndef GLEW_GET_VAR
|
2007-03-19 13:33:36 +00:00
|
|
|
#define GLEW_GET_VAR(x) (*(const GLboolean*)&x)
|
2016-02-06 02:19:47 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef GLEW_GET_FUN
|
2004-02-19 04:37:07 +00:00
|
|
|
#define GLEW_GET_FUN(x) x
|
2016-02-06 02:19:47 +00:00
|
|
|
#endif
|
2004-02-19 04:37:07 +00:00
|
|
|
|
2012-05-04 19:54:08 +00:00
|
|
|
GLEWAPI GLboolean glewExperimental;
|
2012-05-04 15:31:47 +00:00
|
|
|
GLEWAPI GLboolean GLEWAPIENTRY glewGetExtension (const char *name);
|
|
|
|
GLEWAPI const GLubyte * GLEWAPIENTRY glewGetErrorString (GLenum error);
|
|
|
|
GLEWAPI const GLubyte * GLEWAPIENTRY glewGetString (GLenum name);
|
2003-07-06 15:01:13 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2013-03-19 03:23:02 +00:00
|
|
|
#ifdef GLEW_APIENTRY_DEFINED
|
|
|
|
#undef GLEW_APIENTRY_DEFINED
|
|
|
|
#undef APIENTRY
|
2003-07-06 15:01:13 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef GLEW_CALLBACK_DEFINED
|
|
|
|
#undef GLEW_CALLBACK_DEFINED
|
|
|
|
#undef CALLBACK
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef GLEW_WINGDIAPI_DEFINED
|
|
|
|
#undef GLEW_WINGDIAPI_DEFINED
|
|
|
|
#undef WINGDIAPI
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#undef GLAPI
|
|
|
|
/* #undef GLEWAPI */
|
|
|
|
|
|
|
|
#endif /* __glew_h__ */
|