2003-07-06 15:01:13 +00:00
|
|
|
/* ------------------------------------------------------------------------- */
|
|
|
|
|
2004-02-19 04:37:07 +00:00
|
|
|
#ifdef GLEW_MX
|
|
|
|
|
2004-02-01 18:13:05 +00:00
|
|
|
typedef struct WGLEWContextStruct WGLEWContext;
|
2012-05-04 21:05:07 +00:00
|
|
|
GLEWAPI GLenum GLEWAPIENTRY wglewContextInit (WGLEWContext *ctx);
|
|
|
|
GLEWAPI GLboolean GLEWAPIENTRY wglewContextIsSupported (const WGLEWContext *ctx, const char *name);
|
2004-12-29 07:24:49 +00:00
|
|
|
|
|
|
|
#define wglewInit() wglewContextInit(wglewGetContext())
|
|
|
|
#define wglewIsSupported(x) wglewContextIsSupported(wglewGetContext(), x)
|
2004-02-19 04:37:07 +00:00
|
|
|
|
2007-03-19 13:41:21 +00:00
|
|
|
#define WGLEW_GET_VAR(x) (*(const GLboolean*)&(wglewGetContext()->x))
|
2004-02-19 04:37:07 +00:00
|
|
|
#define WGLEW_GET_FUN(x) wglewGetContext()->x
|
|
|
|
|
|
|
|
#else /* GLEW_MX */
|
|
|
|
|
2007-03-19 13:41:21 +00:00
|
|
|
#define WGLEW_GET_VAR(x) (*(const GLboolean*)&x)
|
2004-02-19 04:37:07 +00:00
|
|
|
#define WGLEW_GET_FUN(x) x
|
2004-02-01 18:13:05 +00:00
|
|
|
|
2012-05-04 21:05:07 +00:00
|
|
|
GLEWAPI GLboolean GLEWAPIENTRY wglewIsSupported (const char *name);
|
2004-12-29 07:24:49 +00:00
|
|
|
|
2004-02-01 18:13:05 +00:00
|
|
|
#endif /* GLEW_MX */
|
|
|
|
|
2012-05-04 21:05:07 +00:00
|
|
|
GLEWAPI GLboolean GLEWAPIENTRY wglewGetExtension (const char *name);
|
2003-07-06 15:01:13 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#undef GLEWAPI
|
|
|
|
|
|
|
|
#endif /* __wglew_h__ */
|