mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-24 23:05:06 +00:00
6e0485e351
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@499 783a27ee-832a-0410-bc00-9f386506c6dd
33 lines
831 B
C
33 lines
831 B
C
/* ------------------------------------------------------------------------- */
|
|
|
|
#ifdef GLEW_MX
|
|
|
|
typedef struct WGLEWContextStruct WGLEWContext;
|
|
GLEWAPI GLenum wglewContextInit (WGLEWContext* ctx);
|
|
GLEWAPI GLboolean wglewContextIsSupported (WGLEWContext* ctx, const char* name);
|
|
|
|
#define wglewInit() wglewContextInit(wglewGetContext())
|
|
#define wglewIsSupported(x) wglewContextIsSupported(wglewGetContext(), x)
|
|
|
|
#define WGLEW_GET_VAR(x) (*(const GLboolean*)&(wglewGetContext()->x))
|
|
#define WGLEW_GET_FUN(x) wglewGetContext()->x
|
|
|
|
#else /* GLEW_MX */
|
|
|
|
#define WGLEW_GET_VAR(x) (*(const GLboolean*)&x)
|
|
#define WGLEW_GET_FUN(x) x
|
|
|
|
GLEWAPI GLboolean wglewIsSupported (const char* name);
|
|
|
|
#endif /* GLEW_MX */
|
|
|
|
GLEWAPI GLboolean wglewGetExtension (const char* name);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#undef GLEWAPI
|
|
|
|
#endif /* __wglew_h__ */
|