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 */
|
2003-09-12 03:50:22 +00:00
|
|
|
#define GLEW_ERROR_GL_VERSION_10_ONLY 2 /* GL 1.1 and up are not supported */
|
|
|
|
#define GLEW_ERROR_GLX_VERSION_11_ONLY 3 /* GLX 1.2 and up are not supported */
|
|
|
|
|
|
|
|
/* string codes */
|
|
|
|
#define GLEW_VERSION 1
|
2003-07-06 15:01:13 +00:00
|
|
|
|
|
|
|
/* API */
|
2004-02-01 18:13:05 +00:00
|
|
|
#ifdef GLEW_MX
|
|
|
|
|
|
|
|
typedef struct GLEWContextStruct GLEWContext;
|
2004-02-19 04:37:07 +00:00
|
|
|
GLEWAPI GLenum glewContextInit (GLEWContext* ctx);
|
2004-02-01 18:13:05 +00:00
|
|
|
|
2004-02-19 04:37:07 +00:00
|
|
|
#ifdef _WIN32
|
|
|
|
# define GLEW_GET_VAR(x) glewGetContext()->x
|
|
|
|
# define GLEW_GET_FUN(x) glewGetContext()->x
|
|
|
|
#else
|
|
|
|
# define GLEW_GET_VAR(x) glewGetContext()->x
|
|
|
|
# define GLEW_GET_FUN(x) x
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#else /* GLEW_MX */
|
2004-02-01 18:13:05 +00:00
|
|
|
|
2003-09-12 03:50:22 +00:00
|
|
|
GLEWAPI GLenum glewInit ();
|
2004-02-01 18:13:05 +00:00
|
|
|
|
2004-02-19 04:37:07 +00:00
|
|
|
#define GLEW_GET_VAR(x) x
|
|
|
|
#define GLEW_GET_FUN(x) x
|
|
|
|
|
|
|
|
#endif /* GLEW_MX */
|
|
|
|
|
|
|
|
GLEWAPI GLboolean glewExperimental;
|
2004-02-01 22:27:31 +00:00
|
|
|
GLEWAPI GLboolean glewGetExtension (const char* name);
|
2003-09-12 03:50:22 +00:00
|
|
|
GLEWAPI const GLubyte* glewGetErrorString (GLenum error);
|
|
|
|
GLEWAPI const GLubyte* glewGetString (GLenum name);
|
2003-07-06 15:01:13 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef GLEW_APIENTRY_DEFINED
|
|
|
|
#undef GLEW_APIENTRY_DEFINED
|
|
|
|
#undef APIENTRY
|
|
|
|
#undef GLAPIENTRY
|
|
|
|
#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__ */
|