2003-07-06 15:01:13 +00:00
|
|
|
/* ------------------------------------------------------------------------ */
|
|
|
|
|
2004-02-19 04:37:07 +00:00
|
|
|
#ifdef GLEW_MX
|
|
|
|
|
2004-02-01 20:03:26 +00:00
|
|
|
typedef struct GLXEWContextStruct GLXEWContext;
|
2012-05-04 21:05:07 +00:00
|
|
|
GLEWAPI GLenum GLEWAPIENTRY glxewContextInit (GLXEWContext *ctx);
|
|
|
|
GLEWAPI GLboolean GLEWAPIENTRY glxewContextIsSupported (const GLXEWContext *ctx, const char *name);
|
2004-12-29 07:24:49 +00:00
|
|
|
|
|
|
|
#define glxewInit() glxewContextInit(glxewGetContext())
|
|
|
|
#define glxewIsSupported(x) glxewContextIsSupported(glxewGetContext(), x)
|
2004-02-19 04:37:07 +00:00
|
|
|
|
2007-03-19 13:41:21 +00:00
|
|
|
#define GLXEW_GET_VAR(x) (*(const GLboolean*)&(glxewGetContext()->x))
|
2004-02-19 04:37:07 +00:00
|
|
|
#define GLXEW_GET_FUN(x) x
|
|
|
|
|
|
|
|
#else /* GLEW_MX */
|
|
|
|
|
2015-08-07 07:04:27 +00:00
|
|
|
GLEWAPI GLenum GLEWAPIENTRY glxewInit ();
|
2015-08-07 06:53:47 +00:00
|
|
|
GLEWAPI GLboolean GLEWAPIENTRY glxewIsSupported (const char *name);
|
2015-06-18 10:45:29 +00:00
|
|
|
|
2007-03-19 13:41:21 +00:00
|
|
|
#define GLXEW_GET_VAR(x) (*(const GLboolean*)&x)
|
2004-02-19 04:37:07 +00:00
|
|
|
#define GLXEW_GET_FUN(x) x
|
2004-02-01 20:03:26 +00:00
|
|
|
|
|
|
|
#endif /* GLEW_MX */
|
|
|
|
|
2012-05-04 21:05:07 +00:00
|
|
|
GLEWAPI GLboolean GLEWAPIENTRY glxewGetExtension (const char *name);
|
2003-07-06 15:01:13 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __glxew_h__ */
|