2013-01-13 21:39:25 -05:00
|
|
|
/*
|
2014-02-11 01:07:04 -05:00
|
|
|
* Copyright 2011-2014 Branimir Karadzic. All rights reserved.
|
|
|
|
* License: http://www.opensource.org/licenses/BSD-2-Clause
|
|
|
|
*/
|
2013-01-13 21:39:25 -05:00
|
|
|
|
2014-02-19 02:36:13 -05:00
|
|
|
#if !defined(GL_IMPORT) && !defined(GL_EXTENSION)
|
|
|
|
# error GL_IMPORT or GL_EXTENSION must be defined!
|
|
|
|
#endif // !defined(GL_IMPORT) && !defined(GL_DEFINE)
|
|
|
|
|
|
|
|
#ifdef GL_EXTENSION
|
|
|
|
# undef GL_IMPORT
|
|
|
|
# define GL_IMPORT GL_EXTENSION
|
|
|
|
#else
|
|
|
|
# if !BGFX_USE_GL_DYNAMIC_LIB
|
|
|
|
# define GL_EXTENSION GL_IMPORT
|
|
|
|
# else
|
|
|
|
# define GL_EXTENSION(_optional, _proto, _func, _import)
|
|
|
|
# endif // !BGFX_USE_GL_DYNAMIC_LIB
|
|
|
|
#endif // GL_EXTENSION
|
|
|
|
|
|
|
|
#ifndef GL_IMPORT_TYPEDEFS
|
|
|
|
# define GL_IMPORT_TYPEDEFS 0
|
|
|
|
#endif // GL_IMPORT_TYPEDEFS
|
2013-01-13 21:39:25 -05:00
|
|
|
|
2014-02-20 02:49:28 -05:00
|
|
|
#define GL_IMPORT______(_optional, _proto, _func) GL_IMPORT(_optional, _proto, _func, _func)
|
|
|
|
#define GL_IMPORT_ANGLE(_optional, _proto, _func) GL_EXTENSION(_optional, _proto, _func, _func ## ANGLE)
|
|
|
|
#define GL_IMPORT_ARB__(_optional, _proto, _func) GL_EXTENSION(_optional, _proto, _func, _func ## ARB)
|
|
|
|
#define GL_IMPORT_EXT__(_optional, _proto, _func) GL_EXTENSION(_optional, _proto, _func, _func ## EXT)
|
2014-02-21 02:03:31 -05:00
|
|
|
#define GL_IMPORT_NV___(_optional, _proto, _func) GL_EXTENSION(_optional, _proto, _func, _func ## NV)
|
2014-02-20 02:49:28 -05:00
|
|
|
#define GL_IMPORT_OES__(_optional, _proto, _func) GL_EXTENSION(_optional, _proto, _func, _func ## OES)
|
2014-02-21 02:03:31 -05:00
|
|
|
#define GL_IMPORT_____x(_optional, _proto, _func) GL_EXTENSION(_optional, _proto, _func, _func ## XXXXX)
|
2013-12-08 01:01:32 -05:00
|
|
|
|
2014-02-19 02:36:13 -05:00
|
|
|
#if GL_IMPORT_TYPEDEFS
|
|
|
|
typedef void (GL_APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar *name);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLBINDTEXTUREPROC) (GLenum target, GLuint texture);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLBINDVERTEXARRAYPROC) (GLuint array);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLBLENDFUNCPROC) (GLenum sfactor, GLenum dfactor);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
|
|
|
|
typedef GLenum (GL_APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLCLEARPROC) (GLbitfield mask);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLCLEARCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
|
2014-02-19 23:08:22 -05:00
|
|
|
typedef void (GL_APIENTRYP PFNGLCLEARDEPTHPROC) (GLdouble d);
|
2014-02-19 02:36:13 -05:00
|
|
|
typedef void (GL_APIENTRYP PFNGLCLEARDEPTHFPROC) (GLfloat d);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLCLEARSTENCILPROC) (GLint s);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLCOLORMASKPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
|
|
|
|
typedef GLuint (GL_APIENTRYP PFNGLCREATEPROGRAMPROC) (void);
|
|
|
|
typedef GLuint (GL_APIENTRYP PFNGLCREATESHADERPROC) (GLenum type);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLCULLFACEPROC) (GLenum mode);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLDELETESAMPLERSPROC) (GLsizei count, const GLuint *samplers);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLDELETETEXTURESPROC) (GLsizei n, const GLuint *textures);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLDEPTHFUNCPROC) (GLenum func);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLDEPTHMASKPROC) (GLboolean flag);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLDISABLEPROC) (GLenum cap);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLDRAWARRAYSPROC) (GLenum mode, GLint first, GLsizei count);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
|
2014-02-25 01:00:26 -05:00
|
|
|
typedef void (GL_APIENTRYP PFNGLDRAWBUFFERPROC) (GLenum mode);
|
2014-02-19 02:36:13 -05:00
|
|
|
typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLENABLEPROC) (GLenum cap);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLENDQUERYPROC) (GLenum target);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLGENSAMPLERSPROC) (GLsizei count, GLuint *samplers);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLGENTEXTURESPROC) (GLsizei n, GLuint *textures);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
|
|
|
|
typedef GLint (GL_APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
|
|
|
|
typedef GLenum (GL_APIENTRYP PFNGLGETERRORPROC) (void);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLGETFLOATVPROC) (GLenum pname, GLfloat *data);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLGETINTEGERVPROC) (GLenum pname, GLint *data);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLGETPROGRAMBINARYPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64 *params);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64 *params);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
|
|
|
|
typedef const GLubyte* (GL_APIENTRYP PFNGLGETSTRINGPROC) (GLenum name);
|
|
|
|
typedef GLint (GL_APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLPIXELSTOREIPROC) (GLenum pname, GLint param);
|
2014-02-19 23:08:22 -05:00
|
|
|
typedef void (GL_APIENTRYP PFNGLPOINTSIZEPROC) (GLfloat size);
|
2014-02-19 02:36:13 -05:00
|
|
|
typedef void (GL_APIENTRYP PFNGLPROGRAMBINARYPROC) (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLQUERYCOUNTERPROC) (GLuint id, GLenum target);
|
2014-02-25 01:00:26 -05:00
|
|
|
typedef void (GL_APIENTRYP PFNGLREADBUFFERPROC) (GLenum mode);
|
2014-02-19 02:36:13 -05:00
|
|
|
typedef void (GL_APIENTRYP PFNGLREADPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLSCISSORPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLSTENCILFUNCPROC) (GLenum func, GLint ref, GLuint mask);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLSTENCILMASKPROC) (GLuint mask);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLSTENCILOPPROC) (GLenum fail, GLenum zfail, GLenum zpass);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLTEXIMAGE2DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLTEXPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat param);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLTEXPARAMETERIPROC) (GLenum target, GLenum pname, GLint param);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLTEXPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
|
2014-02-23 14:21:23 -05:00
|
|
|
typedef void (GL_APIENTRYP PFNGLTEXSTORAGE2DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLTEXSTORAGE3DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
|
2014-02-19 02:36:13 -05:00
|
|
|
typedef void (GL_APIENTRYP PFNGLTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLVIEWPORTPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
|
2013-01-13 21:39:25 -05:00
|
|
|
|
2014-02-19 02:36:13 -05:00
|
|
|
typedef void (GL_APIENTRYP PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC)(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
|
2014-02-21 02:03:31 -05:00
|
|
|
typedef void (GL_APIENTRYP PFNGLSTRINGMARKERGREMEDYPROC) (GLsizei len, const void *string);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLFRAMETERMINATORGREMEDYPROC) (void);
|
2014-03-05 01:20:37 -05:00
|
|
|
|
|
|
|
typedef void (GL_APIENTRYP PFNGLINSERTEVENTMARKEREXTPROC) (GLsizei length, const GLchar *marker);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLPUSHGROUPMARKEREXTPROC) (GLsizei length, const GLchar *marker);
|
|
|
|
typedef void (GL_APIENTRYP PFNGLPOPGROUPMARKEREXTPROC) (void);
|
2014-02-19 02:36:13 -05:00
|
|
|
#endif // GL_IMPORT_TYPEDEFS
|
|
|
|
|
|
|
|
#if BGFX_USE_GL_DYNAMIC_LIB
|
2014-02-20 02:49:28 -05:00
|
|
|
GL_IMPORT______(false, PFNGLACTIVETEXTUREPROC, glActiveTexture);
|
|
|
|
GL_IMPORT______(false, PFNGLATTACHSHADERPROC, glAttachShader);
|
|
|
|
GL_IMPORT______(true, PFNGLBEGINQUERYPROC, glBeginQuery);
|
|
|
|
GL_IMPORT______(false, PFNGLBINDBUFFERPROC, glBindBuffer);
|
|
|
|
GL_IMPORT______(true, PFNGLBINDFRAGDATALOCATIONPROC, glBindFragDataLocation);
|
|
|
|
GL_IMPORT______(true, PFNGLBINDFRAMEBUFFERPROC, glBindFramebuffer);
|
|
|
|
GL_IMPORT______(true, PFNGLBINDRENDERBUFFERPROC, glBindRenderbuffer);
|
|
|
|
GL_IMPORT______(true, PFNGLBINDSAMPLERPROC, glBindSampler);
|
|
|
|
GL_IMPORT______(false, PFNGLBINDTEXTUREPROC, glBindTexture);
|
|
|
|
GL_IMPORT______(true, PFNGLBINDVERTEXARRAYPROC, glBindVertexArray);
|
|
|
|
GL_IMPORT______(true, PFNGLBLENDCOLORPROC, glBlendColor);
|
|
|
|
GL_IMPORT______(false, PFNGLBLENDEQUATIONPROC, glBlendEquation);
|
|
|
|
GL_IMPORT______(true, PFNGLBLENDEQUATIONSEPARATEPROC, glBlendEquationSeparate);
|
|
|
|
GL_IMPORT______(false, PFNGLBLENDFUNCPROC, glBlendFunc);
|
|
|
|
GL_IMPORT______(true, PFNGLBLENDFUNCSEPARATEPROC, glBlendFuncSeparate);
|
|
|
|
GL_IMPORT______(true, PFNGLBLITFRAMEBUFFERPROC, glBlitFramebuffer);
|
|
|
|
GL_IMPORT______(false, PFNGLBUFFERDATAPROC, glBufferData);
|
|
|
|
GL_IMPORT______(false, PFNGLBUFFERSUBDATAPROC, glBufferSubData);
|
|
|
|
GL_IMPORT______(true, PFNGLCHECKFRAMEBUFFERSTATUSPROC, glCheckFramebufferStatus);
|
|
|
|
GL_IMPORT______(false, PFNGLCLEARPROC, glClear);
|
|
|
|
GL_IMPORT______(false, PFNGLCLEARCOLORPROC, glClearColor);
|
|
|
|
GL_IMPORT______(false, PFNGLCLEARSTENCILPROC, glClearStencil);
|
|
|
|
GL_IMPORT______(false, PFNGLCOLORMASKPROC, glColorMask);
|
|
|
|
GL_IMPORT______(false, PFNGLCOMPILESHADERPROC, glCompileShader);
|
|
|
|
GL_IMPORT______(false, PFNGLCOMPRESSEDTEXIMAGE2DPROC, glCompressedTexImage2D);
|
|
|
|
GL_IMPORT______(false, PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC, glCompressedTexSubImage2D);
|
|
|
|
GL_IMPORT______(true , PFNGLCOMPRESSEDTEXIMAGE3DPROC, glCompressedTexImage3D);
|
|
|
|
GL_IMPORT______(true , PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC, glCompressedTexSubImage3D);
|
|
|
|
GL_IMPORT______(false, PFNGLCREATEPROGRAMPROC, glCreateProgram);
|
|
|
|
GL_IMPORT______(false, PFNGLCREATESHADERPROC, glCreateShader);
|
|
|
|
GL_IMPORT______(false, PFNGLCULLFACEPROC, glCullFace);
|
|
|
|
GL_IMPORT______(false, PFNGLDELETEBUFFERSPROC, glDeleteBuffers);
|
|
|
|
GL_IMPORT______(true, PFNGLDELETEFRAMEBUFFERSPROC, glDeleteFramebuffers);
|
|
|
|
GL_IMPORT______(false, PFNGLDELETEPROGRAMPROC, glDeleteProgram);
|
|
|
|
GL_IMPORT______(true, PFNGLDELETEQUERIESPROC, glDeleteQueries);
|
|
|
|
GL_IMPORT______(true, PFNGLDELETERENDERBUFFERSPROC, glDeleteRenderbuffers);
|
|
|
|
GL_IMPORT______(true, PFNGLDELETESAMPLERSPROC, glDeleteSamplers);
|
|
|
|
GL_IMPORT______(false, PFNGLDELETESHADERPROC, glDeleteShader);
|
|
|
|
GL_IMPORT______(false, PFNGLDELETETEXTURESPROC, glDeleteTextures);
|
|
|
|
GL_IMPORT______(true, PFNGLDELETEVERTEXARRAYSPROC, glDeleteVertexArrays);
|
|
|
|
GL_IMPORT______(false, PFNGLDEPTHFUNCPROC, glDepthFunc);
|
|
|
|
GL_IMPORT______(false, PFNGLDEPTHMASKPROC, glDepthMask);
|
|
|
|
GL_IMPORT______(false, PFNGLDETACHSHADERPROC, glDetachShader);
|
|
|
|
GL_IMPORT______(false, PFNGLDISABLEPROC, glDisable);
|
|
|
|
GL_IMPORT______(false, PFNGLDISABLEVERTEXATTRIBARRAYPROC, glDisableVertexAttribArray);
|
|
|
|
GL_IMPORT______(false, PFNGLDRAWARRAYSPROC, glDrawArrays);
|
|
|
|
GL_IMPORT______(true, PFNGLDRAWARRAYSINSTANCEDPROC, glDrawArraysInstanced);
|
2014-02-25 01:00:26 -05:00
|
|
|
GL_IMPORT______(true, PFNGLDRAWBUFFERPROC, glDrawBuffer);
|
2014-02-20 02:49:28 -05:00
|
|
|
GL_IMPORT______(false, PFNGLDRAWELEMENTSPROC, glDrawElements);
|
|
|
|
GL_IMPORT______(true, PFNGLDRAWELEMENTSINSTANCEDPROC, glDrawElementsInstanced);
|
|
|
|
GL_IMPORT______(false, PFNGLENABLEPROC, glEnable);
|
|
|
|
GL_IMPORT______(false, PFNGLENABLEVERTEXATTRIBARRAYPROC, glEnableVertexAttribArray);
|
|
|
|
GL_IMPORT______(true, PFNGLENDQUERYPROC, glEndQuery);
|
|
|
|
GL_IMPORT______(true, PFNGLFRAMEBUFFERRENDERBUFFERPROC, glFramebufferRenderbuffer);
|
|
|
|
GL_IMPORT______(true, PFNGLFRAMEBUFFERTEXTURE2DPROC, glFramebufferTexture2D);
|
|
|
|
GL_IMPORT______(false, PFNGLGENBUFFERSPROC, glGenBuffers);
|
|
|
|
GL_IMPORT______(true, PFNGLGENFRAMEBUFFERSPROC, glGenFramebuffers);
|
|
|
|
GL_IMPORT______(true, PFNGLGENRENDERBUFFERSPROC, glGenRenderbuffers);
|
|
|
|
GL_IMPORT______(true, PFNGLGENQUERIESPROC, glGenQueries);
|
|
|
|
GL_IMPORT______(true, PFNGLGENSAMPLERSPROC, glGenSamplers);
|
|
|
|
GL_IMPORT______(false, PFNGLGENTEXTURESPROC, glGenTextures);
|
|
|
|
GL_IMPORT______(true, PFNGLGENVERTEXARRAYSPROC, glGenVertexArrays);
|
|
|
|
GL_IMPORT______(false, PFNGLGETACTIVEATTRIBPROC, glGetActiveAttrib);
|
|
|
|
GL_IMPORT______(false, PFNGLGETATTRIBLOCATIONPROC, glGetAttribLocation);
|
|
|
|
GL_IMPORT______(false, PFNGLGETACTIVEUNIFORMPROC, glGetActiveUniform);
|
|
|
|
GL_IMPORT______(false, PFNGLGETERRORPROC, glGetError);
|
|
|
|
GL_IMPORT______(false, PFNGLGETFLOATVPROC, glGetFloatv);
|
|
|
|
GL_IMPORT______(false, PFNGLGETINTEGERVPROC, glGetIntegerv);
|
|
|
|
GL_IMPORT______(true, PFNGLGETPROGRAMBINARYPROC, glGetProgramBinary);
|
|
|
|
GL_IMPORT______(false, PFNGLGETPROGRAMIVPROC, glGetProgramiv);
|
|
|
|
GL_IMPORT______(false, PFNGLGETPROGRAMINFOLOGPROC, glGetProgramInfoLog);
|
|
|
|
GL_IMPORT______(true, PFNGLGETQUERYIVPROC, glGetQueryiv);
|
|
|
|
GL_IMPORT______(true, PFNGLGETQUERYOBJECTIVPROC, glGetQueryObjectiv);
|
|
|
|
GL_IMPORT______(true, PFNGLGETQUERYOBJECTI64VPROC, glGetQueryObjecti64v);
|
|
|
|
GL_IMPORT______(true, PFNGLGETQUERYOBJECTUIVPROC, glGetQueryObjectuiv);
|
|
|
|
GL_IMPORT______(true, PFNGLGETQUERYOBJECTUI64VPROC, glGetQueryObjectui64v);
|
|
|
|
GL_IMPORT______(false, PFNGLGETSHADERIVPROC, glGetShaderiv);
|
|
|
|
GL_IMPORT______(false, PFNGLGETSHADERINFOLOGPROC, glGetShaderInfoLog);
|
|
|
|
GL_IMPORT______(false, PFNGLGETSTRINGPROC, glGetString);
|
|
|
|
GL_IMPORT______(false, PFNGLGETUNIFORMLOCATIONPROC, glGetUniformLocation);
|
|
|
|
GL_IMPORT______(false, PFNGLLINKPROGRAMPROC, glLinkProgram);
|
|
|
|
GL_IMPORT______(false, PFNGLPIXELSTOREIPROC, glPixelStorei);
|
|
|
|
GL_IMPORT______(true, PFNGLPROGRAMBINARYPROC, glProgramBinary);
|
|
|
|
GL_IMPORT______(true, PFNGLPROGRAMPARAMETERIPROC, glProgramParameteri);
|
|
|
|
GL_IMPORT______(true, PFNGLQUERYCOUNTERPROC, glQueryCounter);
|
2014-02-25 01:00:26 -05:00
|
|
|
GL_IMPORT______(true, PFNGLREADBUFFERPROC, glReadBuffer);
|
2014-02-20 02:49:28 -05:00
|
|
|
GL_IMPORT______(false, PFNGLREADPIXELSPROC, glReadPixels);
|
|
|
|
GL_IMPORT______(true, PFNGLRENDERBUFFERSTORAGEPROC, glRenderbufferStorage);
|
|
|
|
GL_IMPORT______(true, PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC, glRenderbufferStorageMultisample);
|
|
|
|
GL_IMPORT______(true, PFNGLSAMPLERPARAMETERIPROC, glSamplerParameteri);
|
|
|
|
GL_IMPORT______(true, PFNGLSAMPLERPARAMETERFPROC, glSamplerParameterf);
|
|
|
|
GL_IMPORT______(false, PFNGLSCISSORPROC, glScissor);
|
|
|
|
GL_IMPORT______(false, PFNGLSHADERSOURCEPROC, glShaderSource);
|
|
|
|
GL_IMPORT______(false, PFNGLSTENCILFUNCPROC, glStencilFunc);
|
|
|
|
GL_IMPORT______(true, PFNGLSTENCILFUNCSEPARATEPROC, glStencilFuncSeparate);
|
|
|
|
GL_IMPORT______(false, PFNGLSTENCILMASKPROC, glStencilMask);
|
|
|
|
GL_IMPORT______(true, PFNGLSTENCILMASKSEPARATEPROC, glStencilMaskSeparate);
|
|
|
|
GL_IMPORT______(false, PFNGLSTENCILOPPROC, glStencilOp);
|
|
|
|
GL_IMPORT______(true, PFNGLSTENCILOPSEPARATEPROC, glStencilOpSeparate);
|
|
|
|
GL_IMPORT______(false, PFNGLTEXIMAGE2DPROC, glTexImage2D);
|
|
|
|
GL_IMPORT______(true, PFNGLTEXIMAGE3DPROC, glTexImage3D);
|
|
|
|
GL_IMPORT______(false, PFNGLTEXPARAMETERIPROC, glTexParameteri);
|
|
|
|
GL_IMPORT______(false, PFNGLTEXPARAMETERIVPROC, glTexParameteriv);
|
|
|
|
GL_IMPORT______(false, PFNGLTEXPARAMETERFPROC, glTexParameterf);
|
2014-02-23 14:21:23 -05:00
|
|
|
GL_IMPORT______(true, PFNGLTEXSTORAGE2DPROC, glTexStorage2D);
|
|
|
|
GL_IMPORT______(true, PFNGLTEXSTORAGE3DPROC, glTexStorage3D);
|
2014-02-20 02:49:28 -05:00
|
|
|
GL_IMPORT______(false, PFNGLTEXSUBIMAGE2DPROC, glTexSubImage2D);
|
|
|
|
GL_IMPORT______(true, PFNGLTEXSUBIMAGE3DPROC, glTexSubImage3D);
|
|
|
|
GL_IMPORT______(false, PFNGLUNIFORM1IPROC, glUniform1i);
|
|
|
|
GL_IMPORT______(false, PFNGLUNIFORM1IVPROC, glUniform1iv);
|
|
|
|
GL_IMPORT______(false, PFNGLUNIFORM1FPROC, glUniform1f);
|
|
|
|
GL_IMPORT______(false, PFNGLUNIFORM1FVPROC, glUniform1fv);
|
|
|
|
GL_IMPORT______(false, PFNGLUNIFORM2FVPROC, glUniform2fv);
|
|
|
|
GL_IMPORT______(false, PFNGLUNIFORM3FVPROC, glUniform3fv);
|
|
|
|
GL_IMPORT______(false, PFNGLUNIFORM4FVPROC, glUniform4fv);
|
|
|
|
GL_IMPORT______(false, PFNGLUNIFORMMATRIX3FVPROC, glUniformMatrix3fv);
|
|
|
|
GL_IMPORT______(false, PFNGLUNIFORMMATRIX4FVPROC, glUniformMatrix4fv);
|
|
|
|
GL_IMPORT______(false, PFNGLUSEPROGRAMPROC, glUseProgram);
|
|
|
|
GL_IMPORT______(true, PFNGLVERTEXATTRIBDIVISORPROC, glVertexAttribDivisor);
|
|
|
|
GL_IMPORT______(false, PFNGLVERTEXATTRIBPOINTERPROC, glVertexAttribPointer);
|
|
|
|
GL_IMPORT______(false, PFNGLVERTEXATTRIB1FPROC, glVertexAttrib1f);
|
|
|
|
GL_IMPORT______(false, PFNGLVERTEXATTRIB2FPROC, glVertexAttrib2f);
|
|
|
|
GL_IMPORT______(false, PFNGLVERTEXATTRIB3FPROC, glVertexAttrib3f);
|
|
|
|
GL_IMPORT______(false, PFNGLVERTEXATTRIB4FPROC, glVertexAttrib4f);
|
|
|
|
GL_IMPORT______(false, PFNGLVIEWPORTPROC, glViewport);
|
2013-12-08 01:01:32 -05:00
|
|
|
|
2014-02-19 02:36:13 -05:00
|
|
|
# if BGFX_CONFIG_RENDERER_OPENGL
|
2014-02-20 02:49:28 -05:00
|
|
|
GL_IMPORT______(false, PFNGLCLEARDEPTHPROC, glClearDepth);
|
|
|
|
GL_IMPORT______(false, PFNGLPOINTSIZEPROC, glPointSize);
|
2013-12-08 01:01:32 -05:00
|
|
|
|
2014-02-20 02:49:28 -05:00
|
|
|
GL_IMPORT (true, PFNGLDEBUGMESSAGECONTROLARBPROC, glDebugMessageControl, glDebugMessageControlARB);
|
|
|
|
GL_IMPORT (true, PFNGLDEBUGMESSAGEINSERTARBPROC, glDebugMessageInsert, glDebugMessageInsertARB);
|
|
|
|
GL_IMPORT (true, PFNGLDEBUGMESSAGECALLBACKARBPROC, glDebugMessageCallback, glDebugMessageCallbackARB);
|
|
|
|
GL_IMPORT (true, PFNGLGETDEBUGMESSAGELOGARBPROC, glGetDebugMessageLog, glGetDebugMessageLogARB);
|
2013-12-08 01:01:32 -05:00
|
|
|
|
2014-02-20 02:49:28 -05:00
|
|
|
GL_IMPORT_ARB__(true, PFNGLVERTEXATTRIBDIVISORPROC, glVertexAttribDivisor);
|
|
|
|
GL_IMPORT_ARB__(true, PFNGLDRAWARRAYSINSTANCEDPROC, glDrawArraysInstanced);
|
|
|
|
GL_IMPORT_ARB__(true, PFNGLDRAWELEMENTSINSTANCEDPROC, glDrawElementsInstanced);
|
2014-02-19 02:36:13 -05:00
|
|
|
|
2014-02-20 02:49:28 -05:00
|
|
|
GL_IMPORT_EXT__(true, PFNGLBINDFRAMEBUFFERPROC, glBindFramebuffer);
|
|
|
|
GL_IMPORT_EXT__(true, PFNGLGENFRAMEBUFFERSPROC, glGenFramebuffers);
|
|
|
|
GL_IMPORT_EXT__(true, PFNGLDELETEFRAMEBUFFERSPROC, glDeleteFramebuffers);
|
|
|
|
GL_IMPORT_EXT__(true, PFNGLCHECKFRAMEBUFFERSTATUSPROC, glCheckFramebufferStatus);
|
|
|
|
GL_IMPORT_EXT__(true, PFNGLFRAMEBUFFERRENDERBUFFERPROC, glFramebufferRenderbuffer);
|
|
|
|
GL_IMPORT_EXT__(true, PFNGLFRAMEBUFFERTEXTURE2DPROC, glFramebufferTexture2D);
|
|
|
|
GL_IMPORT_EXT__(true, PFNGLBINDRENDERBUFFERPROC, glBindRenderbuffer);
|
|
|
|
GL_IMPORT_EXT__(true, PFNGLGENRENDERBUFFERSPROC, glGenRenderbuffers);
|
|
|
|
GL_IMPORT_EXT__(true, PFNGLDELETERENDERBUFFERSPROC, glDeleteRenderbuffers);
|
|
|
|
GL_IMPORT_EXT__(true, PFNGLRENDERBUFFERSTORAGEPROC, glRenderbufferStorage);
|
|
|
|
GL_IMPORT_EXT__(true, PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC, glRenderbufferStorageMultisample);
|
2014-03-05 01:20:37 -05:00
|
|
|
|
2014-02-19 02:36:13 -05:00
|
|
|
# else // GLES
|
2014-02-20 02:49:28 -05:00
|
|
|
GL_IMPORT______(false, PFNGLCLEARDEPTHFPROC, glClearDepthf);
|
2014-02-19 02:36:13 -05:00
|
|
|
# endif // BGFX_CONFIG_RENDERER_OPENGL
|
|
|
|
|
2014-03-05 01:20:37 -05:00
|
|
|
GL_IMPORT______(true, PFNGLINSERTEVENTMARKEREXTPROC, glInsertEventMarker);
|
|
|
|
GL_IMPORT______(true, PFNGLPUSHGROUPMARKEREXTPROC, glPushGroupMarker);
|
|
|
|
GL_IMPORT______(true, PFNGLPOPGROUPMARKEREXTPROC, glPopGroupMarker);
|
2014-02-19 02:36:13 -05:00
|
|
|
#endif // BGFX_USE_GL_DYNAMIC_LIB
|
2013-07-25 00:59:59 -04:00
|
|
|
|
2014-02-20 02:49:28 -05:00
|
|
|
GL_IMPORT______(true, PFNGLSTRINGMARKERGREMEDYPROC, glStringMarkerGREMEDY);
|
|
|
|
GL_IMPORT______(true, PFNGLFRAMETERMINATORGREMEDYPROC, glFrameTerminatorGREMEDY);
|
2014-02-27 23:12:17 -05:00
|
|
|
GL_IMPORT______(true, PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC, glGetTranslatedShaderSourceANGLE);
|
2013-01-13 21:39:25 -05:00
|
|
|
|
2014-02-19 02:36:13 -05:00
|
|
|
#if !BGFX_CONFIG_RENDERER_OPENGL
|
2014-02-20 02:49:28 -05:00
|
|
|
GL_IMPORT_ANGLE(true, PFNGLBLITFRAMEBUFFERPROC, glBlitFramebuffer);
|
|
|
|
GL_IMPORT_ANGLE(true, PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC, glRenderbufferStorageMultisample);
|
2013-01-13 21:39:25 -05:00
|
|
|
|
2014-02-19 02:36:13 -05:00
|
|
|
# if BGFX_CONFIG_RENDERER_OPENGLES2
|
2014-02-20 02:49:28 -05:00
|
|
|
GL_IMPORT_OES__(true, PFNGLTEXIMAGE3DPROC, glTexImage3D);
|
|
|
|
GL_IMPORT_OES__(true, PFNGLTEXSUBIMAGE3DPROC, glTexSubImage3D);
|
|
|
|
GL_IMPORT_OES__(true, PFNGLCOMPRESSEDTEXIMAGE3DPROC, glCompressedTexImage3D);
|
|
|
|
GL_IMPORT_OES__(true, PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC, glCompressedTexSubImage3D);
|
2013-01-13 21:39:25 -05:00
|
|
|
|
2014-02-23 14:21:23 -05:00
|
|
|
GL_IMPORT_EXT__(true, PFNGLTEXSTORAGE2DPROC, glTexStorage2D);
|
|
|
|
GL_IMPORT_EXT__(true, PFNGLTEXSTORAGE3DPROC, glTexStorage3D);
|
|
|
|
|
2014-03-05 01:20:37 -05:00
|
|
|
GL_IMPORT_EXT__(true, PFNGLINSERTEVENTMARKEREXTPROC, glInsertEventMarker);
|
|
|
|
GL_IMPORT_EXT__(true, PFNGLPUSHGROUPMARKEREXTPROC, glPushGroupMarker);
|
|
|
|
GL_IMPORT_EXT__(true, PFNGLPOPGROUPMARKEREXTPROC, glPopGroupMarker);
|
|
|
|
|
2014-02-20 02:49:28 -05:00
|
|
|
GL_IMPORT_OES__(true, PFNGLGETPROGRAMBINARYPROC, glGetProgramBinary);
|
|
|
|
GL_IMPORT_OES__(true, PFNGLPROGRAMBINARYPROC, glProgramBinary);
|
2014-02-19 02:36:13 -05:00
|
|
|
|
2014-02-20 02:49:28 -05:00
|
|
|
GL_IMPORT_OES__(true, PFNGLVERTEXATTRIBDIVISORPROC, glVertexAttribDivisor);
|
|
|
|
GL_IMPORT_OES__(true, PFNGLDRAWARRAYSINSTANCEDPROC, glDrawArraysInstanced);
|
|
|
|
GL_IMPORT_OES__(true, PFNGLDRAWELEMENTSINSTANCEDPROC, glDrawElementsInstanced);
|
2014-02-19 02:36:13 -05:00
|
|
|
|
2014-02-20 02:49:28 -05:00
|
|
|
GL_IMPORT_OES__(true, PFNGLBINDVERTEXARRAYPROC, glBindVertexArray);
|
|
|
|
GL_IMPORT_OES__(true, PFNGLDELETEVERTEXARRAYSPROC, glDeleteVertexArrays);
|
|
|
|
GL_IMPORT_OES__(true, PFNGLGENVERTEXARRAYSPROC, glGenVertexArrays);
|
2014-02-21 02:03:31 -05:00
|
|
|
|
2014-02-26 00:33:16 -05:00
|
|
|
GL_IMPORT_____x(true, PFNGLDRAWBUFFERPROC, glDrawBuffer);
|
|
|
|
GL_IMPORT_____x(true, PFNGLREADBUFFERPROC, glReadBuffer);
|
2014-02-21 02:03:31 -05:00
|
|
|
GL_IMPORT_____x(true, PFNGLGENSAMPLERSPROC, glGenSamplers);
|
|
|
|
GL_IMPORT_____x(true, PFNGLDELETESAMPLERSPROC, glDeleteSamplers);
|
|
|
|
GL_IMPORT_____x(true, PFNGLBINDSAMPLERPROC, glBindSampler);
|
|
|
|
GL_IMPORT_____x(true, PFNGLSAMPLERPARAMETERFPROC, glSamplerParameterf);
|
|
|
|
GL_IMPORT_____x(true, PFNGLSAMPLERPARAMETERIPROC, glSamplerParameteri);
|
|
|
|
|
|
|
|
GL_IMPORT_NV___(true, PFNGLGENQUERIESPROC, glGenQueries);
|
|
|
|
GL_IMPORT_NV___(true, PFNGLDELETEQUERIESPROC, glDeleteQueries);
|
|
|
|
GL_IMPORT_NV___(true, PFNGLBEGINQUERYPROC, glBeginQuery);
|
|
|
|
GL_IMPORT_NV___(true, PFNGLENDQUERYPROC, glEndQuery);
|
|
|
|
GL_IMPORT_NV___(true, PFNGLGETQUERYOBJECTUI64VPROC, glGetQueryObjectui64v);
|
|
|
|
|
2014-02-19 02:36:13 -05:00
|
|
|
# endif // BGFX_CONFIG_RENDERER_OPENGLES2
|
|
|
|
#endif // !BGFX_CONFIG_RENDERER_OPENGL
|
2013-12-08 01:01:32 -05:00
|
|
|
|
2014-02-19 02:36:13 -05:00
|
|
|
#undef GL_IMPORT_TYPEDEFS
|
|
|
|
#undef GL_IMPORT
|
|
|
|
#undef GL_EXTENSION
|
2014-02-20 02:49:28 -05:00
|
|
|
#undef GL_IMPORT______
|
|
|
|
#undef GL_IMPORT_ARB__
|
|
|
|
#undef GL_IMPORT_EXT__
|
2014-02-21 02:03:31 -05:00
|
|
|
#undef GL_IMPORT_NV___
|
2014-02-20 02:49:28 -05:00
|
|
|
#undef GL_IMPORT_OES__
|
2014-02-21 02:03:31 -05:00
|
|
|
#undef GL_IMPORT_____x
|