mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-28 16:51:57 +00:00
37 lines
1.0 KiB
C
37 lines
1.0 KiB
C
/* ------------------------------------------------------------------------- */
|
|
|
|
#ifdef GLEW_MX
|
|
|
|
typedef struct WGLEWContextStruct WGLEWContext;
|
|
GLEWAPI GLenum GLEWAPIENTRY wglewContextInit (WGLEWContext *ctx);
|
|
GLEWAPI GLboolean GLEWAPIENTRY wglewContextIsSupported (const 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 */
|
|
|
|
GLEWAPI GLenum GLEWAPIENTRY wglewContextInit ();
|
|
GLEWAPI GLboolean GLEWAPIENTRY wglewContextIsSupported (const char *name);
|
|
|
|
#define wglewInit() wglewContextInit()
|
|
#define wglewIsSupported(x) wglewContextIsSupported(x)
|
|
|
|
#define WGLEW_GET_VAR(x) (*(const GLboolean*)&x)
|
|
#define WGLEW_GET_FUN(x) x
|
|
|
|
#endif /* GLEW_MX */
|
|
|
|
GLEWAPI GLboolean GLEWAPIENTRY wglewGetExtension (const char *name);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#undef GLEWAPI
|
|
|
|
#endif /* __wglew_h__ */
|