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;
|
2004-02-19 04:37:07 +00:00
|
|
|
GLEWAPI GLenum wglewContextInit (WGLEWContext* ctx);
|
2004-12-29 07:24:49 +00:00
|
|
|
GLEWAPI GLboolean wglewContextIsSupported (WGLEWContext* ctx, const char* name);
|
|
|
|
|
|
|
|
#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
|
|
|
|
2004-12-29 07:24:49 +00:00
|
|
|
GLEWAPI GLboolean wglewIsSupported (const char* name);
|
|
|
|
|
2004-02-01 18:13:05 +00:00
|
|
|
#endif /* GLEW_MX */
|
|
|
|
|
2004-02-01 22:29:31 +00:00
|
|
|
GLEWAPI GLboolean wglewGetExtension (const char* name);
|
2003-07-06 15:01:13 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#undef GLEWAPI
|
|
|
|
|
|
|
|
#endif /* __wglew_h__ */
|