Skip to content

Commit 1c65c4a

Browse files
committed
integrated PR with queries
1 parent 41bb25b commit 1c65c4a

File tree

10 files changed

+343
-106
lines changed

10 files changed

+343
-106
lines changed

CHANGELOG

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
v0.8.0
22
* Fixed the binding of `glGetTransformFeedbackVarying`
33
* Fixed error when creating an empty Depth_Component texture (#135)
4+
* Added package:
5+
- GL.Objects.Queries
46
* Added missing functionality in:
57
- GL.Rasterization (glPolygonOffset)
68
- GL.Objects.Buffers (glDrawTransformFeedback, glDrawTransformFeedbackStream,
79
glGenTransformFeedbacks, glDeleteTransformFeedbacks,
810
glBindTransformFeedback, glMapBufferRange,
9-
glFlushMappedBufferRange)
11+
glFlushMappedBufferRange, glGetBufferSubData)
1012
* Removed SOIL since it doesn't compile on macOS Catalina and replaced it with
1113
GID. Added `opengl-images.gpr` to replace SOIL functionality.
1214
v0.7.0:

src/gl/generated/gl-api.ads

Lines changed: 94 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -329,64 +329,82 @@ private package GL.API is
329329
pragma Convention (StdCall, T150);
330330
type T151 is access procedure (P1 : Low_Level.Enums.Framebuffer_Kind; P2 : Enums.Framebuffer_Param; P3 : out Low_Level.Bool);
331331
pragma Convention (StdCall, T151);
332-
type T152 is access procedure (P1 : UInt; P2 : Enums.Shader_Param; P3 : out Int);
332+
type T152 is access procedure (P1 : Size; P2 : out UInt);
333333
pragma Convention (StdCall, T152);
334-
type T153 is access procedure (P1 : UInt; P2 : Enums.Shader_Param; P3 : out Objects.Shaders.Shader_Type);
334+
type T153 is access procedure (P1 : Size; P2 : Low_Level.UInt_Array);
335335
pragma Convention (StdCall, T153);
336-
type T154 is access function (P1 : Objects.Shaders.Shader_Type) return UInt;
336+
type T154 is access function (P1 : UInt) return Boolean;
337337
pragma Convention (StdCall, T154);
338-
type T155 is access procedure (P1 : UInt);
338+
type T155 is access procedure (P1 : UInt; P2 : Low_Level.Enums.Query_Results; P3 : out UInt);
339339
pragma Convention (StdCall, T155);
340-
type T156 is access procedure (P1 : UInt; P2 : Size; P3 : Low_Level.Char_Access_Array; P4 : Low_Level.Int_Array);
340+
type T156 is access procedure (P1 : Low_Level.Enums.Query_Param; P2 : UInt);
341341
pragma Convention (StdCall, T156);
342-
type T157 is access procedure (P1 : UInt; P2 : Size; P3 : out Size; P4 : in out String);
342+
type T157 is access procedure (P1 : Low_Level.Enums.Query_Param);
343343
pragma Convention (StdCall, T157);
344-
type T158 is access procedure;
344+
type T158 is access procedure (P1 : Low_Level.Enums.Query_Param; P2, P3 : UInt);
345345
pragma Convention (StdCall, T158);
346-
type T159 is access function return UInt;
346+
type T159 is access procedure (P1 : Low_Level.Enums.Query_Param; P2 : UInt);
347347
pragma Convention (StdCall, T159);
348-
type T160 is access procedure (P1 : UInt);
348+
type T160 is access procedure (P1 : UInt; P2 : Low_Level.Enums.Query_Param);
349349
pragma Convention (StdCall, T160);
350-
type T161 is access procedure (P1 : UInt; P2 : Enums.Program_Param; P3 : out Int);
350+
type T161 is access procedure (P1 : UInt; P2 : Enums.Shader_Param; P3 : out Int);
351351
pragma Convention (StdCall, T161);
352-
type T162 is access procedure (P1, P2 : UInt);
352+
type T162 is access procedure (P1 : UInt; P2 : Enums.Shader_Param; P3 : out Objects.Shaders.Shader_Type);
353353
pragma Convention (StdCall, T162);
354-
type T163 is access procedure (P1 : UInt; P2 : Size; P3 : out Size; P4 : in out String);
354+
type T163 is access function (P1 : Objects.Shaders.Shader_Type) return UInt;
355355
pragma Convention (StdCall, T163);
356-
type T164 is access procedure (P1 : UInt; P2 : Objects.Shaders.Shader_Type; P3 : Enums.Program_Stage_Param; P4 : out Size);
356+
type T164 is access procedure (P1 : UInt);
357357
pragma Convention (StdCall, T164);
358-
type T165 is access function (P1 : UInt; P2 : Objects.Shaders.Shader_Type; P3 : Interfaces.C.char_array) return Objects.Programs.Subroutine_Index_Type;
358+
type T165 is access procedure (P1 : UInt; P2 : Size; P3 : Low_Level.Char_Access_Array; P4 : Low_Level.Int_Array);
359359
pragma Convention (StdCall, T165);
360-
type T166 is access function (P1 : UInt; P2 : Objects.Shaders.Shader_Type; P3 : Interfaces.C.char_array) return Objects.Programs.Uniform_Location_Type;
360+
type T166 is access procedure (P1 : UInt; P2 : Size; P3 : out Size; P4 : in out String);
361361
pragma Convention (StdCall, T166);
362-
type T167 is access function (P1 : UInt; P2 : C.char_array) return Uniforms.Uniform;
362+
type T167 is access procedure;
363363
pragma Convention (StdCall, T167);
364-
type T168 is access procedure (P1 : UInt; P2 : Attributes.Attribute; P3 : C.char_array);
364+
type T168 is access function return UInt;
365365
pragma Convention (StdCall, T168);
366-
type T169 is access function (P1 : UInt; P2 : C.char_array) return Attributes.Attribute;
366+
type T169 is access procedure (P1 : UInt);
367367
pragma Convention (StdCall, T169);
368-
type T170 is access procedure (P1 : Attributes.Attribute; P2 : Component_Count; P3 : Numeric_Type; P4 : Low_Level.Bool; P5 : Size; P6 : Int);
368+
type T170 is access procedure (P1 : UInt; P2 : Enums.Program_Param; P3 : out Int);
369369
pragma Convention (StdCall, T170);
370-
type T171 is access procedure (P1 : Attributes.Attribute; P2 : Component_Count; P3 : Numeric_Type; P4 : Size; P5 : Int);
370+
type T171 is access procedure (P1, P2 : UInt);
371371
pragma Convention (StdCall, T171);
372-
type T172 is access procedure (P1 : Attributes.Attribute);
372+
type T172 is access procedure (P1 : UInt; P2 : Size; P3 : out Size; P4 : in out String);
373373
pragma Convention (StdCall, T172);
374-
type T173 is access procedure (P1 : UInt; P2 : Size; P3 : out Size; P4 : in out UInt_Array);
374+
type T173 is access procedure (P1 : UInt; P2 : Objects.Shaders.Shader_Type; P3 : Enums.Program_Stage_Param; P4 : out Size);
375375
pragma Convention (StdCall, T173);
376-
type T174 is access procedure (P1 : UInt; P2 : Buffers.Draw_Buffer_Index; P3 : Interfaces.C.char_array);
376+
type T174 is access function (P1 : UInt; P2 : Objects.Shaders.Shader_Type; P3 : Interfaces.C.char_array) return Objects.Programs.Subroutine_Index_Type;
377377
pragma Convention (StdCall, T174);
378-
type T175 is access function (P1 : UInt; P2 : Interfaces.C.char_array) return Int;
378+
type T175 is access function (P1 : UInt; P2 : Objects.Shaders.Shader_Type; P3 : Interfaces.C.char_array) return Objects.Programs.Uniform_Location_Type;
379379
pragma Convention (StdCall, T175);
380-
type T176 is access procedure (P1 : Connection_Mode);
380+
type T176 is access function (P1 : UInt; P2 : C.char_array) return Uniforms.Uniform;
381381
pragma Convention (StdCall, T176);
382-
type T177 is access procedure (P1 : UInt; P2 : Int; P3 : Size; P4 : out Size; P5 : out Size; P6 : out GL.Objects.Programs.Active_Attribute; P7 : in out Interfaces.C.char_array);
382+
type T177 is access procedure (P1 : UInt; P2 : Attributes.Attribute; P3 : C.char_array);
383383
pragma Convention (StdCall, T177);
384-
type T178 is access procedure (P1 : UInt; P2 : Size; P3 : Low_Level.Char_Access_Array; P4 : GL.Objects.Programs.Buffer_Mode);
384+
type T178 is access function (P1 : UInt; P2 : C.char_array) return Attributes.Attribute;
385385
pragma Convention (StdCall, T178);
386-
type T179 is access procedure (P1 : Enums.Patch_Parameter_Int; P2 : Int);
386+
type T179 is access procedure (P1 : Attributes.Attribute; P2 : Component_Count; P3 : Numeric_Type; P4 : Low_Level.Bool; P5 : Size; P6 : Int);
387387
pragma Convention (StdCall, T179);
388-
type T180 is access procedure (P1 : Enums.Patch_Parameter_Float_Array; P2 : Types.Single_Array);
388+
type T180 is access procedure (P1 : Attributes.Attribute; P2 : Component_Count; P3 : Numeric_Type; P4 : Size; P5 : Int);
389389
pragma Convention (StdCall, T180);
390+
type T181 is access procedure (P1 : Attributes.Attribute);
391+
pragma Convention (StdCall, T181);
392+
type T182 is access procedure (P1 : UInt; P2 : Size; P3 : out Size; P4 : in out UInt_Array);
393+
pragma Convention (StdCall, T182);
394+
type T183 is access procedure (P1 : UInt; P2 : Buffers.Draw_Buffer_Index; P3 : Interfaces.C.char_array);
395+
pragma Convention (StdCall, T183);
396+
type T184 is access function (P1 : UInt; P2 : Interfaces.C.char_array) return Int;
397+
pragma Convention (StdCall, T184);
398+
type T185 is access procedure (P1 : Connection_Mode);
399+
pragma Convention (StdCall, T185);
400+
type T186 is access procedure (P1 : UInt; P2 : Int; P3 : Size; P4 : out Size; P5 : out Size; P6 : out GL.Objects.Programs.Active_Attribute; P7 : in out Interfaces.C.char_array);
401+
pragma Convention (StdCall, T186);
402+
type T187 is access procedure (P1 : UInt; P2 : Size; P3 : Low_Level.Char_Access_Array; P4 : GL.Objects.Programs.Buffer_Mode);
403+
pragma Convention (StdCall, T187);
404+
type T188 is access procedure (P1 : Enums.Patch_Parameter_Int; P2 : Int);
405+
pragma Convention (StdCall, T188);
406+
type T189 is access procedure (P1 : Enums.Patch_Parameter_Float_Array; P2 : Types.Single_Array);
407+
pragma Convention (StdCall, T189);
390408
function Get_Error return Errors.Error_Code;
391409
pragma Import (StdCall, Get_Error, "glGetError");
392410
procedure Flush;
@@ -700,6 +718,7 @@ private package GL.API is
700718
Map_Buffer_Range : T116;
701719
Buffer_Pointer : T117;
702720
Buffer_Sub_Data : T118;
721+
Get_Buffer_Sub_Data : T118;
703722
Unmap_Buffer : T119;
704723
Get_Buffer_Parameter_Access_Kind : T120;
705724
Get_Buffer_Parameter_Bool : T121;
@@ -739,43 +758,52 @@ private package GL.API is
739758
Framebuffer_Parameter_Bool : T149;
740759
Get_Framebuffer_Parameter_Size : T150;
741760
Get_Framebuffer_Parameter_Bool : T151;
742-
Get_Shader_Param : T152;
743-
Get_Shader_Type : T153;
744-
Create_Shader : T154;
745-
Delete_Shader : T155;
746-
Shader_Source : T156;
747-
Get_Shader_Source : T157;
748-
Compile_Shader : T155;
749-
Release_Shader_Compiler : T158;
750-
Get_Shader_Info_Log : T157;
751-
Create_Program : T159;
752-
Delete_Program : T160;
753-
Get_Program_Param : T161;
754-
Attach_Shader : T162;
755-
Link_Program : T160;
756-
Get_Program_Info_Log : T163;
757-
Get_Program_Stage : T164;
758-
Get_Subroutine_Index : T165;
759-
Get_Subroutine_Uniform_Location : T166;
760-
Use_Program : T160;
761-
Validate_Program : T160;
762-
Get_Uniform_Location : T167;
763-
Bind_Attrib_Location : T168;
764-
Get_Attrib_Location : T169;
765-
Vertex_Attrib_Pointer : T170;
766-
Vertex_AttribI_Pointer : T171;
767-
Vertex_AttribL_Pointer : T171;
768-
Enable_Vertex_Attrib_Array : T172;
769-
Disable_Vertex_Attrib_Array : T172;
770-
Get_Attached_Shaders : T173;
771-
Bind_Frag_Data_Location : T174;
772-
Get_Frag_Data_Location : T175;
773-
Begin_Transform_Feedback : T176;
774-
End_Transform_Feedback : T158;
775-
Get_Transform_Feedback_Varying : T177;
776-
Transform_Feedback_Varyings : T178;
777-
Set_Patch_Parameter_Int : T179;
778-
Set_Patch_Parameter_Float_Array : T180;
761+
Gen_Queries : T152;
762+
Delete_Queries : T153;
763+
Is_Query : T154;
764+
Get_Query_Object : T155;
765+
Begin_Query : T156;
766+
End_Query : T157;
767+
Begin_Query_Indexed : T158;
768+
End_Query_Indexed : T159;
769+
Query_Counter : T160;
770+
Get_Shader_Param : T161;
771+
Get_Shader_Type : T162;
772+
Create_Shader : T163;
773+
Delete_Shader : T164;
774+
Shader_Source : T165;
775+
Get_Shader_Source : T166;
776+
Compile_Shader : T164;
777+
Release_Shader_Compiler : T167;
778+
Get_Shader_Info_Log : T166;
779+
Create_Program : T168;
780+
Delete_Program : T169;
781+
Get_Program_Param : T170;
782+
Attach_Shader : T171;
783+
Link_Program : T169;
784+
Get_Program_Info_Log : T172;
785+
Get_Program_Stage : T173;
786+
Get_Subroutine_Index : T174;
787+
Get_Subroutine_Uniform_Location : T175;
788+
Use_Program : T169;
789+
Validate_Program : T169;
790+
Get_Uniform_Location : T176;
791+
Bind_Attrib_Location : T177;
792+
Get_Attrib_Location : T178;
793+
Vertex_Attrib_Pointer : T179;
794+
Vertex_AttribI_Pointer : T180;
795+
Vertex_AttribL_Pointer : T180;
796+
Enable_Vertex_Attrib_Array : T181;
797+
Disable_Vertex_Attrib_Array : T181;
798+
Get_Attached_Shaders : T182;
799+
Bind_Frag_Data_Location : T183;
800+
Get_Frag_Data_Location : T184;
801+
Begin_Transform_Feedback : T185;
802+
End_Transform_Feedback : T167;
803+
Get_Transform_Feedback_Varying : T186;
804+
Transform_Feedback_Varyings : T187;
805+
Set_Patch_Parameter_Int : T188;
806+
Set_Patch_Parameter_Float_Array : T189;
779807
procedure Depth_Range (Near, Far : Double);
780808
pragma Import (StdCall, Depth_Range, "glDepthRange");
781809
procedure Viewport (X, Y : Int; Width, Height : Size);

