mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-24 06:45:07 +00:00
Extend GLEW API to support glewContextInit - GL without implied GLX, WGL, EGL initialisation
This commit is contained in:
parent
6f31e134f6
commit
584a266e71
@ -73,7 +73,7 @@ GLboolean GLEWAPIENTRY glewGetExtension (const char* name)
|
|||||||
typedef const GLubyte* (GLAPIENTRY * PFNGLGETSTRINGPROC) (GLenum name);
|
typedef const GLubyte* (GLAPIENTRY * PFNGLGETSTRINGPROC) (GLenum name);
|
||||||
typedef void (GLAPIENTRY * PFNGLGETINTEGERVPROC) (GLenum pname, GLint *params);
|
typedef void (GLAPIENTRY * PFNGLGETINTEGERVPROC) (GLenum pname, GLint *params);
|
||||||
|
|
||||||
static GLenum GLEWAPIENTRY glewContextInit ()
|
GLenum GLEWAPIENTRY glewContextInit (void)
|
||||||
{
|
{
|
||||||
PFNGLGETSTRINGPROC getString;
|
PFNGLGETSTRINGPROC getString;
|
||||||
const GLubyte* s;
|
const GLubyte* s;
|
||||||
|
@ -27,6 +27,7 @@ VERSION_MICRO GLEW_VERSION_MICRO_STRING
|
|||||||
|
|
||||||
/* API */
|
/* API */
|
||||||
GLEWAPI GLenum GLEWAPIENTRY glewInit (void);
|
GLEWAPI GLenum GLEWAPIENTRY glewInit (void);
|
||||||
|
GLEWAPI GLenum GLEWAPIENTRY glewContextInit (void);
|
||||||
GLEWAPI GLboolean GLEWAPIENTRY glewIsSupported (const char *name);
|
GLEWAPI GLboolean GLEWAPIENTRY glewIsSupported (const char *name);
|
||||||
#define glewIsExtensionSupported(x) glewIsSupported(x)
|
#define glewIsExtensionSupported(x) glewIsSupported(x)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user