mirror of
https://github.com/nigels-com/glew.git
synced 2025-02-19 15:10:41 +00:00
Refactoring glxewIsSupported and wglewIsSupported for backwards compatibility.
This commit is contained in:
parent
08806061a4
commit
d4a0a8401c
@ -9,7 +9,7 @@
|
|||||||
#if defined(GLEW_MX)
|
#if defined(GLEW_MX)
|
||||||
GLboolean glxewContextIsSupported (const GLXEWContext* ctx, const char* name)
|
GLboolean glxewContextIsSupported (const GLXEWContext* ctx, const char* name)
|
||||||
#else
|
#else
|
||||||
GLboolean glxewContextIsSupported (const char* name)
|
GLboolean glxewIsSupported (const char* name)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
const GLubyte* pos = (const GLubyte*)name;
|
const GLubyte* pos = (const GLubyte*)name;
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#if defined(GLEW_MX)
|
#if defined(GLEW_MX)
|
||||||
GLboolean GLEWAPIENTRY wglewContextIsSupported (const WGLEWContext* ctx, const char* name)
|
GLboolean GLEWAPIENTRY wglewContextIsSupported (const WGLEWContext* ctx, const char* name)
|
||||||
#else
|
#else
|
||||||
GLboolean GLEWAPIENTRY wglewContextIsSupported (const char* name)
|
GLboolean GLEWAPIENTRY wglewIsSupported (const char* name)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
const GLubyte* pos = (const GLubyte*)name;
|
const GLubyte* pos = (const GLubyte*)name;
|
||||||
|
@ -15,10 +15,9 @@ GLEWAPI GLboolean GLEWAPIENTRY glxewContextIsSupported (const GLXEWContext *ctx,
|
|||||||
#else /* GLEW_MX */
|
#else /* GLEW_MX */
|
||||||
|
|
||||||
GLEWAPI GLenum GLEWAPIENTRY glxewContextInit ();
|
GLEWAPI GLenum GLEWAPIENTRY glxewContextInit ();
|
||||||
GLEWAPI GLboolean GLEWAPIENTRY glxewContextIsSupported (const char *name);
|
GLEWAPI GLboolean GLEWAPIENTRY glxewIsSupported (const char *name);
|
||||||
|
|
||||||
#define glxewInit() glxewContextInit()
|
#define glxewInit() glxewContextInit()
|
||||||
#define glxewIsSupported(x) glxewContextIsSupported(x)
|
|
||||||
|
|
||||||
#define GLXEW_GET_VAR(x) (*(const GLboolean*)&x)
|
#define GLXEW_GET_VAR(x) (*(const GLboolean*)&x)
|
||||||
#define GLXEW_GET_FUN(x) x
|
#define GLXEW_GET_FUN(x) x
|
||||||
|
@ -15,10 +15,9 @@ GLEWAPI GLboolean GLEWAPIENTRY wglewContextIsSupported (const WGLEWContext *ctx,
|
|||||||
#else /* GLEW_MX */
|
#else /* GLEW_MX */
|
||||||
|
|
||||||
GLEWAPI GLenum GLEWAPIENTRY wglewContextInit ();
|
GLEWAPI GLenum GLEWAPIENTRY wglewContextInit ();
|
||||||
GLEWAPI GLboolean GLEWAPIENTRY wglewContextIsSupported (const char *name);
|
GLEWAPI GLboolean GLEWAPIENTRY wglewIsSupported (const char *name);
|
||||||
|
|
||||||
#define wglewInit() wglewContextInit()
|
#define wglewInit() wglewContextInit()
|
||||||
#define wglewIsSupported(x) wglewContextIsSupported(x)
|
|
||||||
|
|
||||||
#define WGLEW_GET_VAR(x) (*(const GLboolean*)&x)
|
#define WGLEW_GET_VAR(x) (*(const GLboolean*)&x)
|
||||||
#define WGLEW_GET_FUN(x) x
|
#define WGLEW_GET_FUN(x) x
|
||||||
|
Loading…
Reference in New Issue
Block a user