Changeset View
Changeset View
Standalone View
Standalone View
libraries/source/glad/include/glad/gl.h
/** | /** | ||||
* Loader generated by glad 2.0.0-beta on Wed Mar 30 00:33:29 2022 | * Loader generated by glad 2.0.2 on 11/20/22 13:31:45 | ||||
* | |||||
* SPDX-License-Identifier: (WTFPL OR CC0-1.0) AND Apache-2.0 | |||||
* | * | ||||
* Generator: C/C++ | * Generator: C/C++ | ||||
* Specification: gl | * Specification: gl | ||||
* Extensions: 35 | * Extensions: 36 | ||||
* | * | ||||
* APIs: | * APIs: | ||||
* - gl:core=2.1 | * - gl:core=2.1 | ||||
* | * | ||||
* Options: | * Options: | ||||
* - ON_DEMAND = False | |||||
* - LOADER = False | |||||
* - ALIAS = False | * - ALIAS = False | ||||
* - DEBUG = False | |||||
* - HEADER_ONLY = False | * - HEADER_ONLY = False | ||||
* - LOADER = False | * - DEBUG = False | ||||
* - MX = False | * - MX = False | ||||
* - MX_GLOBAL = False | |||||
* - ON_DEMAND = False | |||||
* | * | ||||
* Commandline: | * Commandline: | ||||
* --api='gl:core=2.1' --extensions='GL_ARB_draw_buffers,GL_ARB_draw_instanced,GL_ARB_fragment_program,GL_ARB_fragment_shader,GL_ARB_framebuffer_object,GL_ARB_geometry_shader4,GL_ARB_instanced_arrays,GL_ARB_map_buffer_range,GL_ARB_multitexture,GL_ARB_occlusion_query,GL_ARB_shader_objects,GL_ARB_shading_language_100,GL_ARB_sync,GL_ARB_texture_compression,GL_ARB_texture_multisample,GL_ARB_texture_rectangle,GL_ARB_timer_query,GL_ARB_vertex_buffer_object,GL_ARB_vertex_program,GL_ARB_vertex_shader,GL_EXT_bgra,GL_EXT_blend_color,GL_EXT_blend_minmax,GL_EXT_draw_range_elements,GL_EXT_framebuffer_blit,GL_EXT_framebuffer_multisample,GL_EXT_framebuffer_object,GL_EXT_gpu_shader4,GL_EXT_packed_depth_stencil,GL_EXT_texture_array,GL_EXT_texture_compression_s3tc,GL_EXT_texture_filter_anisotropic,GL_EXT_texture_lod_bias,GL_EXT_transform_feedback,GL_KHR_debug' c | * --api='gl:core=2.1' --extensions='GL_ARB_draw_buffers,GL_ARB_draw_instanced,GL_ARB_fragment_program,GL_ARB_fragment_shader,GL_ARB_framebuffer_object,GL_ARB_geometry_shader4,GL_ARB_instanced_arrays,GL_ARB_invalidate_subdata,GL_ARB_map_buffer_range,GL_ARB_multitexture,GL_ARB_occlusion_query,GL_ARB_shader_objects,GL_ARB_shading_language_100,GL_ARB_sync,GL_ARB_texture_compression,GL_ARB_texture_multisample,GL_ARB_texture_rectangle,GL_ARB_timer_query,GL_ARB_vertex_buffer_object,GL_ARB_vertex_program,GL_ARB_vertex_shader,GL_EXT_bgra,GL_EXT_blend_color,GL_EXT_blend_minmax,GL_EXT_draw_range_elements,GL_EXT_framebuffer_blit,GL_EXT_framebuffer_multisample,GL_EXT_framebuffer_object,GL_EXT_gpu_shader4,GL_EXT_packed_depth_stencil,GL_EXT_texture_array,GL_EXT_texture_compression_s3tc,GL_EXT_texture_filter_anisotropic,GL_EXT_texture_lod_bias,GL_EXT_transform_feedback,GL_KHR_debug' c | ||||
* | * | ||||
* Online: | * Online: | ||||
* http://glad.sh/#api=gl%3Acore%3D2.1&extensions=GL_ARB_draw_buffers%2CGL_ARB_draw_instanced%2CGL_ARB_fragment_program%2CGL_ARB_fragment_shader%2CGL_ARB_framebuffer_object%2CGL_ARB_geometry_shader4%2CGL_ARB_instanced_arrays%2CGL_ARB_map_buffer_range%2CGL_ARB_multitexture%2CGL_ARB_occlusion_query%2CGL_ARB_shader_objects%2CGL_ARB_shading_language_100%2CGL_ARB_sync%2CGL_ARB_texture_compression%2CGL_ARB_texture_multisample%2CGL_ARB_texture_rectangle%2CGL_ARB_timer_query%2CGL_ARB_vertex_buffer_object%2CGL_ARB_vertex_program%2CGL_ARB_vertex_shader%2CGL_EXT_bgra%2CGL_EXT_blend_color%2CGL_EXT_blend_minmax%2CGL_EXT_draw_range_elements%2CGL_EXT_framebuffer_blit%2CGL_EXT_framebuffer_multisample%2CGL_EXT_framebuffer_object%2CGL_EXT_gpu_shader4%2CGL_EXT_packed_depth_stencil%2CGL_EXT_texture_array%2CGL_EXT_texture_compression_s3tc%2CGL_EXT_texture_filter_anisotropic%2CGL_EXT_texture_lod_bias%2CGL_EXT_transform_feedback%2CGL_KHR_debug&generator=c&options= | * http://glad.sh/#api=gl%3Acore%3D2.1&extensions=GL_ARB_draw_buffers%2CGL_ARB_draw_instanced%2CGL_ARB_fragment_program%2CGL_ARB_fragment_shader%2CGL_ARB_framebuffer_object%2CGL_ARB_geometry_shader4%2CGL_ARB_instanced_arrays%2CGL_ARB_invalidate_subdata%2CGL_ARB_map_buffer_range%2CGL_ARB_multitexture%2CGL_ARB_occlusion_query%2CGL_ARB_shader_objects%2CGL_ARB_shading_language_100%2CGL_ARB_sync%2CGL_ARB_texture_compression%2CGL_ARB_texture_multisample%2CGL_ARB_texture_rectangle%2CGL_ARB_timer_query%2CGL_ARB_vertex_buffer_object%2CGL_ARB_vertex_program%2CGL_ARB_vertex_shader%2CGL_EXT_bgra%2CGL_EXT_blend_color%2CGL_EXT_blend_minmax%2CGL_EXT_draw_range_elements%2CGL_EXT_framebuffer_blit%2CGL_EXT_framebuffer_multisample%2CGL_EXT_framebuffer_object%2CGL_EXT_gpu_shader4%2CGL_EXT_packed_depth_stencil%2CGL_EXT_texture_array%2CGL_EXT_texture_compression_s3tc%2CGL_EXT_texture_filter_anisotropic%2CGL_EXT_texture_lod_bias%2CGL_EXT_transform_feedback%2CGL_KHR_debug&generator=c&options= | ||||
* | * | ||||
*/ | */ | ||||
#ifndef GLAD_GL_H_ | #ifndef GLAD_GL_H_ | ||||
#define GLAD_GL_H_ | #define GLAD_GL_H_ | ||||
#ifdef __clang__ | #ifdef __clang__ | ||||
#pragma clang diagnostic push | #pragma clang diagnostic push | ||||
▲ Show 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
#ifdef __GNUC__ | #ifdef __GNUC__ | ||||
#define GLAD_GNUC_EXTENSION __extension__ | #define GLAD_GNUC_EXTENSION __extension__ | ||||
#else | #else | ||||
#define GLAD_GNUC_EXTENSION | #define GLAD_GNUC_EXTENSION | ||||
#endif | #endif | ||||
#define GLAD_UNUSED(x) (void)(x) | |||||
#ifndef GLAD_API_CALL | #ifndef GLAD_API_CALL | ||||
#if defined(GLAD_API_CALL_EXPORT) | #if defined(GLAD_API_CALL_EXPORT) | ||||
#if GLAD_PLATFORM_WIN32 || defined(__CYGWIN__) | #if GLAD_PLATFORM_WIN32 || defined(__CYGWIN__) | ||||
#if defined(GLAD_API_CALL_EXPORT_BUILD) | #if defined(GLAD_API_CALL_EXPORT_BUILD) | ||||
#if defined(__GNUC__) | #if defined(__GNUC__) | ||||
#define GLAD_API_CALL __attribute__ ((dllexport)) extern | #define GLAD_API_CALL __attribute__ ((dllexport)) extern | ||||
#else | #else | ||||
#define GLAD_API_CALL __declspec(dllexport) extern | #define GLAD_API_CALL __declspec(dllexport) extern | ||||
Show All 30 Lines | |||||
#ifndef GLAPIENTRY | #ifndef GLAPIENTRY | ||||
#define GLAPIENTRY GLAD_API_PTR | #define GLAPIENTRY GLAD_API_PTR | ||||
#endif | #endif | ||||
#define GLAD_MAKE_VERSION(major, minor) (major * 10000 + minor) | #define GLAD_MAKE_VERSION(major, minor) (major * 10000 + minor) | ||||
#define GLAD_VERSION_MAJOR(version) (version / 10000) | #define GLAD_VERSION_MAJOR(version) (version / 10000) | ||||
#define GLAD_VERSION_MINOR(version) (version % 10000) | #define GLAD_VERSION_MINOR(version) (version % 10000) | ||||
#define GLAD_GENERATOR_VERSION "2.0.0-beta" | #define GLAD_GENERATOR_VERSION "2.0.2" | ||||
typedef void (*GLADapiproc)(void); | typedef void (*GLADapiproc)(void); | ||||
typedef GLADapiproc (*GLADloadfunc)(const char *name); | typedef GLADapiproc (*GLADloadfunc)(const char *name); | ||||
typedef GLADapiproc (*GLADuserptrloadfunc)(void *userptr, const char *name); | typedef GLADapiproc (*GLADuserptrloadfunc)(void *userptr, const char *name); | ||||
typedef void (*GLADprecallback)(const char *name, GLADapiproc apiproc, int len_args, ...); | typedef void (*GLADprecallback)(const char *name, GLADapiproc apiproc, int len_args, ...); | ||||
typedef void (*GLADpostcallback)(void *ret, const char *name, GLADapiproc apiproc, int len_args, ...); | typedef void (*GLADpostcallback)(void *ret, const char *name, GLADapiproc apiproc, int len_args, ...); | ||||
▲ Show 20 Lines • Show All 1,443 Lines • ▼ Show 20 Lines | |||||
typedef khronos_float_t GLfloat; | typedef khronos_float_t GLfloat; | ||||
typedef khronos_float_t GLclampf; | typedef khronos_float_t GLclampf; | ||||
typedef double GLdouble; | typedef double GLdouble; | ||||
typedef double GLclampd; | typedef double GLclampd; | ||||
typedef void *GLeglClientBufferEXT; | typedef void *GLeglClientBufferEXT; | ||||
typedef void *GLeglImageOES; | typedef void *GLeglImageOES; | ||||
typedef char GLchar; | typedef char GLchar; | ||||
typedef char GLcharARB; | typedef char GLcharARB; | ||||
#ifdef __APPLE__ | #ifdef __APPLE__ | ||||
// See https://bugs.freedesktop.org/show_bug.cgi?id=66346 | typedef void *GLhandleARB; | ||||
Stan: Careful when committing. | |||||
Done Inline ActionsIndeed, a dangerous place. vladislavbelov: Indeed, a dangerous place. | |||||
// macOS considers those to be different. | |||||
// typedef void *GLhandleARB; | |||||
typedef GLuint GLhandleARB; | |||||
#else | #else | ||||
typedef unsigned int GLhandleARB; | typedef unsigned int GLhandleARB; | ||||
#endif | #endif | ||||
typedef khronos_uint16_t GLhalf; | typedef khronos_uint16_t GLhalf; | ||||
typedef khronos_uint16_t GLhalfARB; | typedef khronos_uint16_t GLhalfARB; | ||||
typedef khronos_int32_t GLfixed; | typedef khronos_int32_t GLfixed; | ||||
#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 1060) | #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 1060) | ||||
typedef khronos_intptr_t GLintptr; | typedef khronos_intptr_t GLintptr; | ||||
▲ Show 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | |||||
#define GL_ARB_fragment_shader 1 | #define GL_ARB_fragment_shader 1 | ||||
GLAD_API_CALL int GLAD_GL_ARB_fragment_shader; | GLAD_API_CALL int GLAD_GL_ARB_fragment_shader; | ||||
#define GL_ARB_framebuffer_object 1 | #define GL_ARB_framebuffer_object 1 | ||||
GLAD_API_CALL int GLAD_GL_ARB_framebuffer_object; | GLAD_API_CALL int GLAD_GL_ARB_framebuffer_object; | ||||
#define GL_ARB_geometry_shader4 1 | #define GL_ARB_geometry_shader4 1 | ||||
GLAD_API_CALL int GLAD_GL_ARB_geometry_shader4; | GLAD_API_CALL int GLAD_GL_ARB_geometry_shader4; | ||||
#define GL_ARB_instanced_arrays 1 | #define GL_ARB_instanced_arrays 1 | ||||
GLAD_API_CALL int GLAD_GL_ARB_instanced_arrays; | GLAD_API_CALL int GLAD_GL_ARB_instanced_arrays; | ||||
#define GL_ARB_invalidate_subdata 1 | |||||
GLAD_API_CALL int GLAD_GL_ARB_invalidate_subdata; | |||||
#define GL_ARB_map_buffer_range 1 | #define GL_ARB_map_buffer_range 1 | ||||
GLAD_API_CALL int GLAD_GL_ARB_map_buffer_range; | GLAD_API_CALL int GLAD_GL_ARB_map_buffer_range; | ||||
#define GL_ARB_multitexture 1 | #define GL_ARB_multitexture 1 | ||||
GLAD_API_CALL int GLAD_GL_ARB_multitexture; | GLAD_API_CALL int GLAD_GL_ARB_multitexture; | ||||
#define GL_ARB_occlusion_query 1 | #define GL_ARB_occlusion_query 1 | ||||
GLAD_API_CALL int GLAD_GL_ARB_occlusion_query; | GLAD_API_CALL int GLAD_GL_ARB_occlusion_query; | ||||
#define GL_ARB_shader_objects 1 | #define GL_ARB_shader_objects 1 | ||||
GLAD_API_CALL int GLAD_GL_ARB_shader_objects; | GLAD_API_CALL int GLAD_GL_ARB_shader_objects; | ||||
▲ Show 20 Lines • Show All 372 Lines • ▼ Show 20 Lines | |||||
typedef void (GLAD_API_PTR *PFNGLINDEXIPROC)(GLint c); | typedef void (GLAD_API_PTR *PFNGLINDEXIPROC)(GLint c); | ||||
typedef void (GLAD_API_PTR *PFNGLINDEXIVPROC)(const GLint * c); | typedef void (GLAD_API_PTR *PFNGLINDEXIVPROC)(const GLint * c); | ||||
typedef void (GLAD_API_PTR *PFNGLINDEXSPROC)(GLshort c); | typedef void (GLAD_API_PTR *PFNGLINDEXSPROC)(GLshort c); | ||||
typedef void (GLAD_API_PTR *PFNGLINDEXSVPROC)(const GLshort * c); | typedef void (GLAD_API_PTR *PFNGLINDEXSVPROC)(const GLshort * c); | ||||
typedef void (GLAD_API_PTR *PFNGLINDEXUBPROC)(GLubyte c); | typedef void (GLAD_API_PTR *PFNGLINDEXUBPROC)(GLubyte c); | ||||
typedef void (GLAD_API_PTR *PFNGLINDEXUBVPROC)(const GLubyte * c); | typedef void (GLAD_API_PTR *PFNGLINDEXUBVPROC)(const GLubyte * c); | ||||
typedef void (GLAD_API_PTR *PFNGLINITNAMESPROC)(void); | typedef void (GLAD_API_PTR *PFNGLINITNAMESPROC)(void); | ||||
typedef void (GLAD_API_PTR *PFNGLINTERLEAVEDARRAYSPROC)(GLenum format, GLsizei stride, const void * pointer); | typedef void (GLAD_API_PTR *PFNGLINTERLEAVEDARRAYSPROC)(GLenum format, GLsizei stride, const void * pointer); | ||||
typedef void (GLAD_API_PTR *PFNGLINVALIDATEBUFFERDATAPROC)(GLuint buffer); | |||||
typedef void (GLAD_API_PTR *PFNGLINVALIDATEBUFFERSUBDATAPROC)(GLuint buffer, GLintptr offset, GLsizeiptr length); | |||||
typedef void (GLAD_API_PTR *PFNGLINVALIDATEFRAMEBUFFERPROC)(GLenum target, GLsizei numAttachments, const GLenum * attachments); | |||||
typedef void (GLAD_API_PTR *PFNGLINVALIDATESUBFRAMEBUFFERPROC)(GLenum target, GLsizei numAttachments, const GLenum * attachments, GLint x, GLint y, GLsizei width, GLsizei height); | |||||
typedef void (GLAD_API_PTR *PFNGLINVALIDATETEXIMAGEPROC)(GLuint texture, GLint level); | |||||
typedef void (GLAD_API_PTR *PFNGLINVALIDATETEXSUBIMAGEPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth); | |||||
typedef GLboolean (GLAD_API_PTR *PFNGLISBUFFERPROC)(GLuint buffer); | typedef GLboolean (GLAD_API_PTR *PFNGLISBUFFERPROC)(GLuint buffer); | ||||
typedef GLboolean (GLAD_API_PTR *PFNGLISBUFFERARBPROC)(GLuint buffer); | typedef GLboolean (GLAD_API_PTR *PFNGLISBUFFERARBPROC)(GLuint buffer); | ||||
typedef GLboolean (GLAD_API_PTR *PFNGLISENABLEDPROC)(GLenum cap); | typedef GLboolean (GLAD_API_PTR *PFNGLISENABLEDPROC)(GLenum cap); | ||||
typedef GLboolean (GLAD_API_PTR *PFNGLISFRAMEBUFFERPROC)(GLuint framebuffer); | typedef GLboolean (GLAD_API_PTR *PFNGLISFRAMEBUFFERPROC)(GLuint framebuffer); | ||||
typedef GLboolean (GLAD_API_PTR *PFNGLISFRAMEBUFFEREXTPROC)(GLuint framebuffer); | typedef GLboolean (GLAD_API_PTR *PFNGLISFRAMEBUFFEREXTPROC)(GLuint framebuffer); | ||||
typedef GLboolean (GLAD_API_PTR *PFNGLISLISTPROC)(GLuint list); | typedef GLboolean (GLAD_API_PTR *PFNGLISLISTPROC)(GLuint list); | ||||
typedef GLboolean (GLAD_API_PTR *PFNGLISPROGRAMPROC)(GLuint program); | typedef GLboolean (GLAD_API_PTR *PFNGLISPROGRAMPROC)(GLuint program); | ||||
typedef GLboolean (GLAD_API_PTR *PFNGLISPROGRAMARBPROC)(GLuint program); | typedef GLboolean (GLAD_API_PTR *PFNGLISPROGRAMARBPROC)(GLuint program); | ||||
▲ Show 20 Lines • Show All 1,148 Lines • ▼ Show 20 Lines | |||||
GLAD_API_CALL PFNGLINDEXUBPROC glad_glIndexub; | GLAD_API_CALL PFNGLINDEXUBPROC glad_glIndexub; | ||||
#define glIndexub glad_glIndexub | #define glIndexub glad_glIndexub | ||||
GLAD_API_CALL PFNGLINDEXUBVPROC glad_glIndexubv; | GLAD_API_CALL PFNGLINDEXUBVPROC glad_glIndexubv; | ||||
#define glIndexubv glad_glIndexubv | #define glIndexubv glad_glIndexubv | ||||
GLAD_API_CALL PFNGLINITNAMESPROC glad_glInitNames; | GLAD_API_CALL PFNGLINITNAMESPROC glad_glInitNames; | ||||
#define glInitNames glad_glInitNames | #define glInitNames glad_glInitNames | ||||
GLAD_API_CALL PFNGLINTERLEAVEDARRAYSPROC glad_glInterleavedArrays; | GLAD_API_CALL PFNGLINTERLEAVEDARRAYSPROC glad_glInterleavedArrays; | ||||
#define glInterleavedArrays glad_glInterleavedArrays | #define glInterleavedArrays glad_glInterleavedArrays | ||||
GLAD_API_CALL PFNGLINVALIDATEBUFFERDATAPROC glad_glInvalidateBufferData; | |||||
#define glInvalidateBufferData glad_glInvalidateBufferData | |||||
GLAD_API_CALL PFNGLINVALIDATEBUFFERSUBDATAPROC glad_glInvalidateBufferSubData; | |||||
#define glInvalidateBufferSubData glad_glInvalidateBufferSubData | |||||
GLAD_API_CALL PFNGLINVALIDATEFRAMEBUFFERPROC glad_glInvalidateFramebuffer; | |||||
#define glInvalidateFramebuffer glad_glInvalidateFramebuffer | |||||
GLAD_API_CALL PFNGLINVALIDATESUBFRAMEBUFFERPROC glad_glInvalidateSubFramebuffer; | |||||
#define glInvalidateSubFramebuffer glad_glInvalidateSubFramebuffer | |||||
GLAD_API_CALL PFNGLINVALIDATETEXIMAGEPROC glad_glInvalidateTexImage; | |||||
#define glInvalidateTexImage glad_glInvalidateTexImage | |||||
GLAD_API_CALL PFNGLINVALIDATETEXSUBIMAGEPROC glad_glInvalidateTexSubImage; | |||||
#define glInvalidateTexSubImage glad_glInvalidateTexSubImage | |||||
GLAD_API_CALL PFNGLISBUFFERPROC glad_glIsBuffer; | GLAD_API_CALL PFNGLISBUFFERPROC glad_glIsBuffer; | ||||
#define glIsBuffer glad_glIsBuffer | #define glIsBuffer glad_glIsBuffer | ||||
GLAD_API_CALL PFNGLISBUFFERARBPROC glad_glIsBufferARB; | GLAD_API_CALL PFNGLISBUFFERARBPROC glad_glIsBufferARB; | ||||
#define glIsBufferARB glad_glIsBufferARB | #define glIsBufferARB glad_glIsBufferARB | ||||
GLAD_API_CALL PFNGLISENABLEDPROC glad_glIsEnabled; | GLAD_API_CALL PFNGLISENABLEDPROC glad_glIsEnabled; | ||||
#define glIsEnabled glad_glIsEnabled | #define glIsEnabled glad_glIsEnabled | ||||
GLAD_API_CALL PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer; | GLAD_API_CALL PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer; | ||||
#define glIsFramebuffer glad_glIsFramebuffer | #define glIsFramebuffer glad_glIsFramebuffer | ||||
▲ Show 20 Lines • Show All 1,012 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
Careful when committing.