draw_instanced
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
|
||||
OpenGL loader generated by glad 0.1.36 on Thu Feb 13 06:39:18 2025.
|
||||
OpenGL loader generated by glad 0.1.36 on Wed May 7 15:37:09 2025.
|
||||
|
||||
Language/Generator: C/C++
|
||||
Specification: gl
|
||||
@@ -8,6 +8,7 @@
|
||||
Profile: compatibility
|
||||
Extensions:
|
||||
GL_ARB_depth_texture,
|
||||
GL_ARB_draw_instanced,
|
||||
GL_ARB_framebuffer_object,
|
||||
GL_ARB_shadow,
|
||||
GL_ARB_texture_filter_anisotropic
|
||||
@@ -17,9 +18,9 @@
|
||||
Reproducible: False
|
||||
|
||||
Commandline:
|
||||
--profile="compatibility" --api="gl=2.1" --generator="c" --spec="gl" --extensions="GL_ARB_depth_texture,GL_ARB_framebuffer_object,GL_ARB_shadow,GL_ARB_texture_filter_anisotropic"
|
||||
--profile="compatibility" --api="gl=2.1" --generator="c" --spec="gl" --extensions="GL_ARB_depth_texture,GL_ARB_draw_instanced,GL_ARB_framebuffer_object,GL_ARB_shadow,GL_ARB_texture_filter_anisotropic"
|
||||
Online:
|
||||
https://glad.dav1d.de/#profile=compatibility&language=c&specification=gl&loader=on&api=gl%3D2.1&extensions=GL_ARB_depth_texture&extensions=GL_ARB_framebuffer_object&extensions=GL_ARB_shadow&extensions=GL_ARB_texture_filter_anisotropic
|
||||
https://glad.dav1d.de/#profile=compatibility&language=c&specification=gl&loader=on&api=gl%3D2.1&extensions=GL_ARB_depth_texture&extensions=GL_ARB_draw_instanced&extensions=GL_ARB_framebuffer_object&extensions=GL_ARB_shadow&extensions=GL_ARB_texture_filter_anisotropic
|
||||
*/
|
||||
|
||||
|
||||
@@ -2780,6 +2781,16 @@ GLAPI PFNGLUNIFORMMATRIX4X3FVPROC glad_glUniformMatrix4x3fv;
|
||||
#define GL_ARB_depth_texture 1
|
||||
GLAPI int GLAD_GL_ARB_depth_texture;
|
||||
#endif
|
||||
#ifndef GL_ARB_draw_instanced
|
||||
#define GL_ARB_draw_instanced 1
|
||||
GLAPI int GLAD_GL_ARB_draw_instanced;
|
||||
typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDARBPROC)(GLenum mode, GLint first, GLsizei count, GLsizei primcount);
|
||||
GLAPI PFNGLDRAWARRAYSINSTANCEDARBPROC glad_glDrawArraysInstancedARB;
|
||||
#define glDrawArraysInstancedARB glad_glDrawArraysInstancedARB
|
||||
typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDARBPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
|
||||
GLAPI PFNGLDRAWELEMENTSINSTANCEDARBPROC glad_glDrawElementsInstancedARB;
|
||||
#define glDrawElementsInstancedARB glad_glDrawElementsInstancedARB
|
||||
#endif
|
||||
#ifndef GL_ARB_framebuffer_object
|
||||
#define GL_ARB_framebuffer_object 1
|
||||
GLAPI int GLAD_GL_ARB_framebuffer_object;
|
||||
|
17
src/glad.c
17
src/glad.c
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
|
||||
OpenGL loader generated by glad 0.1.36 on Thu Feb 13 06:39:18 2025.
|
||||
OpenGL loader generated by glad 0.1.36 on Wed May 7 15:37:09 2025.
|
||||
|
||||
Language/Generator: C/C++
|
||||
Specification: gl
|
||||
@@ -8,6 +8,7 @@
|
||||
Profile: compatibility
|
||||
Extensions:
|
||||
GL_ARB_depth_texture,
|
||||
GL_ARB_draw_instanced,
|
||||
GL_ARB_framebuffer_object,
|
||||
GL_ARB_shadow,
|
||||
GL_ARB_texture_filter_anisotropic
|
||||
@@ -17,9 +18,9 @@
|
||||
Reproducible: False
|
||||
|
||||
Commandline:
|
||||
--profile="compatibility" --api="gl=2.1" --generator="c" --spec="gl" --extensions="GL_ARB_depth_texture,GL_ARB_framebuffer_object,GL_ARB_shadow,GL_ARB_texture_filter_anisotropic"
|
||||
--profile="compatibility" --api="gl=2.1" --generator="c" --spec="gl" --extensions="GL_ARB_depth_texture,GL_ARB_draw_instanced,GL_ARB_framebuffer_object,GL_ARB_shadow,GL_ARB_texture_filter_anisotropic"
|
||||
Online:
|
||||
https://glad.dav1d.de/#profile=compatibility&language=c&specification=gl&loader=on&api=gl%3D2.1&extensions=GL_ARB_depth_texture&extensions=GL_ARB_framebuffer_object&extensions=GL_ARB_shadow&extensions=GL_ARB_texture_filter_anisotropic
|
||||
https://glad.dav1d.de/#profile=compatibility&language=c&specification=gl&loader=on&api=gl%3D2.1&extensions=GL_ARB_depth_texture&extensions=GL_ARB_draw_instanced&extensions=GL_ARB_framebuffer_object&extensions=GL_ARB_shadow&extensions=GL_ARB_texture_filter_anisotropic
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -818,9 +819,12 @@ PFNGLWINDOWPOS3IVPROC glad_glWindowPos3iv = NULL;
|
||||
PFNGLWINDOWPOS3SPROC glad_glWindowPos3s = NULL;
|
||||
PFNGLWINDOWPOS3SVPROC glad_glWindowPos3sv = NULL;
|
||||
int GLAD_GL_ARB_depth_texture = 0;
|
||||
int GLAD_GL_ARB_draw_instanced = 0;
|
||||
int GLAD_GL_ARB_framebuffer_object = 0;
|
||||
int GLAD_GL_ARB_shadow = 0;
|
||||
int GLAD_GL_ARB_texture_filter_anisotropic = 0;
|
||||
PFNGLDRAWARRAYSINSTANCEDARBPROC glad_glDrawArraysInstancedARB = NULL;
|
||||
PFNGLDRAWELEMENTSINSTANCEDARBPROC glad_glDrawElementsInstancedARB = NULL;
|
||||
PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer = NULL;
|
||||
PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer = NULL;
|
||||
PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers = NULL;
|
||||
@@ -1416,6 +1420,11 @@ static void load_GL_VERSION_2_1(GLADloadproc load) {
|
||||
glad_glUniformMatrix3x4fv = (PFNGLUNIFORMMATRIX3X4FVPROC)load("glUniformMatrix3x4fv");
|
||||
glad_glUniformMatrix4x3fv = (PFNGLUNIFORMMATRIX4X3FVPROC)load("glUniformMatrix4x3fv");
|
||||
}
|
||||
static void load_GL_ARB_draw_instanced(GLADloadproc load) {
|
||||
if(!GLAD_GL_ARB_draw_instanced) return;
|
||||
glad_glDrawArraysInstancedARB = (PFNGLDRAWARRAYSINSTANCEDARBPROC)load("glDrawArraysInstancedARB");
|
||||
glad_glDrawElementsInstancedARB = (PFNGLDRAWELEMENTSINSTANCEDARBPROC)load("glDrawElementsInstancedARB");
|
||||
}
|
||||
static void load_GL_ARB_framebuffer_object(GLADloadproc load) {
|
||||
if(!GLAD_GL_ARB_framebuffer_object) return;
|
||||
glad_glIsRenderbuffer = (PFNGLISRENDERBUFFERPROC)load("glIsRenderbuffer");
|
||||
@@ -1442,6 +1451,7 @@ static void load_GL_ARB_framebuffer_object(GLADloadproc load) {
|
||||
static int find_extensionsGL(void) {
|
||||
if (!get_exts()) return 0;
|
||||
GLAD_GL_ARB_depth_texture = has_ext("GL_ARB_depth_texture");
|
||||
GLAD_GL_ARB_draw_instanced = has_ext("GL_ARB_draw_instanced");
|
||||
GLAD_GL_ARB_framebuffer_object = has_ext("GL_ARB_framebuffer_object");
|
||||
GLAD_GL_ARB_shadow = has_ext("GL_ARB_shadow");
|
||||
GLAD_GL_ARB_texture_filter_anisotropic = has_ext("GL_ARB_texture_filter_anisotropic");
|
||||
@@ -1515,6 +1525,7 @@ int gladLoadGLLoader(GLADloadproc load) {
|
||||
load_GL_VERSION_2_1(load);
|
||||
|
||||
if (!find_extensionsGL()) return 0;
|
||||
load_GL_ARB_draw_instanced(load);
|
||||
load_GL_ARB_framebuffer_object(load);
|
||||
return GLVersion.major != 0 || GLVersion.minor != 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user