mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Removed inclusion of OpenGL ES 1.0 header
We're using a glad-generated loader, we don't need it. Speaking about glad: deleted unused GL extensions in the loader.
This commit is contained in:
parent
bbdaadb104
commit
011ea4a1b4
4 changed files with 10 additions and 300 deletions
|
@ -1,28 +1,14 @@
|
||||||
/*
|
/*
|
||||||
|
|
||||||
OpenGL ES loader generated by glad 0.1.36 on Tue Dec 20 14:35:00 2022.
|
OpenGL ES loader generated by glad 0.1.36 on Sun Aug 11 03:16:24 2024.
|
||||||
|
|
||||||
Language/Generator: C/C++
|
Language/Generator: C/C++
|
||||||
Specification: gl
|
Specification: gl
|
||||||
APIs: gles1=1.0
|
APIs: gles1=1.0
|
||||||
Profile: core
|
Profile: core
|
||||||
Extensions:
|
Extensions:
|
||||||
GL_EXT_debug_marker,
|
|
||||||
GL_EXT_discard_framebuffer,
|
GL_EXT_discard_framebuffer,
|
||||||
GL_EXT_texture_format_BGRA8888,
|
|
||||||
GL_OES_EGL_image,
|
|
||||||
GL_OES_EGL_image_external,
|
|
||||||
GL_OES_compressed_ETC1_RGB8_texture,
|
|
||||||
GL_OES_compressed_paletted_texture,
|
|
||||||
GL_OES_depth24,
|
|
||||||
GL_OES_depth32,
|
|
||||||
GL_OES_draw_texture,
|
|
||||||
GL_OES_framebuffer_object,
|
GL_OES_framebuffer_object,
|
||||||
GL_OES_mapbuffer,
|
|
||||||
GL_OES_matrix_palette,
|
|
||||||
GL_OES_query_matrix,
|
|
||||||
GL_OES_rgb8_rgba8,
|
|
||||||
GL_OES_stencil8,
|
|
||||||
GL_OES_texture_npot
|
GL_OES_texture_npot
|
||||||
Loader: False
|
Loader: False
|
||||||
Local files: False
|
Local files: False
|
||||||
|
@ -30,9 +16,9 @@
|
||||||
Reproducible: False
|
Reproducible: False
|
||||||
|
|
||||||
Commandline:
|
Commandline:
|
||||||
--profile="core" --api="gles1=1.0" --generator="c" --spec="gl" --no-loader --extensions="GL_EXT_debug_marker,GL_EXT_discard_framebuffer,GL_EXT_texture_format_BGRA8888,GL_OES_EGL_image,GL_OES_EGL_image_external,GL_OES_compressed_ETC1_RGB8_texture,GL_OES_compressed_paletted_texture,GL_OES_depth24,GL_OES_depth32,GL_OES_draw_texture,GL_OES_framebuffer_object,GL_OES_mapbuffer,GL_OES_matrix_palette,GL_OES_query_matrix,GL_OES_rgb8_rgba8,GL_OES_stencil8,GL_OES_texture_npot"
|
--profile="core" --api="gles1=1.0" --generator="c" --spec="gl" --no-loader --extensions="GL_EXT_discard_framebuffer,GL_OES_framebuffer_object,GL_OES_texture_npot"
|
||||||
Online:
|
Online:
|
||||||
https://glad.dav1d.de/#profile=core&language=c&specification=gl&api=gles1%3D1.0&extensions=GL_EXT_debug_marker&extensions=GL_EXT_discard_framebuffer&extensions=GL_EXT_texture_format_BGRA8888&extensions=GL_OES_EGL_image&extensions=GL_OES_EGL_image_external&extensions=GL_OES_compressed_ETC1_RGB8_texture&extensions=GL_OES_compressed_paletted_texture&extensions=GL_OES_depth24&extensions=GL_OES_depth32&extensions=GL_OES_draw_texture&extensions=GL_OES_framebuffer_object&extensions=GL_OES_mapbuffer&extensions=GL_OES_matrix_palette&extensions=GL_OES_query_matrix&extensions=GL_OES_rgb8_rgba8&extensions=GL_OES_stencil8&extensions=GL_OES_texture_npot
|
https://glad.dav1d.de/#profile=core&language=c&specification=gl&api=gles1%3D1.0&extensions=GL_EXT_discard_framebuffer&extensions=GL_OES_framebuffer_object&extensions=GL_OES_texture_npot
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -918,25 +904,6 @@ GLAPI PFNGLVIEWPORTPROC glad_glViewport;
|
||||||
#define GL_COLOR_EXT 0x1800
|
#define GL_COLOR_EXT 0x1800
|
||||||
#define GL_DEPTH_EXT 0x1801
|
#define GL_DEPTH_EXT 0x1801
|
||||||
#define GL_STENCIL_EXT 0x1802
|
#define GL_STENCIL_EXT 0x1802
|
||||||
#define GL_BGRA_EXT 0x80E1
|
|
||||||
#define GL_TEXTURE_EXTERNAL_OES 0x8D65
|
|
||||||
#define GL_TEXTURE_BINDING_EXTERNAL_OES 0x8D67
|
|
||||||
#define GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES 0x8D68
|
|
||||||
#define GL_SAMPLER_EXTERNAL_OES 0x8D66
|
|
||||||
#define GL_ETC1_RGB8_OES 0x8D64
|
|
||||||
#define GL_PALETTE4_RGB8_OES 0x8B90
|
|
||||||
#define GL_PALETTE4_RGBA8_OES 0x8B91
|
|
||||||
#define GL_PALETTE4_R5_G6_B5_OES 0x8B92
|
|
||||||
#define GL_PALETTE4_RGBA4_OES 0x8B93
|
|
||||||
#define GL_PALETTE4_RGB5_A1_OES 0x8B94
|
|
||||||
#define GL_PALETTE8_RGB8_OES 0x8B95
|
|
||||||
#define GL_PALETTE8_RGBA8_OES 0x8B96
|
|
||||||
#define GL_PALETTE8_R5_G6_B5_OES 0x8B97
|
|
||||||
#define GL_PALETTE8_RGBA4_OES 0x8B98
|
|
||||||
#define GL_PALETTE8_RGB5_A1_OES 0x8B99
|
|
||||||
#define GL_DEPTH_COMPONENT24_OES 0x81A6
|
|
||||||
#define GL_DEPTH_COMPONENT32_OES 0x81A7
|
|
||||||
#define GL_TEXTURE_CROP_RECT_OES 0x8B9D
|
|
||||||
#define GL_NONE_OES 0
|
#define GL_NONE_OES 0
|
||||||
#define GL_FRAMEBUFFER_OES 0x8D40
|
#define GL_FRAMEBUFFER_OES 0x8D40
|
||||||
#define GL_RENDERBUFFER_OES 0x8D41
|
#define GL_RENDERBUFFER_OES 0x8D41
|
||||||
|
@ -970,42 +937,6 @@ GLAPI PFNGLVIEWPORTPROC glad_glViewport;
|
||||||
#define GL_RENDERBUFFER_BINDING_OES 0x8CA7
|
#define GL_RENDERBUFFER_BINDING_OES 0x8CA7
|
||||||
#define GL_MAX_RENDERBUFFER_SIZE_OES 0x84E8
|
#define GL_MAX_RENDERBUFFER_SIZE_OES 0x84E8
|
||||||
#define GL_INVALID_FRAMEBUFFER_OPERATION_OES 0x0506
|
#define GL_INVALID_FRAMEBUFFER_OPERATION_OES 0x0506
|
||||||
#define GL_WRITE_ONLY_OES 0x88B9
|
|
||||||
#define GL_BUFFER_ACCESS_OES 0x88BB
|
|
||||||
#define GL_BUFFER_MAPPED_OES 0x88BC
|
|
||||||
#define GL_BUFFER_MAP_POINTER_OES 0x88BD
|
|
||||||
#define GL_MAX_VERTEX_UNITS_OES 0x86A4
|
|
||||||
#define GL_MAX_PALETTE_MATRICES_OES 0x8842
|
|
||||||
#define GL_MATRIX_PALETTE_OES 0x8840
|
|
||||||
#define GL_MATRIX_INDEX_ARRAY_OES 0x8844
|
|
||||||
#define GL_WEIGHT_ARRAY_OES 0x86AD
|
|
||||||
#define GL_CURRENT_PALETTE_MATRIX_OES 0x8843
|
|
||||||
#define GL_MATRIX_INDEX_ARRAY_SIZE_OES 0x8846
|
|
||||||
#define GL_MATRIX_INDEX_ARRAY_TYPE_OES 0x8847
|
|
||||||
#define GL_MATRIX_INDEX_ARRAY_STRIDE_OES 0x8848
|
|
||||||
#define GL_MATRIX_INDEX_ARRAY_POINTER_OES 0x8849
|
|
||||||
#define GL_MATRIX_INDEX_ARRAY_BUFFER_BINDING_OES 0x8B9E
|
|
||||||
#define GL_WEIGHT_ARRAY_SIZE_OES 0x86AB
|
|
||||||
#define GL_WEIGHT_ARRAY_TYPE_OES 0x86A9
|
|
||||||
#define GL_WEIGHT_ARRAY_STRIDE_OES 0x86AA
|
|
||||||
#define GL_WEIGHT_ARRAY_POINTER_OES 0x86AC
|
|
||||||
#define GL_WEIGHT_ARRAY_BUFFER_BINDING_OES 0x889E
|
|
||||||
#define GL_RGB8_OES 0x8051
|
|
||||||
#define GL_RGBA8_OES 0x8058
|
|
||||||
#define GL_STENCIL_INDEX8_OES 0x8D48
|
|
||||||
#ifndef GL_EXT_debug_marker
|
|
||||||
#define GL_EXT_debug_marker 1
|
|
||||||
GLAPI int GLAD_GL_EXT_debug_marker;
|
|
||||||
typedef void (APIENTRYP PFNGLINSERTEVENTMARKEREXTPROC)(GLsizei length, const GLchar *marker);
|
|
||||||
GLAPI PFNGLINSERTEVENTMARKEREXTPROC glad_glInsertEventMarkerEXT;
|
|
||||||
#define glInsertEventMarkerEXT glad_glInsertEventMarkerEXT
|
|
||||||
typedef void (APIENTRYP PFNGLPUSHGROUPMARKEREXTPROC)(GLsizei length, const GLchar *marker);
|
|
||||||
GLAPI PFNGLPUSHGROUPMARKEREXTPROC glad_glPushGroupMarkerEXT;
|
|
||||||
#define glPushGroupMarkerEXT glad_glPushGroupMarkerEXT
|
|
||||||
typedef void (APIENTRYP PFNGLPOPGROUPMARKEREXTPROC)(void);
|
|
||||||
GLAPI PFNGLPOPGROUPMARKEREXTPROC glad_glPopGroupMarkerEXT;
|
|
||||||
#define glPopGroupMarkerEXT glad_glPopGroupMarkerEXT
|
|
||||||
#endif
|
|
||||||
#ifndef GL_EXT_discard_framebuffer
|
#ifndef GL_EXT_discard_framebuffer
|
||||||
#define GL_EXT_discard_framebuffer 1
|
#define GL_EXT_discard_framebuffer 1
|
||||||
GLAPI int GLAD_GL_EXT_discard_framebuffer;
|
GLAPI int GLAD_GL_EXT_discard_framebuffer;
|
||||||
|
@ -1013,68 +944,6 @@ typedef void (APIENTRYP PFNGLDISCARDFRAMEBUFFEREXTPROC)(GLenum target, GLsizei n
|
||||||
GLAPI PFNGLDISCARDFRAMEBUFFEREXTPROC glad_glDiscardFramebufferEXT;
|
GLAPI PFNGLDISCARDFRAMEBUFFEREXTPROC glad_glDiscardFramebufferEXT;
|
||||||
#define glDiscardFramebufferEXT glad_glDiscardFramebufferEXT
|
#define glDiscardFramebufferEXT glad_glDiscardFramebufferEXT
|
||||||
#endif
|
#endif
|
||||||
#ifndef GL_EXT_texture_format_BGRA8888
|
|
||||||
#define GL_EXT_texture_format_BGRA8888 1
|
|
||||||
GLAPI int GLAD_GL_EXT_texture_format_BGRA8888;
|
|
||||||
#endif
|
|
||||||
#ifndef GL_OES_EGL_image
|
|
||||||
#define GL_OES_EGL_image 1
|
|
||||||
GLAPI int GLAD_GL_OES_EGL_image;
|
|
||||||
typedef void (APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC)(GLenum target, GLeglImageOES image);
|
|
||||||
GLAPI PFNGLEGLIMAGETARGETTEXTURE2DOESPROC glad_glEGLImageTargetTexture2DOES;
|
|
||||||
#define glEGLImageTargetTexture2DOES glad_glEGLImageTargetTexture2DOES
|
|
||||||
typedef void (APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC)(GLenum target, GLeglImageOES image);
|
|
||||||
GLAPI PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC glad_glEGLImageTargetRenderbufferStorageOES;
|
|
||||||
#define glEGLImageTargetRenderbufferStorageOES glad_glEGLImageTargetRenderbufferStorageOES
|
|
||||||
#endif
|
|
||||||
#ifndef GL_OES_EGL_image_external
|
|
||||||
#define GL_OES_EGL_image_external 1
|
|
||||||
GLAPI int GLAD_GL_OES_EGL_image_external;
|
|
||||||
#endif
|
|
||||||
#ifndef GL_OES_compressed_ETC1_RGB8_texture
|
|
||||||
#define GL_OES_compressed_ETC1_RGB8_texture 1
|
|
||||||
GLAPI int GLAD_GL_OES_compressed_ETC1_RGB8_texture;
|
|
||||||
#endif
|
|
||||||
#ifndef GL_OES_compressed_paletted_texture
|
|
||||||
#define GL_OES_compressed_paletted_texture 1
|
|
||||||
GLAPI int GLAD_GL_OES_compressed_paletted_texture;
|
|
||||||
#endif
|
|
||||||
#ifndef GL_OES_depth24
|
|
||||||
#define GL_OES_depth24 1
|
|
||||||
GLAPI int GLAD_GL_OES_depth24;
|
|
||||||
#endif
|
|
||||||
#ifndef GL_OES_depth32
|
|
||||||
#define GL_OES_depth32 1
|
|
||||||
GLAPI int GLAD_GL_OES_depth32;
|
|
||||||
#endif
|
|
||||||
#ifndef GL_OES_draw_texture
|
|
||||||
#define GL_OES_draw_texture 1
|
|
||||||
GLAPI int GLAD_GL_OES_draw_texture;
|
|
||||||
typedef void (APIENTRYP PFNGLDRAWTEXSOESPROC)(GLshort x, GLshort y, GLshort z, GLshort width, GLshort height);
|
|
||||||
GLAPI PFNGLDRAWTEXSOESPROC glad_glDrawTexsOES;
|
|
||||||
#define glDrawTexsOES glad_glDrawTexsOES
|
|
||||||
typedef void (APIENTRYP PFNGLDRAWTEXIOESPROC)(GLint x, GLint y, GLint z, GLint width, GLint height);
|
|
||||||
GLAPI PFNGLDRAWTEXIOESPROC glad_glDrawTexiOES;
|
|
||||||
#define glDrawTexiOES glad_glDrawTexiOES
|
|
||||||
typedef void (APIENTRYP PFNGLDRAWTEXXOESPROC)(GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height);
|
|
||||||
GLAPI PFNGLDRAWTEXXOESPROC glad_glDrawTexxOES;
|
|
||||||
#define glDrawTexxOES glad_glDrawTexxOES
|
|
||||||
typedef void (APIENTRYP PFNGLDRAWTEXSVOESPROC)(const GLshort *coords);
|
|
||||||
GLAPI PFNGLDRAWTEXSVOESPROC glad_glDrawTexsvOES;
|
|
||||||
#define glDrawTexsvOES glad_glDrawTexsvOES
|
|
||||||
typedef void (APIENTRYP PFNGLDRAWTEXIVOESPROC)(const GLint *coords);
|
|
||||||
GLAPI PFNGLDRAWTEXIVOESPROC glad_glDrawTexivOES;
|
|
||||||
#define glDrawTexivOES glad_glDrawTexivOES
|
|
||||||
typedef void (APIENTRYP PFNGLDRAWTEXXVOESPROC)(const GLfixed *coords);
|
|
||||||
GLAPI PFNGLDRAWTEXXVOESPROC glad_glDrawTexxvOES;
|
|
||||||
#define glDrawTexxvOES glad_glDrawTexxvOES
|
|
||||||
typedef void (APIENTRYP PFNGLDRAWTEXFOESPROC)(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height);
|
|
||||||
GLAPI PFNGLDRAWTEXFOESPROC glad_glDrawTexfOES;
|
|
||||||
#define glDrawTexfOES glad_glDrawTexfOES
|
|
||||||
typedef void (APIENTRYP PFNGLDRAWTEXFVOESPROC)(const GLfloat *coords);
|
|
||||||
GLAPI PFNGLDRAWTEXFVOESPROC glad_glDrawTexfvOES;
|
|
||||||
#define glDrawTexfvOES glad_glDrawTexfvOES
|
|
||||||
#endif
|
|
||||||
#ifndef GL_OES_framebuffer_object
|
#ifndef GL_OES_framebuffer_object
|
||||||
#define GL_OES_framebuffer_object 1
|
#define GL_OES_framebuffer_object 1
|
||||||
GLAPI int GLAD_GL_OES_framebuffer_object;
|
GLAPI int GLAD_GL_OES_framebuffer_object;
|
||||||
|
@ -1124,50 +993,6 @@ typedef void (APIENTRYP PFNGLGENERATEMIPMAPOESPROC)(GLenum target);
|
||||||
GLAPI PFNGLGENERATEMIPMAPOESPROC glad_glGenerateMipmapOES;
|
GLAPI PFNGLGENERATEMIPMAPOESPROC glad_glGenerateMipmapOES;
|
||||||
#define glGenerateMipmapOES glad_glGenerateMipmapOES
|
#define glGenerateMipmapOES glad_glGenerateMipmapOES
|
||||||
#endif
|
#endif
|
||||||
#ifndef GL_OES_mapbuffer
|
|
||||||
#define GL_OES_mapbuffer 1
|
|
||||||
GLAPI int GLAD_GL_OES_mapbuffer;
|
|
||||||
typedef void * (APIENTRYP PFNGLMAPBUFFEROESPROC)(GLenum target, GLenum access);
|
|
||||||
GLAPI PFNGLMAPBUFFEROESPROC glad_glMapBufferOES;
|
|
||||||
#define glMapBufferOES glad_glMapBufferOES
|
|
||||||
typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFEROESPROC)(GLenum target);
|
|
||||||
GLAPI PFNGLUNMAPBUFFEROESPROC glad_glUnmapBufferOES;
|
|
||||||
#define glUnmapBufferOES glad_glUnmapBufferOES
|
|
||||||
typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC)(GLenum target, GLenum pname, void **params);
|
|
||||||
GLAPI PFNGLGETBUFFERPOINTERVOESPROC glad_glGetBufferPointervOES;
|
|
||||||
#define glGetBufferPointervOES glad_glGetBufferPointervOES
|
|
||||||
#endif
|
|
||||||
#ifndef GL_OES_matrix_palette
|
|
||||||
#define GL_OES_matrix_palette 1
|
|
||||||
GLAPI int GLAD_GL_OES_matrix_palette;
|
|
||||||
typedef void (APIENTRYP PFNGLCURRENTPALETTEMATRIXOESPROC)(GLuint matrixpaletteindex);
|
|
||||||
GLAPI PFNGLCURRENTPALETTEMATRIXOESPROC glad_glCurrentPaletteMatrixOES;
|
|
||||||
#define glCurrentPaletteMatrixOES glad_glCurrentPaletteMatrixOES
|
|
||||||
typedef void (APIENTRYP PFNGLLOADPALETTEFROMMODELVIEWMATRIXOESPROC)(void);
|
|
||||||
GLAPI PFNGLLOADPALETTEFROMMODELVIEWMATRIXOESPROC glad_glLoadPaletteFromModelViewMatrixOES;
|
|
||||||
#define glLoadPaletteFromModelViewMatrixOES glad_glLoadPaletteFromModelViewMatrixOES
|
|
||||||
typedef void (APIENTRYP PFNGLMATRIXINDEXPOINTEROESPROC)(GLint size, GLenum type, GLsizei stride, const void *pointer);
|
|
||||||
GLAPI PFNGLMATRIXINDEXPOINTEROESPROC glad_glMatrixIndexPointerOES;
|
|
||||||
#define glMatrixIndexPointerOES glad_glMatrixIndexPointerOES
|
|
||||||
typedef void (APIENTRYP PFNGLWEIGHTPOINTEROESPROC)(GLint size, GLenum type, GLsizei stride, const void *pointer);
|
|
||||||
GLAPI PFNGLWEIGHTPOINTEROESPROC glad_glWeightPointerOES;
|
|
||||||
#define glWeightPointerOES glad_glWeightPointerOES
|
|
||||||
#endif
|
|
||||||
#ifndef GL_OES_query_matrix
|
|
||||||
#define GL_OES_query_matrix 1
|
|
||||||
GLAPI int GLAD_GL_OES_query_matrix;
|
|
||||||
typedef GLbitfield (APIENTRYP PFNGLQUERYMATRIXXOESPROC)(GLfixed *mantissa, GLint *exponent);
|
|
||||||
GLAPI PFNGLQUERYMATRIXXOESPROC glad_glQueryMatrixxOES;
|
|
||||||
#define glQueryMatrixxOES glad_glQueryMatrixxOES
|
|
||||||
#endif
|
|
||||||
#ifndef GL_OES_rgb8_rgba8
|
|
||||||
#define GL_OES_rgb8_rgba8 1
|
|
||||||
GLAPI int GLAD_GL_OES_rgb8_rgba8;
|
|
||||||
#endif
|
|
||||||
#ifndef GL_OES_stencil8
|
|
||||||
#define GL_OES_stencil8 1
|
|
||||||
GLAPI int GLAD_GL_OES_stencil8;
|
|
||||||
#endif
|
|
||||||
#ifndef GL_OES_texture_npot
|
#ifndef GL_OES_texture_npot
|
||||||
#define GL_OES_texture_npot 1
|
#define GL_OES_texture_npot 1
|
||||||
GLAPI int GLAD_GL_OES_texture_npot;
|
GLAPI int GLAD_GL_OES_texture_npot;
|
||||||
|
|
|
@ -1,28 +1,14 @@
|
||||||
/*
|
/*
|
||||||
|
|
||||||
OpenGL ES loader generated by glad 0.1.36 on Tue Dec 20 14:35:00 2022.
|
OpenGL ES loader generated by glad 0.1.36 on Sun Aug 11 03:16:24 2024.
|
||||||
|
|
||||||
Language/Generator: C/C++
|
Language/Generator: C/C++
|
||||||
Specification: gl
|
Specification: gl
|
||||||
APIs: gles1=1.0
|
APIs: gles1=1.0
|
||||||
Profile: core
|
Profile: core
|
||||||
Extensions:
|
Extensions:
|
||||||
GL_EXT_debug_marker,
|
|
||||||
GL_EXT_discard_framebuffer,
|
GL_EXT_discard_framebuffer,
|
||||||
GL_EXT_texture_format_BGRA8888,
|
|
||||||
GL_OES_EGL_image,
|
|
||||||
GL_OES_EGL_image_external,
|
|
||||||
GL_OES_compressed_ETC1_RGB8_texture,
|
|
||||||
GL_OES_compressed_paletted_texture,
|
|
||||||
GL_OES_depth24,
|
|
||||||
GL_OES_depth32,
|
|
||||||
GL_OES_draw_texture,
|
|
||||||
GL_OES_framebuffer_object,
|
GL_OES_framebuffer_object,
|
||||||
GL_OES_mapbuffer,
|
|
||||||
GL_OES_matrix_palette,
|
|
||||||
GL_OES_query_matrix,
|
|
||||||
GL_OES_rgb8_rgba8,
|
|
||||||
GL_OES_stencil8,
|
|
||||||
GL_OES_texture_npot
|
GL_OES_texture_npot
|
||||||
Loader: False
|
Loader: False
|
||||||
Local files: False
|
Local files: False
|
||||||
|
@ -30,9 +16,9 @@
|
||||||
Reproducible: False
|
Reproducible: False
|
||||||
|
|
||||||
Commandline:
|
Commandline:
|
||||||
--profile="core" --api="gles1=1.0" --generator="c" --spec="gl" --no-loader --extensions="GL_EXT_debug_marker,GL_EXT_discard_framebuffer,GL_EXT_texture_format_BGRA8888,GL_OES_EGL_image,GL_OES_EGL_image_external,GL_OES_compressed_ETC1_RGB8_texture,GL_OES_compressed_paletted_texture,GL_OES_depth24,GL_OES_depth32,GL_OES_draw_texture,GL_OES_framebuffer_object,GL_OES_mapbuffer,GL_OES_matrix_palette,GL_OES_query_matrix,GL_OES_rgb8_rgba8,GL_OES_stencil8,GL_OES_texture_npot"
|
--profile="core" --api="gles1=1.0" --generator="c" --spec="gl" --no-loader --extensions="GL_EXT_discard_framebuffer,GL_OES_framebuffer_object,GL_OES_texture_npot"
|
||||||
Online:
|
Online:
|
||||||
https://glad.dav1d.de/#profile=core&language=c&specification=gl&api=gles1%3D1.0&extensions=GL_EXT_debug_marker&extensions=GL_EXT_discard_framebuffer&extensions=GL_EXT_texture_format_BGRA8888&extensions=GL_OES_EGL_image&extensions=GL_OES_EGL_image_external&extensions=GL_OES_compressed_ETC1_RGB8_texture&extensions=GL_OES_compressed_paletted_texture&extensions=GL_OES_depth24&extensions=GL_OES_depth32&extensions=GL_OES_draw_texture&extensions=GL_OES_framebuffer_object&extensions=GL_OES_mapbuffer&extensions=GL_OES_matrix_palette&extensions=GL_OES_query_matrix&extensions=GL_OES_rgb8_rgba8&extensions=GL_OES_stencil8&extensions=GL_OES_texture_npot
|
https://glad.dav1d.de/#profile=core&language=c&specification=gl&api=gles1%3D1.0&extensions=GL_EXT_discard_framebuffer&extensions=GL_OES_framebuffer_object&extensions=GL_OES_texture_npot
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -60,7 +46,7 @@ static int get_exts(void) {
|
||||||
exts = (const char *)glGetString(GL_EXTENSIONS);
|
exts = (const char *)glGetString(GL_EXTENSIONS);
|
||||||
#ifdef _GLAD_IS_SOME_NEW_VERSION
|
#ifdef _GLAD_IS_SOME_NEW_VERSION
|
||||||
} else {
|
} else {
|
||||||
unsigned int index;
|
int index;
|
||||||
|
|
||||||
num_exts_i = 0;
|
num_exts_i = 0;
|
||||||
glGetIntegerv(GL_NUM_EXTENSIONS, &num_exts_i);
|
glGetIntegerv(GL_NUM_EXTENSIONS, &num_exts_i);
|
||||||
|
@ -72,7 +58,7 @@ static int get_exts(void) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
for(index = 0; index < (unsigned)num_exts_i; index++) {
|
for(index = 0; index < num_exts_i; index++) {
|
||||||
const char *gl_str_tmp = (const char*)glGetStringi(GL_EXTENSIONS, index);
|
const char *gl_str_tmp = (const char*)glGetStringi(GL_EXTENSIONS, index);
|
||||||
size_t len = strlen(gl_str_tmp);
|
size_t len = strlen(gl_str_tmp);
|
||||||
|
|
||||||
|
@ -284,37 +270,10 @@ PFNGLTRANSLATEFPROC glad_glTranslatef = NULL;
|
||||||
PFNGLTRANSLATEXPROC glad_glTranslatex = NULL;
|
PFNGLTRANSLATEXPROC glad_glTranslatex = NULL;
|
||||||
PFNGLVERTEXPOINTERPROC glad_glVertexPointer = NULL;
|
PFNGLVERTEXPOINTERPROC glad_glVertexPointer = NULL;
|
||||||
PFNGLVIEWPORTPROC glad_glViewport = NULL;
|
PFNGLVIEWPORTPROC glad_glViewport = NULL;
|
||||||
int GLAD_GL_EXT_debug_marker = 0;
|
|
||||||
int GLAD_GL_EXT_discard_framebuffer = 0;
|
int GLAD_GL_EXT_discard_framebuffer = 0;
|
||||||
int GLAD_GL_EXT_texture_format_BGRA8888 = 0;
|
|
||||||
int GLAD_GL_OES_EGL_image = 0;
|
|
||||||
int GLAD_GL_OES_EGL_image_external = 0;
|
|
||||||
int GLAD_GL_OES_compressed_ETC1_RGB8_texture = 0;
|
|
||||||
int GLAD_GL_OES_compressed_paletted_texture = 0;
|
|
||||||
int GLAD_GL_OES_depth24 = 0;
|
|
||||||
int GLAD_GL_OES_depth32 = 0;
|
|
||||||
int GLAD_GL_OES_draw_texture = 0;
|
|
||||||
int GLAD_GL_OES_framebuffer_object = 0;
|
int GLAD_GL_OES_framebuffer_object = 0;
|
||||||
int GLAD_GL_OES_mapbuffer = 0;
|
|
||||||
int GLAD_GL_OES_matrix_palette = 0;
|
|
||||||
int GLAD_GL_OES_query_matrix = 0;
|
|
||||||
int GLAD_GL_OES_rgb8_rgba8 = 0;
|
|
||||||
int GLAD_GL_OES_stencil8 = 0;
|
|
||||||
int GLAD_GL_OES_texture_npot = 0;
|
int GLAD_GL_OES_texture_npot = 0;
|
||||||
PFNGLINSERTEVENTMARKEREXTPROC glad_glInsertEventMarkerEXT = NULL;
|
|
||||||
PFNGLPUSHGROUPMARKEREXTPROC glad_glPushGroupMarkerEXT = NULL;
|
|
||||||
PFNGLPOPGROUPMARKEREXTPROC glad_glPopGroupMarkerEXT = NULL;
|
|
||||||
PFNGLDISCARDFRAMEBUFFEREXTPROC glad_glDiscardFramebufferEXT = NULL;
|
PFNGLDISCARDFRAMEBUFFEREXTPROC glad_glDiscardFramebufferEXT = NULL;
|
||||||
PFNGLEGLIMAGETARGETTEXTURE2DOESPROC glad_glEGLImageTargetTexture2DOES = NULL;
|
|
||||||
PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC glad_glEGLImageTargetRenderbufferStorageOES = NULL;
|
|
||||||
PFNGLDRAWTEXSOESPROC glad_glDrawTexsOES = NULL;
|
|
||||||
PFNGLDRAWTEXIOESPROC glad_glDrawTexiOES = NULL;
|
|
||||||
PFNGLDRAWTEXXOESPROC glad_glDrawTexxOES = NULL;
|
|
||||||
PFNGLDRAWTEXSVOESPROC glad_glDrawTexsvOES = NULL;
|
|
||||||
PFNGLDRAWTEXIVOESPROC glad_glDrawTexivOES = NULL;
|
|
||||||
PFNGLDRAWTEXXVOESPROC glad_glDrawTexxvOES = NULL;
|
|
||||||
PFNGLDRAWTEXFOESPROC glad_glDrawTexfOES = NULL;
|
|
||||||
PFNGLDRAWTEXFVOESPROC glad_glDrawTexfvOES = NULL;
|
|
||||||
PFNGLISRENDERBUFFEROESPROC glad_glIsRenderbufferOES = NULL;
|
PFNGLISRENDERBUFFEROESPROC glad_glIsRenderbufferOES = NULL;
|
||||||
PFNGLBINDRENDERBUFFEROESPROC glad_glBindRenderbufferOES = NULL;
|
PFNGLBINDRENDERBUFFEROESPROC glad_glBindRenderbufferOES = NULL;
|
||||||
PFNGLDELETERENDERBUFFERSOESPROC glad_glDeleteRenderbuffersOES = NULL;
|
PFNGLDELETERENDERBUFFERSOESPROC glad_glDeleteRenderbuffersOES = NULL;
|
||||||
|
@ -330,14 +289,6 @@ PFNGLFRAMEBUFFERRENDERBUFFEROESPROC glad_glFramebufferRenderbufferOES = NULL;
|
||||||
PFNGLFRAMEBUFFERTEXTURE2DOESPROC glad_glFramebufferTexture2DOES = NULL;
|
PFNGLFRAMEBUFFERTEXTURE2DOESPROC glad_glFramebufferTexture2DOES = NULL;
|
||||||
PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVOESPROC glad_glGetFramebufferAttachmentParameterivOES = NULL;
|
PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVOESPROC glad_glGetFramebufferAttachmentParameterivOES = NULL;
|
||||||
PFNGLGENERATEMIPMAPOESPROC glad_glGenerateMipmapOES = NULL;
|
PFNGLGENERATEMIPMAPOESPROC glad_glGenerateMipmapOES = NULL;
|
||||||
PFNGLMAPBUFFEROESPROC glad_glMapBufferOES = NULL;
|
|
||||||
PFNGLUNMAPBUFFEROESPROC glad_glUnmapBufferOES = NULL;
|
|
||||||
PFNGLGETBUFFERPOINTERVOESPROC glad_glGetBufferPointervOES = NULL;
|
|
||||||
PFNGLCURRENTPALETTEMATRIXOESPROC glad_glCurrentPaletteMatrixOES = NULL;
|
|
||||||
PFNGLLOADPALETTEFROMMODELVIEWMATRIXOESPROC glad_glLoadPaletteFromModelViewMatrixOES = NULL;
|
|
||||||
PFNGLMATRIXINDEXPOINTEROESPROC glad_glMatrixIndexPointerOES = NULL;
|
|
||||||
PFNGLWEIGHTPOINTEROESPROC glad_glWeightPointerOES = NULL;
|
|
||||||
PFNGLQUERYMATRIXXOESPROC glad_glQueryMatrixxOES = NULL;
|
|
||||||
static void load_GL_VERSION_ES_CM_1_0(GLADloadproc load) {
|
static void load_GL_VERSION_ES_CM_1_0(GLADloadproc load) {
|
||||||
if(!GLAD_GL_VERSION_ES_CM_1_0) return;
|
if(!GLAD_GL_VERSION_ES_CM_1_0) return;
|
||||||
glad_glAlphaFunc = (PFNGLALPHAFUNCPROC)load("glAlphaFunc");
|
glad_glAlphaFunc = (PFNGLALPHAFUNCPROC)load("glAlphaFunc");
|
||||||
|
@ -485,32 +436,10 @@ static void load_GL_VERSION_ES_CM_1_0(GLADloadproc load) {
|
||||||
glad_glVertexPointer = (PFNGLVERTEXPOINTERPROC)load("glVertexPointer");
|
glad_glVertexPointer = (PFNGLVERTEXPOINTERPROC)load("glVertexPointer");
|
||||||
glad_glViewport = (PFNGLVIEWPORTPROC)load("glViewport");
|
glad_glViewport = (PFNGLVIEWPORTPROC)load("glViewport");
|
||||||
}
|
}
|
||||||
static void load_GL_EXT_debug_marker(GLADloadproc load) {
|
|
||||||
if(!GLAD_GL_EXT_debug_marker) return;
|
|
||||||
glad_glInsertEventMarkerEXT = (PFNGLINSERTEVENTMARKEREXTPROC)load("glInsertEventMarkerEXT");
|
|
||||||
glad_glPushGroupMarkerEXT = (PFNGLPUSHGROUPMARKEREXTPROC)load("glPushGroupMarkerEXT");
|
|
||||||
glad_glPopGroupMarkerEXT = (PFNGLPOPGROUPMARKEREXTPROC)load("glPopGroupMarkerEXT");
|
|
||||||
}
|
|
||||||
static void load_GL_EXT_discard_framebuffer(GLADloadproc load) {
|
static void load_GL_EXT_discard_framebuffer(GLADloadproc load) {
|
||||||
if(!GLAD_GL_EXT_discard_framebuffer) return;
|
if(!GLAD_GL_EXT_discard_framebuffer) return;
|
||||||
glad_glDiscardFramebufferEXT = (PFNGLDISCARDFRAMEBUFFEREXTPROC)load("glDiscardFramebufferEXT");
|
glad_glDiscardFramebufferEXT = (PFNGLDISCARDFRAMEBUFFEREXTPROC)load("glDiscardFramebufferEXT");
|
||||||
}
|
}
|
||||||
static void load_GL_OES_EGL_image(GLADloadproc load) {
|
|
||||||
if(!GLAD_GL_OES_EGL_image) return;
|
|
||||||
glad_glEGLImageTargetTexture2DOES = (PFNGLEGLIMAGETARGETTEXTURE2DOESPROC)load("glEGLImageTargetTexture2DOES");
|
|
||||||
glad_glEGLImageTargetRenderbufferStorageOES = (PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC)load("glEGLImageTargetRenderbufferStorageOES");
|
|
||||||
}
|
|
||||||
static void load_GL_OES_draw_texture(GLADloadproc load) {
|
|
||||||
if(!GLAD_GL_OES_draw_texture) return;
|
|
||||||
glad_glDrawTexsOES = (PFNGLDRAWTEXSOESPROC)load("glDrawTexsOES");
|
|
||||||
glad_glDrawTexiOES = (PFNGLDRAWTEXIOESPROC)load("glDrawTexiOES");
|
|
||||||
glad_glDrawTexxOES = (PFNGLDRAWTEXXOESPROC)load("glDrawTexxOES");
|
|
||||||
glad_glDrawTexsvOES = (PFNGLDRAWTEXSVOESPROC)load("glDrawTexsvOES");
|
|
||||||
glad_glDrawTexivOES = (PFNGLDRAWTEXIVOESPROC)load("glDrawTexivOES");
|
|
||||||
glad_glDrawTexxvOES = (PFNGLDRAWTEXXVOESPROC)load("glDrawTexxvOES");
|
|
||||||
glad_glDrawTexfOES = (PFNGLDRAWTEXFOESPROC)load("glDrawTexfOES");
|
|
||||||
glad_glDrawTexfvOES = (PFNGLDRAWTEXFVOESPROC)load("glDrawTexfvOES");
|
|
||||||
}
|
|
||||||
static void load_GL_OES_framebuffer_object(GLADloadproc load) {
|
static void load_GL_OES_framebuffer_object(GLADloadproc load) {
|
||||||
if(!GLAD_GL_OES_framebuffer_object) return;
|
if(!GLAD_GL_OES_framebuffer_object) return;
|
||||||
glad_glIsRenderbufferOES = (PFNGLISRENDERBUFFEROESPROC)load("glIsRenderbufferOES");
|
glad_glIsRenderbufferOES = (PFNGLISRENDERBUFFEROESPROC)load("glIsRenderbufferOES");
|
||||||
|
@ -529,41 +458,10 @@ static void load_GL_OES_framebuffer_object(GLADloadproc load) {
|
||||||
glad_glGetFramebufferAttachmentParameterivOES = (PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVOESPROC)load("glGetFramebufferAttachmentParameterivOES");
|
glad_glGetFramebufferAttachmentParameterivOES = (PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVOESPROC)load("glGetFramebufferAttachmentParameterivOES");
|
||||||
glad_glGenerateMipmapOES = (PFNGLGENERATEMIPMAPOESPROC)load("glGenerateMipmapOES");
|
glad_glGenerateMipmapOES = (PFNGLGENERATEMIPMAPOESPROC)load("glGenerateMipmapOES");
|
||||||
}
|
}
|
||||||
static void load_GL_OES_mapbuffer(GLADloadproc load) {
|
|
||||||
if(!GLAD_GL_OES_mapbuffer) return;
|
|
||||||
glad_glMapBufferOES = (PFNGLMAPBUFFEROESPROC)load("glMapBufferOES");
|
|
||||||
glad_glUnmapBufferOES = (PFNGLUNMAPBUFFEROESPROC)load("glUnmapBufferOES");
|
|
||||||
glad_glGetBufferPointervOES = (PFNGLGETBUFFERPOINTERVOESPROC)load("glGetBufferPointervOES");
|
|
||||||
}
|
|
||||||
static void load_GL_OES_matrix_palette(GLADloadproc load) {
|
|
||||||
if(!GLAD_GL_OES_matrix_palette) return;
|
|
||||||
glad_glCurrentPaletteMatrixOES = (PFNGLCURRENTPALETTEMATRIXOESPROC)load("glCurrentPaletteMatrixOES");
|
|
||||||
glad_glLoadPaletteFromModelViewMatrixOES = (PFNGLLOADPALETTEFROMMODELVIEWMATRIXOESPROC)load("glLoadPaletteFromModelViewMatrixOES");
|
|
||||||
glad_glMatrixIndexPointerOES = (PFNGLMATRIXINDEXPOINTEROESPROC)load("glMatrixIndexPointerOES");
|
|
||||||
glad_glWeightPointerOES = (PFNGLWEIGHTPOINTEROESPROC)load("glWeightPointerOES");
|
|
||||||
}
|
|
||||||
static void load_GL_OES_query_matrix(GLADloadproc load) {
|
|
||||||
if(!GLAD_GL_OES_query_matrix) return;
|
|
||||||
glad_glQueryMatrixxOES = (PFNGLQUERYMATRIXXOESPROC)load("glQueryMatrixxOES");
|
|
||||||
}
|
|
||||||
static int find_extensionsGLES1(void) {
|
static int find_extensionsGLES1(void) {
|
||||||
if (!get_exts()) return 0;
|
if (!get_exts()) return 0;
|
||||||
GLAD_GL_EXT_debug_marker = has_ext("GL_EXT_debug_marker");
|
|
||||||
GLAD_GL_EXT_discard_framebuffer = has_ext("GL_EXT_discard_framebuffer");
|
GLAD_GL_EXT_discard_framebuffer = has_ext("GL_EXT_discard_framebuffer");
|
||||||
GLAD_GL_EXT_texture_format_BGRA8888 = has_ext("GL_EXT_texture_format_BGRA8888");
|
|
||||||
GLAD_GL_OES_EGL_image = has_ext("GL_OES_EGL_image");
|
|
||||||
GLAD_GL_OES_EGL_image_external = has_ext("GL_OES_EGL_image_external");
|
|
||||||
GLAD_GL_OES_compressed_ETC1_RGB8_texture = has_ext("GL_OES_compressed_ETC1_RGB8_texture");
|
|
||||||
GLAD_GL_OES_compressed_paletted_texture = has_ext("GL_OES_compressed_paletted_texture");
|
|
||||||
GLAD_GL_OES_depth24 = has_ext("GL_OES_depth24");
|
|
||||||
GLAD_GL_OES_depth32 = has_ext("GL_OES_depth32");
|
|
||||||
GLAD_GL_OES_draw_texture = has_ext("GL_OES_draw_texture");
|
|
||||||
GLAD_GL_OES_framebuffer_object = has_ext("GL_OES_framebuffer_object");
|
GLAD_GL_OES_framebuffer_object = has_ext("GL_OES_framebuffer_object");
|
||||||
GLAD_GL_OES_mapbuffer = has_ext("GL_OES_mapbuffer");
|
|
||||||
GLAD_GL_OES_matrix_palette = has_ext("GL_OES_matrix_palette");
|
|
||||||
GLAD_GL_OES_query_matrix = has_ext("GL_OES_query_matrix");
|
|
||||||
GLAD_GL_OES_rgb8_rgba8 = has_ext("GL_OES_rgb8_rgba8");
|
|
||||||
GLAD_GL_OES_stencil8 = has_ext("GL_OES_stencil8");
|
|
||||||
GLAD_GL_OES_texture_npot = has_ext("GL_OES_texture_npot");
|
GLAD_GL_OES_texture_npot = has_ext("GL_OES_texture_npot");
|
||||||
free_exts();
|
free_exts();
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -621,14 +519,8 @@ int gladLoadGLES1Loader(GLADloadproc load) {
|
||||||
load_GL_VERSION_ES_CM_1_0(load);
|
load_GL_VERSION_ES_CM_1_0(load);
|
||||||
|
|
||||||
if (!find_extensionsGLES1()) return 0;
|
if (!find_extensionsGLES1()) return 0;
|
||||||
load_GL_EXT_debug_marker(load);
|
|
||||||
load_GL_EXT_discard_framebuffer(load);
|
load_GL_EXT_discard_framebuffer(load);
|
||||||
load_GL_OES_EGL_image(load);
|
|
||||||
load_GL_OES_draw_texture(load);
|
|
||||||
load_GL_OES_framebuffer_object(load);
|
load_GL_OES_framebuffer_object(load);
|
||||||
load_GL_OES_mapbuffer(load);
|
|
||||||
load_GL_OES_matrix_palette(load);
|
|
||||||
load_GL_OES_query_matrix(load);
|
|
||||||
return GLVersion.major != 0 || GLVersion.minor != 0;
|
return GLVersion.major != 0 || GLVersion.minor != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,10 +31,6 @@
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#ifdef YQ2_GL1_GLES
|
|
||||||
#include "../glad-gles1/include/glad/glad.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../../ref_shared.h"
|
#include "../../ref_shared.h"
|
||||||
#include "qgl.h"
|
#include "qgl.h"
|
||||||
|
|
||||||
|
|
|
@ -33,14 +33,11 @@
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__APPLE__)
|
|
||||||
#define GL_SILENCE_DEPRECATION
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef YQ2_GL1_GLES
|
#ifdef YQ2_GL1_GLES
|
||||||
#include <GLES/gl.h>
|
#include "../glad-gles1/include/glad/glad.h"
|
||||||
#else
|
#else
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
|
#define GL_SILENCE_DEPRECATION
|
||||||
#include <OpenGL/gl.h>
|
#include <OpenGL/gl.h>
|
||||||
#else
|
#else
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
|
|
Loading…
Reference in a new issue