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;
|
2004-02-19 04:37:07 +00:00
|
|
|
extern GLenum glxewContextInit (GLXEWContext* ctx);
|
2004-12-29 07:24:49 +00:00
|
|
|
extern GLboolean glxewContextIsSupported (GLXEWContext* ctx, const char* name);
|
|
|
|
|
|
|
|
#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 */
|
|
|
|
|
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
|
|
|
|
2004-12-29 07:24:49 +00:00
|
|
|
extern GLboolean glxewIsSupported (const char* name);
|
|
|
|
|
2004-02-01 20:03:26 +00:00
|
|
|
#endif /* GLEW_MX */
|
|
|
|
|
2004-02-01 22:27:31 +00:00
|
|
|
extern GLboolean glxewGetExtension (const char* name);
|
2003-07-06 15:01:13 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __glxew_h__ */
|