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 */
|
|
|
|
|
2015-08-07 07:04:27 +00:00
|
|
|
GLEWAPI GLenum GLEWAPIENTRY wglewInit ();
|
2015-08-07 06:53:47 +00:00
|
|
|
GLEWAPI GLboolean GLEWAPIENTRY wglewIsSupported (const char *name);
|
2015-08-07 06:41:04 +00:00
|
|
|
|
|
|
|
#define WGLEW_GET_VAR(x) (*(const GLboolean*)&x)
|
|
|
|
#define WGLEW_GET_FUN(x) x
|
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__ */
|