src/gl/generated/gl-load_function_pointers.adb

Lines changed: 56 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,15 @@ procedure GL.Load_Function_Pointers is
208208
function Load_T178 is new Load (T178);
209209
function Load_T179 is new Load (T179);
210210
function Load_T180 is new Load (T180);
211+
function Load_T181 is new Load (T181);
212+
function Load_T182 is new Load (T182);
213+
function Load_T183 is new Load (T183);
214+
function Load_T184 is new Load (T184);
215+
function Load_T185 is new Load (T185);
216+
function Load_T186 is new Load (T186);
217+
function Load_T187 is new Load (T187);
218+
function Load_T188 is new Load (T188);
219+
function Load_T189 is new Load (T189);
211220
begin
212221
GL.API.Doubles.Vertex_Attrib1 := Load_T1 ("glVertexAttribL1d");
213222
GL.API.Doubles.Vertex_Attrib2 := Load_T2 ("glVertexAttribL2d");
@@ -332,6 +341,7 @@ begin
332341
GL.API.Map_Buffer_Range := Load_T116 ("glMapBufferRange");
333342
GL.API.Buffer_Pointer := Load_T117 ("glGetBufferPointerv");
334343
GL.API.Buffer_Sub_Data := Load_T118 ("glBufferSubData");
344+
GL.API.Get_Buffer_Sub_Data := Load_T118 ("glGetBufferSubData");
335345
GL.API.Unmap_Buffer := Load_T119 ("glUnmapBuffer");
336346
GL.API.Get_Buffer_Parameter_Access_Kind := Load_T120 ("glGetBufferParameteriv");
337347
GL.API.Get_Buffer_Parameter_Bool := Load_T121 ("glGetBufferParameteriv");
@@ -365,41 +375,50 @@ begin
365375
GL.API.Framebuffer_Parameter_Bool := Load_T149 ("glFramebufferParameteri");
366376
GL.API.Get_Framebuffer_Parameter_Size := Load_T150 ("glGetFramebufferParameteriv");
367377
GL.API.Get_Framebuffer_Parameter_Bool := Load_T151 ("glGetFramebufferParameteriv");
368-
GL.API.Get_Shader_Param := Load_T152 ("glGetShaderiv");
369-
GL.API.Get_Shader_Type := Load_T153 ("glGetShaderiv");
370-
GL.API.Create_Shader := Load_T154 ("glCreateShader");
371-
GL.API.Delete_Shader := Load_T155 ("glDeleteShader");
372-
GL.API.Shader_Source := Load_T156 ("glShaderSource");
373-
GL.API.Get_Shader_Source := Load_T157 ("glGetShaderSource");
374-
GL.API.Compile_Shader := Load_T155 ("glCompileShader");
375-
GL.API.Release_Shader_Compiler := Load_T158 ("glReleaseShaderCompiler");
376-
GL.API.Get_Shader_Info_Log := Load_T157 ("glGetShaderInfoLog");
377-
GL.API.Create_Program := Load_T159 ("glCreateProgram");
378-
GL.API.Delete_Program := Load_T160 ("glDeleteProgram");
379-
GL.API.Get_Program_Param := Load_T161 ("glGetProgramiv");
380-
GL.API.Attach_Shader := Load_T162 ("glAttachShader");
381-
GL.API.Link_Program := Load_T160 ("glLinkProgram");
382-
GL.API.Get_Program_Info_Log := Load_T163 ("glGetProgramInfoLog");
383-
GL.API.Get_Program_Stage := Load_T164 ("glGetProgramStageiv");
384-
GL.API.Get_Subroutine_Index := Load_T165 ("glGetSubroutineIndex");
385-
GL.API.Get_Subroutine_Uniform_Location := Load_T166 ("glGetSubroutineUniformLocation");
386-
GL.API.Use_Program := Load_T160 ("glUseProgram");
387-
GL.API.Validate_Program := Load_T160 ("glValidateProgram");
388-
GL.API.Get_Uniform_Location := Load_T167 ("glGetUniformLocation");
389-
GL.API.Bind_Attrib_Location := Load_T168 ("glBindAttribLocation");
390-
GL.API.Get_Attrib_Location := Load_T169 ("glGetAttribLocation");
391-
GL.API.Vertex_Attrib_Pointer := Load_T170 ("glVertexAttribPointer");
392-
GL.API.Vertex_AttribI_Pointer := Load_T171 ("glVertexAttribIPointer");
393-
GL.API.Vertex_AttribL_Pointer := Load_T171 ("glVertexAttribLPointer");
394-
GL.API.Enable_Vertex_Attrib_Array := Load_T172 ("glEnableVertexAttribArray");
395-
GL.API.Disable_Vertex_Attrib_Array := Load_T172 ("glDisableVertexAttribArray");
396-
GL.API.Get_Attached_Shaders := Load_T173 ("glGetAttachedShaders");
397-
GL.API.Bind_Frag_Data_Location := Load_T174 ("glBindFragDataLocation");
398-
GL.API.Get_Frag_Data_Location := Load_T175 ("glGetFragDataLocation");
399-
GL.API.Begin_Transform_Feedback := Load_T176 ("glBeginTransformFeedback");
400-
GL.API.End_Transform_Feedback := Load_T158 ("glEndTransformFeedback");
401-
GL.API.Get_Transform_Feedback_Varying := Load_T177 ("glGetTransformFeedbackVarying");
402-
GL.API.Transform_Feedback_Varyings := Load_T178 ("glTransformFeedbackVaryings");
403-
GL.API.Set_Patch_Parameter_Int := Load_T179 ("glPatchParameteri");
404-
GL.API.Set_Patch_Parameter_Float_Array := Load_T180 ("glPatchParameterfv");
378+
GL.API.Gen_Queries := Load_T152 ("glGenQueries");
379+
GL.API.Delete_Queries := Load_T153 ("glDeleteQueries");
380+
GL.API.Is_Query := Load_T154 ("glIsQuery");
381+
GL.API.Get_Query_Object := Load_T155 ("glGetQueryObjectuiv");
382+
GL.API.Begin_Query := Load_T156 ("glBeginQuery");
383+
GL.API.End_Query := Load_T157 ("glEndQuery");
384+
GL.API.Begin_Query_Indexed := Load_T158 ("glBeginQueryIndexed");
385+
GL.API.End_Query_Indexed := Load_T159 ("glEndQueryIndexed");
386+
GL.API.Query_Counter := Load_T160 ("glQueryCounter");
387+
GL.API.Get_Shader_Param := Load_T161 ("glGetShaderiv");
388+
GL.API.Get_Shader_Type := Load_T162 ("glGetShaderiv");
389+
GL.API.Create_Shader := Load_T163 ("glCreateShader");
390+
GL.API.Delete_Shader := Load_T164 ("glDeleteShader");
391+
GL.API.Shader_Source := Load_T165 ("glShaderSource");
392+
GL.API.Get_Shader_Source := Load_T166 ("glGetShaderSource");
393+
GL.API.Compile_Shader := Load_T164 ("glCompileShader");
394+
GL.API.Release_Shader_Compiler := Load_T167 ("glReleaseShaderCompiler");
395+
GL.API.Get_Shader_Info_Log := Load_T166 ("glGetShaderInfoLog");
396+
GL.API.Create_Program := Load_T168 ("glCreateProgram");
397+
GL.API.Delete_Program := Load_T169 ("glDeleteProgram");
398+
GL.API.Get_Program_Param := Load_T170 ("glGetProgramiv");
399+
GL.API.Attach_Shader := Load_T171 ("glAttachShader");
400+
GL.API.Link_Program := Load_T169 ("glLinkProgram");
401+
GL.API.Get_Program_Info_Log := Load_T172 ("glGetProgramInfoLog");
402+
GL.API.Get_Program_Stage := Load_T173 ("glGetProgramStageiv");
403+
GL.API.Get_Subroutine_Index := Load_T174 ("glGetSubroutineIndex");
404+
GL.API.Get_Subroutine_Uniform_Location := Load_T175 ("glGetSubroutineUniformLocation");
405+
GL.API.Use_Program := Load_T169 ("glUseProgram");
406+
GL.API.Validate_Program := Load_T169 ("glValidateProgram");
407+
GL.API.Get_Uniform_Location := Load_T176 ("glGetUniformLocation");
408+
GL.API.Bind_Attrib_Location := Load_T177 ("glBindAttribLocation");
409+
GL.API.Get_Attrib_Location := Load_T178 ("glGetAttribLocation");
410+
GL.API.Vertex_Attrib_Pointer := Load_T179 ("glVertexAttribPointer");
411+
GL.API.Vertex_AttribI_Pointer := Load_T180 ("glVertexAttribIPointer");
412+
GL.API.Vertex_AttribL_Pointer := Load_T180 ("glVertexAttribLPointer");
413+
GL.API.Enable_Vertex_Attrib_Array := Load_T181 ("glEnableVertexAttribArray");
414+
GL.API.Disable_Vertex_Attrib_Array := Load_T181 ("glDisableVertexAttribArray");
415+
GL.API.Get_Attached_Shaders := Load_T182 ("glGetAttachedShaders");
416+
GL.API.Bind_Frag_Data_Location := Load_T183 ("glBindFragDataLocation");
417+
GL.API.Get_Frag_Data_Location := Load_T184 ("glGetFragDataLocation");
418+
GL.API.Begin_Transform_Feedback := Load_T185 ("glBeginTransformFeedback");
419+
GL.API.End_Transform_Feedback := Load_T167 ("glEndTransformFeedback");
420+
GL.API.Get_Transform_Feedback_Varying := Load_T186 ("glGetTransformFeedbackVarying");
421+
GL.API.Transform_Feedback_Varyings := Load_T187 ("glTransformFeedbackVaryings");
422+
GL.API.Set_Patch_Parameter_Int := Load_T188 ("glPatchParameteri");
423+
GL.API.Set_Patch_Parameter_Float_Array := Load_T189 ("glPatchParameterfv");
405424
end GL.Load_Function_Pointers;

src/gl/implementation/gl-enums-getter.ads

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ package GL.Enums.Getter is
241241
Stencil_Back_Pass_Depth_Fail,
242242
Stencil_Back_Pass_Depth_Pass,
243243
Blend_Equation_Alpha,
244+
Query_Result,
245+
Query_Result_Available,
244246
Max_Combined_Texture_Image_Units,
245247
Stencil_Back_Ref,
246248
Stencil_Back_Value_Mask,
@@ -484,6 +486,8 @@ package GL.Enums.Getter is
484486
Stencil_Back_Pass_Depth_Fail => 16#8802#,
485487
Stencil_Back_Pass_Depth_Pass => 16#8803#,
486488
Blend_Equation_Alpha => 16#883D#,
489+
Query_Result => 16#8866#,
490+
Query_Result_Available => 16#8867#,
487491
Max_Combined_Texture_Image_Units => 16#8B4D#,
488492
Stencil_Back_Ref => 16#8CA3#,
489493
Stencil_Back_Value_Mask => 16#8CA4#,

0 commit comments

Comments
 (0)