mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-22 13:55:07 +00:00
Fixup for Windows build concerning GLEWAPIENTRY
This commit is contained in:
parent
a6423f4d98
commit
b850a88492
@ -1,6 +1,6 @@
|
|||||||
/* ------------------------------------------------------------------------ */
|
/* ------------------------------------------------------------------------ */
|
||||||
|
|
||||||
const GLubyte* glewGetErrorString (GLenum error)
|
const GLubyte * GLEWAPIENTRY glewGetErrorString (GLenum error)
|
||||||
{
|
{
|
||||||
static const GLubyte* _glewErrorString[] =
|
static const GLubyte* _glewErrorString[] =
|
||||||
{
|
{
|
||||||
@ -14,7 +14,7 @@ const GLubyte* glewGetErrorString (GLenum error)
|
|||||||
return _glewErrorString[(int)error > max_error ? max_error : (int)error];
|
return _glewErrorString[(int)error > max_error ? max_error : (int)error];
|
||||||
}
|
}
|
||||||
|
|
||||||
const GLubyte* glewGetString (GLenum name)
|
const GLubyte * GLEWAPIENTRY glewGetString (GLenum name)
|
||||||
{
|
{
|
||||||
static const GLubyte* _glewString[] =
|
static const GLubyte* _glewString[] =
|
||||||
{
|
{
|
||||||
@ -40,7 +40,7 @@ extern GLenum wglewContextInit (void);
|
|||||||
extern GLenum glxewContextInit (void);
|
extern GLenum glxewContextInit (void);
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
GLenum glewInit (void)
|
GLenum GLEWAPIENTRY glewInit (void)
|
||||||
{
|
{
|
||||||
GLenum r;
|
GLenum r;
|
||||||
r = glewContextInit();
|
r = glewContextInit();
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifdef GLEW_MX
|
#ifdef GLEW_MX
|
||||||
GLboolean glewContextIsSupported (const GLEWContext* ctx, const char* name)
|
GLboolean glewContextIsSupported (const GLEWContext* ctx, const char* name)
|
||||||
#else
|
#else
|
||||||
GLboolean glewIsSupported (const char* name)
|
GLboolean GLEWAPIENTRY glewIsSupported (const char* name)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
GLubyte* pos = (GLubyte*)name;
|
GLubyte* pos = (GLubyte*)name;
|
||||||
|
@ -42,7 +42,7 @@ GLEWAPI GLboolean GLEWAPIENTRY glewIsSupported (const char *name);
|
|||||||
|
|
||||||
#endif /* GLEW_MX */
|
#endif /* GLEW_MX */
|
||||||
|
|
||||||
GLEWAPI GLboolean GLEWAPIENTRY glewExperimental;
|
GLEWAPI GLboolean glewExperimental;
|
||||||
GLEWAPI GLboolean GLEWAPIENTRY glewGetExtension (const char *name);
|
GLEWAPI GLboolean GLEWAPIENTRY glewGetExtension (const char *name);
|
||||||
GLEWAPI const GLubyte * GLEWAPIENTRY glewGetErrorString (GLenum error);
|
GLEWAPI const GLubyte * GLEWAPIENTRY glewGetErrorString (GLenum error);
|
||||||
GLEWAPI const GLubyte * GLEWAPIENTRY glewGetString (GLenum name);
|
GLEWAPI const GLubyte * GLEWAPIENTRY glewGetString (GLenum name);
|
||||||
|
Loading…
Reference in New Issue
Block a user