mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-25 23:31:56 +00:00
6e0485e351
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@499 783a27ee-832a-0410-bc00-9f386506c6dd
31 lines
791 B
C
31 lines
791 B
C
/* ------------------------------------------------------------------------ */
|
|
|
|
#ifdef GLEW_MX
|
|
|
|
typedef struct GLXEWContextStruct GLXEWContext;
|
|
extern GLenum glxewContextInit (GLXEWContext* ctx);
|
|
extern GLboolean glxewContextIsSupported (GLXEWContext* ctx, const char* name);
|
|
|
|
#define glxewInit() glxewContextInit(glxewGetContext())
|
|
#define glxewIsSupported(x) glxewContextIsSupported(glxewGetContext(), x)
|
|
|
|
#define GLXEW_GET_VAR(x) (*(const GLboolean*)&(glxewGetContext()->x))
|
|
#define GLXEW_GET_FUN(x) x
|
|
|
|
#else /* GLEW_MX */
|
|
|
|
#define GLXEW_GET_VAR(x) (*(const GLboolean*)&x)
|
|
#define GLXEW_GET_FUN(x) x
|
|
|
|
extern GLboolean glxewIsSupported (const char* name);
|
|
|
|
#endif /* GLEW_MX */
|
|
|
|
extern GLboolean glxewGetExtension (const char* name);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __glxew_h__ */
|