kusano 7d535a
/* ------------------------------------------------------------------------- */
kusano 7d535a
kusano 7d535a
#ifdef GLEW_MX
kusano 7d535a
kusano 7d535a
typedef struct WGLEWContextStruct WGLEWContext;
kusano 7d535a
GLEWAPI GLenum GLEWAPIENTRY wglewContextInit (WGLEWContext *ctx);
kusano 7d535a
GLEWAPI GLboolean GLEWAPIENTRY wglewContextIsSupported (const WGLEWContext *ctx, const char *name);
kusano 7d535a
kusano 7d535a
#define wglewInit() wglewContextInit(wglewGetContext())
kusano 7d535a
#define wglewIsSupported(x) wglewContextIsSupported(wglewGetContext(), x)
kusano 7d535a
kusano 7d535a
#define WGLEW_GET_VAR(x) (*(const GLboolean*)&(wglewGetContext()->x))
kusano 7d535a
#define WGLEW_GET_FUN(x) wglewGetContext()->x
kusano 7d535a
kusano 7d535a
#else /* GLEW_MX */
kusano 7d535a
kusano 7d535a
#define WGLEW_GET_VAR(x) (*(const GLboolean*)&x)
kusano 7d535a
#define WGLEW_GET_FUN(x) x
kusano 7d535a
kusano 7d535a
GLEWAPI GLboolean GLEWAPIENTRY wglewIsSupported (const char *name);
kusano 7d535a
kusano 7d535a
#endif /* GLEW_MX */
kusano 7d535a
kusano 7d535a
GLEWAPI GLboolean GLEWAPIENTRY wglewGetExtension (const char *name);
kusano 7d535a
kusano 7d535a
#ifdef __cplusplus
kusano 7d535a
}
kusano 7d535a
#endif
kusano 7d535a
kusano 7d535a
#undef GLEWAPI
kusano 7d535a
kusano 7d535a
#endif /* __wglew_h__ */