mirror of https://github.com/bjornbytes/lovr.git
Add ARB_viewport_array;
This commit is contained in:
parent
86c64e73c1
commit
7d5f2ba75a
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
|
||||
OpenGL, OpenGL ES loader generated by glad 0.1.25 on Sat Jul 21 12:02:43 2018.
|
||||
OpenGL, OpenGL ES loader generated by glad 0.1.25 on Sat Jul 21 14:28:38 2018.
|
||||
|
||||
Language/Generator: C/C++
|
||||
Specification: gl
|
||||
|
@ -8,6 +8,7 @@
|
|||
Profile: core
|
||||
Extensions:
|
||||
GL_ARB_texture_storage,
|
||||
GL_ARB_viewport_array,
|
||||
GL_EXT_texture_compression_s3tc,
|
||||
GL_EXT_texture_filter_anisotropic,
|
||||
GL_EXT_texture_sRGB,
|
||||
|
@ -18,9 +19,9 @@
|
|||
Omit khrplatform: True
|
||||
|
||||
Commandline:
|
||||
--profile="core" --api="gl=3.3,gles2=3.0" --generator="c" --spec="gl" --no-loader --local-files --omit-khrplatform --extensions="GL_ARB_texture_storage,GL_EXT_texture_compression_s3tc,GL_EXT_texture_filter_anisotropic,GL_EXT_texture_sRGB,GL_NV_stereo_view_rendering,GL_NV_viewport_array2"
|
||||
--profile="core" --api="gl=3.3,gles2=3.0" --generator="c" --spec="gl" --no-loader --local-files --omit-khrplatform --extensions="GL_ARB_texture_storage,GL_ARB_viewport_array,GL_EXT_texture_compression_s3tc,GL_EXT_texture_filter_anisotropic,GL_EXT_texture_sRGB,GL_NV_stereo_view_rendering,GL_NV_viewport_array2"
|
||||
Online:
|
||||
http://glad.dav1d.de/#profile=core&language=c&specification=gl&api=gl%3D3.3&api=gles2%3D3.0&extensions=GL_ARB_texture_storage&extensions=GL_EXT_texture_compression_s3tc&extensions=GL_EXT_texture_filter_anisotropic&extensions=GL_EXT_texture_sRGB&extensions=GL_NV_stereo_view_rendering&extensions=GL_NV_viewport_array2
|
||||
http://glad.dav1d.de/#profile=core&language=c&specification=gl&api=gl%3D3.3&api=gles2%3D3.0&extensions=GL_ARB_texture_storage&extensions=GL_ARB_viewport_array&extensions=GL_EXT_texture_compression_s3tc&extensions=GL_EXT_texture_filter_anisotropic&extensions=GL_EXT_texture_sRGB&extensions=GL_NV_stereo_view_rendering&extensions=GL_NV_viewport_array2
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -536,11 +537,22 @@ PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform;
|
|||
PFNGLFRONTFACEPROC glad_glFrontFace;
|
||||
int GLAD_GL_EXT_texture_sRGB;
|
||||
int GLAD_GL_EXT_texture_filter_anisotropic;
|
||||
int GLAD_GL_ARB_viewport_array;
|
||||
int GLAD_GL_NV_stereo_view_rendering;
|
||||
int GLAD_GL_NV_viewport_array2;
|
||||
int GLAD_GL_ARB_texture_storage;
|
||||
int GLAD_GL_EXT_texture_compression_s3tc;
|
||||
PFNGLTEXSTORAGE1DPROC glad_glTexStorage1D;
|
||||
PFNGLVIEWPORTARRAYVPROC glad_glViewportArrayv;
|
||||
PFNGLVIEWPORTINDEXEDFPROC glad_glViewportIndexedf;
|
||||
PFNGLVIEWPORTINDEXEDFVPROC glad_glViewportIndexedfv;
|
||||
PFNGLSCISSORARRAYVPROC glad_glScissorArrayv;
|
||||
PFNGLSCISSORINDEXEDPROC glad_glScissorIndexed;
|
||||
PFNGLSCISSORINDEXEDVPROC glad_glScissorIndexedv;
|
||||
PFNGLDEPTHRANGEARRAYVPROC glad_glDepthRangeArrayv;
|
||||
PFNGLDEPTHRANGEINDEXEDPROC glad_glDepthRangeIndexed;
|
||||
PFNGLGETFLOATI_VPROC glad_glGetFloati_v;
|
||||
PFNGLGETDOUBLEI_VPROC glad_glGetDoublei_v;
|
||||
static void load_GL_VERSION_1_0(GLADloadproc load) {
|
||||
if(!GLAD_GL_VERSION_1_0) return;
|
||||
glad_glCullFace = (PFNGLCULLFACEPROC)load("glCullFace");
|
||||
|
@ -960,9 +972,23 @@ static void load_GL_ARB_texture_storage(GLADloadproc load) {
|
|||
glad_glTexStorage2D = (PFNGLTEXSTORAGE2DPROC)load("glTexStorage2D");
|
||||
glad_glTexStorage3D = (PFNGLTEXSTORAGE3DPROC)load("glTexStorage3D");
|
||||
}
|
||||
static void load_GL_ARB_viewport_array(GLADloadproc load) {
|
||||
if(!GLAD_GL_ARB_viewport_array) return;
|
||||
glad_glViewportArrayv = (PFNGLVIEWPORTARRAYVPROC)load("glViewportArrayv");
|
||||
glad_glViewportIndexedf = (PFNGLVIEWPORTINDEXEDFPROC)load("glViewportIndexedf");
|
||||
glad_glViewportIndexedfv = (PFNGLVIEWPORTINDEXEDFVPROC)load("glViewportIndexedfv");
|
||||
glad_glScissorArrayv = (PFNGLSCISSORARRAYVPROC)load("glScissorArrayv");
|
||||
glad_glScissorIndexed = (PFNGLSCISSORINDEXEDPROC)load("glScissorIndexed");
|
||||
glad_glScissorIndexedv = (PFNGLSCISSORINDEXEDVPROC)load("glScissorIndexedv");
|
||||
glad_glDepthRangeArrayv = (PFNGLDEPTHRANGEARRAYVPROC)load("glDepthRangeArrayv");
|
||||
glad_glDepthRangeIndexed = (PFNGLDEPTHRANGEINDEXEDPROC)load("glDepthRangeIndexed");
|
||||
glad_glGetFloati_v = (PFNGLGETFLOATI_VPROC)load("glGetFloati_v");
|
||||
glad_glGetDoublei_v = (PFNGLGETDOUBLEI_VPROC)load("glGetDoublei_v");
|
||||
}
|
||||
static int find_extensionsGL(void) {
|
||||
if (!get_exts()) return 0;
|
||||
GLAD_GL_ARB_texture_storage = has_ext("GL_ARB_texture_storage");
|
||||
GLAD_GL_ARB_viewport_array = has_ext("GL_ARB_viewport_array");
|
||||
GLAD_GL_EXT_texture_compression_s3tc = has_ext("GL_EXT_texture_compression_s3tc");
|
||||
GLAD_GL_EXT_texture_filter_anisotropic = has_ext("GL_EXT_texture_filter_anisotropic");
|
||||
GLAD_GL_EXT_texture_sRGB = has_ext("GL_EXT_texture_sRGB");
|
||||
|
@ -1047,6 +1073,7 @@ int gladLoadGLLoader(GLADloadproc load) {
|
|||
|
||||
if (!find_extensionsGL()) return 0;
|
||||
load_GL_ARB_texture_storage(load);
|
||||
load_GL_ARB_viewport_array(load);
|
||||
return GLVersion.major != 0 || GLVersion.minor != 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
|
||||
OpenGL, OpenGL ES loader generated by glad 0.1.25 on Sat Jul 21 12:02:43 2018.
|
||||
OpenGL, OpenGL ES loader generated by glad 0.1.25 on Sat Jul 21 14:28:38 2018.
|
||||
|
||||
Language/Generator: C/C++
|
||||
Specification: gl
|
||||
|
@ -8,6 +8,7 @@
|
|||
Profile: core
|
||||
Extensions:
|
||||
GL_ARB_texture_storage,
|
||||
GL_ARB_viewport_array,
|
||||
GL_EXT_texture_compression_s3tc,
|
||||
GL_EXT_texture_filter_anisotropic,
|
||||
GL_EXT_texture_sRGB,
|
||||
|
@ -18,9 +19,9 @@
|
|||
Omit khrplatform: True
|
||||
|
||||
Commandline:
|
||||
--profile="core" --api="gl=3.3,gles2=3.0" --generator="c" --spec="gl" --no-loader --local-files --omit-khrplatform --extensions="GL_ARB_texture_storage,GL_EXT_texture_compression_s3tc,GL_EXT_texture_filter_anisotropic,GL_EXT_texture_sRGB,GL_NV_stereo_view_rendering,GL_NV_viewport_array2"
|
||||
--profile="core" --api="gl=3.3,gles2=3.0" --generator="c" --spec="gl" --no-loader --local-files --omit-khrplatform --extensions="GL_ARB_texture_storage,GL_ARB_viewport_array,GL_EXT_texture_compression_s3tc,GL_EXT_texture_filter_anisotropic,GL_EXT_texture_sRGB,GL_NV_stereo_view_rendering,GL_NV_viewport_array2"
|
||||
Online:
|
||||
http://glad.dav1d.de/#profile=core&language=c&specification=gl&api=gl%3D3.3&api=gles2%3D3.0&extensions=GL_ARB_texture_storage&extensions=GL_EXT_texture_compression_s3tc&extensions=GL_EXT_texture_filter_anisotropic&extensions=GL_EXT_texture_sRGB&extensions=GL_NV_stereo_view_rendering&extensions=GL_NV_viewport_array2
|
||||
http://glad.dav1d.de/#profile=core&language=c&specification=gl&api=gl%3D3.3&api=gles2%3D3.0&extensions=GL_ARB_texture_storage&extensions=GL_ARB_viewport_array&extensions=GL_EXT_texture_compression_s3tc&extensions=GL_EXT_texture_filter_anisotropic&extensions=GL_EXT_texture_sRGB&extensions=GL_NV_stereo_view_rendering&extensions=GL_NV_viewport_array2
|
||||
*/
|
||||
|
||||
|
||||
|
@ -2324,6 +2325,12 @@ typedef void (APIENTRYP PFNGLGETINTERNALFORMATIVPROC)(GLenum target, GLenum inte
|
|||
GLAPI PFNGLGETINTERNALFORMATIVPROC glad_glGetInternalformativ;
|
||||
#define glGetInternalformativ glad_glGetInternalformativ
|
||||
#endif
|
||||
#define GL_MAX_VIEWPORTS 0x825B
|
||||
#define GL_VIEWPORT_SUBPIXEL_BITS 0x825C
|
||||
#define GL_VIEWPORT_BOUNDS_RANGE 0x825D
|
||||
#define GL_LAYER_PROVOKING_VERTEX 0x825E
|
||||
#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F
|
||||
#define GL_UNDEFINED_VERTEX 0x8260
|
||||
#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
|
||||
#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1
|
||||
#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2
|
||||
|
@ -2353,6 +2360,40 @@ typedef void (APIENTRYP PFNGLTEXSTORAGE1DPROC)(GLenum target, GLsizei levels, GL
|
|||
GLAPI PFNGLTEXSTORAGE1DPROC glad_glTexStorage1D;
|
||||
#define glTexStorage1D glad_glTexStorage1D
|
||||
#endif
|
||||
#ifndef GL_ARB_viewport_array
|
||||
#define GL_ARB_viewport_array 1
|
||||
GLAPI int GLAD_GL_ARB_viewport_array;
|
||||
typedef void (APIENTRYP PFNGLVIEWPORTARRAYVPROC)(GLuint first, GLsizei count, const GLfloat *v);
|
||||
GLAPI PFNGLVIEWPORTARRAYVPROC glad_glViewportArrayv;
|
||||
#define glViewportArrayv glad_glViewportArrayv
|
||||
typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
|
||||
GLAPI PFNGLVIEWPORTINDEXEDFPROC glad_glViewportIndexedf;
|
||||
#define glViewportIndexedf glad_glViewportIndexedf
|
||||
typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFVPROC)(GLuint index, const GLfloat *v);
|
||||
GLAPI PFNGLVIEWPORTINDEXEDFVPROC glad_glViewportIndexedfv;
|
||||
#define glViewportIndexedfv glad_glViewportIndexedfv
|
||||
typedef void (APIENTRYP PFNGLSCISSORARRAYVPROC)(GLuint first, GLsizei count, const GLint *v);
|
||||
GLAPI PFNGLSCISSORARRAYVPROC glad_glScissorArrayv;
|
||||
#define glScissorArrayv glad_glScissorArrayv
|
||||
typedef void (APIENTRYP PFNGLSCISSORINDEXEDPROC)(GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
|
||||
GLAPI PFNGLSCISSORINDEXEDPROC glad_glScissorIndexed;
|
||||
#define glScissorIndexed glad_glScissorIndexed
|
||||
typedef void (APIENTRYP PFNGLSCISSORINDEXEDVPROC)(GLuint index, const GLint *v);
|
||||
GLAPI PFNGLSCISSORINDEXEDVPROC glad_glScissorIndexedv;
|
||||
#define glScissorIndexedv glad_glScissorIndexedv
|
||||
typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYVPROC)(GLuint first, GLsizei count, const GLdouble *v);
|
||||
GLAPI PFNGLDEPTHRANGEARRAYVPROC glad_glDepthRangeArrayv;
|
||||
#define glDepthRangeArrayv glad_glDepthRangeArrayv
|
||||
typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDPROC)(GLuint index, GLdouble n, GLdouble f);
|
||||
GLAPI PFNGLDEPTHRANGEINDEXEDPROC glad_glDepthRangeIndexed;
|
||||
#define glDepthRangeIndexed glad_glDepthRangeIndexed
|
||||
typedef void (APIENTRYP PFNGLGETFLOATI_VPROC)(GLenum target, GLuint index, GLfloat *data);
|
||||
GLAPI PFNGLGETFLOATI_VPROC glad_glGetFloati_v;
|
||||
#define glGetFloati_v glad_glGetFloati_v
|
||||
typedef void (APIENTRYP PFNGLGETDOUBLEI_VPROC)(GLenum target, GLuint index, GLdouble *data);
|
||||
GLAPI PFNGLGETDOUBLEI_VPROC glad_glGetDoublei_v;
|
||||
#define glGetDoublei_v glad_glGetDoublei_v
|
||||
#endif
|
||||
#ifndef GL_EXT_texture_compression_s3tc
|
||||
#define GL_EXT_texture_compression_s3tc 1
|
||||
GLAPI int GLAD_GL_EXT_texture_compression_s3tc;
|
||||
|
|
Loading…
Reference in New Issue