@gtkx/gl 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1442,9 +1442,9 @@ export function copyTextureSubImage3D(texture, level, xoffset, yoffset, zoffset,
1442
1442
  * @returns `buffers` (`GLuint[]`, length `n`, object class `buffer`)
1443
1443
  */
1444
1444
  export function createBuffers(n) {
1445
- const out0 = { value: new Array(n).fill(0) };
1446
- glCreateBuffers(n, out0);
1447
- return out0.value;
1445
+ const __out0 = { value: new Array(n).fill(0) };
1446
+ glCreateBuffers(n, __out0);
1447
+ return __out0.value;
1448
1448
  }
1449
1449
  /**
1450
1450
  * `void glCreateFramebuffers(GLsizei n, GLuint *framebuffers)`
@@ -1458,9 +1458,9 @@ export function createBuffers(n) {
1458
1458
  * @returns `framebuffers` (`GLuint[]`, length `n`, object class `framebuffer`)
1459
1459
  */
1460
1460
  export function createFramebuffers(n) {
1461
- const out0 = { value: new Array(n).fill(0) };
1462
- glCreateFramebuffers(n, out0);
1463
- return out0.value;
1461
+ const __out0 = { value: new Array(n).fill(0) };
1462
+ glCreateFramebuffers(n, __out0);
1463
+ return __out0.value;
1464
1464
  }
1465
1465
  /**
1466
1466
  * `GLuint glCreateProgram()`
@@ -1485,9 +1485,9 @@ export function createProgram() {
1485
1485
  * @returns `pipelines` (`GLuint[]`, length `n`, object class `program pipeline`)
1486
1486
  */
1487
1487
  export function createProgramPipelines(n) {
1488
- const out0 = { value: new Array(n).fill(0) };
1489
- glCreateProgramPipelines(n, out0);
1490
- return out0.value;
1488
+ const __out0 = { value: new Array(n).fill(0) };
1489
+ glCreateProgramPipelines(n, __out0);
1490
+ return __out0.value;
1491
1491
  }
1492
1492
  /**
1493
1493
  * `void glCreateQueries(GLenum target, GLsizei n, GLuint *ids)`
@@ -1502,9 +1502,9 @@ export function createProgramPipelines(n) {
1502
1502
  * @returns `ids` (`GLuint[]`, length `n`, object class `query`)
1503
1503
  */
1504
1504
  export function createQueries(target, n) {
1505
- const out0 = { value: new Array(n).fill(0) };
1506
- glCreateQueries(target, n, out0);
1507
- return out0.value;
1505
+ const __out0 = { value: new Array(n).fill(0) };
1506
+ glCreateQueries(target, n, __out0);
1507
+ return __out0.value;
1508
1508
  }
1509
1509
  /**
1510
1510
  * `void glCreateRenderbuffers(GLsizei n, GLuint *renderbuffers)`
@@ -1518,9 +1518,9 @@ export function createQueries(target, n) {
1518
1518
  * @returns `renderbuffers` (`GLuint[]`, length `n`, object class `renderbuffer`)
1519
1519
  */
1520
1520
  export function createRenderbuffers(n) {
1521
- const out0 = { value: new Array(n).fill(0) };
1522
- glCreateRenderbuffers(n, out0);
1523
- return out0.value;
1521
+ const __out0 = { value: new Array(n).fill(0) };
1522
+ glCreateRenderbuffers(n, __out0);
1523
+ return __out0.value;
1524
1524
  }
1525
1525
  /**
1526
1526
  * `void glCreateSamplers(GLsizei n, GLuint *samplers)`
@@ -1534,9 +1534,9 @@ export function createRenderbuffers(n) {
1534
1534
  * @returns `samplers` (`GLuint[]`, length `n`, object class `sampler`)
1535
1535
  */
1536
1536
  export function createSamplers(n) {
1537
- const out0 = { value: new Array(n).fill(0) };
1538
- glCreateSamplers(n, out0);
1539
- return out0.value;
1537
+ const __out0 = { value: new Array(n).fill(0) };
1538
+ glCreateSamplers(n, __out0);
1539
+ return __out0.value;
1540
1540
  }
1541
1541
  /**
1542
1542
  * `GLuint glCreateShader(GLenum type)`
@@ -1578,9 +1578,9 @@ export function createShaderProgramv(type, count, strings) {
1578
1578
  * @returns `textures` (`GLuint[]`, length `n`, object class `texture`)
1579
1579
  */
1580
1580
  export function createTextures(target, n) {
1581
- const out0 = { value: new Array(n).fill(0) };
1582
- glCreateTextures(target, n, out0);
1583
- return out0.value;
1581
+ const __out0 = { value: new Array(n).fill(0) };
1582
+ glCreateTextures(target, n, __out0);
1583
+ return __out0.value;
1584
1584
  }
1585
1585
  /**
1586
1586
  * `void glCreateTransformFeedbacks(GLsizei n, GLuint *ids)`
@@ -1594,9 +1594,9 @@ export function createTextures(target, n) {
1594
1594
  * @returns `ids` (`GLuint[]`, length `n`, object class `transform feedback`)
1595
1595
  */
1596
1596
  export function createTransformFeedbacks(n) {
1597
- const out0 = { value: new Array(n).fill(0) };
1598
- glCreateTransformFeedbacks(n, out0);
1599
- return out0.value;
1597
+ const __out0 = { value: new Array(n).fill(0) };
1598
+ glCreateTransformFeedbacks(n, __out0);
1599
+ return __out0.value;
1600
1600
  }
1601
1601
  /**
1602
1602
  * `void glCreateVertexArrays(GLsizei n, GLuint *arrays)`
@@ -1610,9 +1610,9 @@ export function createTransformFeedbacks(n) {
1610
1610
  * @returns `arrays` (`GLuint[]`, length `n`, object class `vertex array`)
1611
1611
  */
1612
1612
  export function createVertexArrays(n) {
1613
- const out0 = { value: new Array(n).fill(0) };
1614
- glCreateVertexArrays(n, out0);
1615
- return out0.value;
1613
+ const __out0 = { value: new Array(n).fill(0) };
1614
+ glCreateVertexArrays(n, __out0);
1615
+ return __out0.value;
1616
1616
  }
1617
1617
  /**
1618
1618
  * `void glCullFace(GLenum mode)`
@@ -2567,9 +2567,9 @@ export function frontFace(mode) {
2567
2567
  * @returns `buffers` (`GLuint[]`, length `n`, object class `buffer`)
2568
2568
  */
2569
2569
  export function genBuffers(n) {
2570
- const out0 = { value: new Array(n).fill(0) };
2571
- glGenBuffers(n, out0);
2572
- return out0.value;
2570
+ const __out0 = { value: new Array(n).fill(0) };
2571
+ glGenBuffers(n, __out0);
2572
+ return __out0.value;
2573
2573
  }
2574
2574
  /**
2575
2575
  * `void glGenerateMipmap(GLenum target)`
@@ -2611,9 +2611,9 @@ export function generateTextureMipmap(texture) {
2611
2611
  * @returns `framebuffers` (`GLuint[]`, length `n`, object class `framebuffer`)
2612
2612
  */
2613
2613
  export function genFramebuffers(n) {
2614
- const out0 = { value: new Array(n).fill(0) };
2615
- glGenFramebuffers(n, out0);
2616
- return out0.value;
2614
+ const __out0 = { value: new Array(n).fill(0) };
2615
+ glGenFramebuffers(n, __out0);
2616
+ return __out0.value;
2617
2617
  }
2618
2618
  /**
2619
2619
  * `void glGenProgramPipelines(GLsizei n, GLuint *pipelines)`
@@ -2626,9 +2626,9 @@ export function genFramebuffers(n) {
2626
2626
  * @returns `pipelines` (`GLuint[]`, length `n`, object class `program pipeline`)
2627
2627
  */
2628
2628
  export function genProgramPipelines(n) {
2629
- const out0 = { value: new Array(n).fill(0) };
2630
- glGenProgramPipelines(n, out0);
2631
- return out0.value;
2629
+ const __out0 = { value: new Array(n).fill(0) };
2630
+ glGenProgramPipelines(n, __out0);
2631
+ return __out0.value;
2632
2632
  }
2633
2633
  /**
2634
2634
  * `void glGenQueries(GLsizei n, GLuint *ids)`
@@ -2641,9 +2641,9 @@ export function genProgramPipelines(n) {
2641
2641
  * @returns `ids` (`GLuint[]`, length `n`, object class `query`)
2642
2642
  */
2643
2643
  export function genQueries(n) {
2644
- const out0 = { value: new Array(n).fill(0) };
2645
- glGenQueries(n, out0);
2646
- return out0.value;
2644
+ const __out0 = { value: new Array(n).fill(0) };
2645
+ glGenQueries(n, __out0);
2646
+ return __out0.value;
2647
2647
  }
2648
2648
  /**
2649
2649
  * `void glGenRenderbuffers(GLsizei n, GLuint *renderbuffers)`
@@ -2658,9 +2658,9 @@ export function genQueries(n) {
2658
2658
  * @returns `renderbuffers` (`GLuint[]`, length `n`, object class `renderbuffer`)
2659
2659
  */
2660
2660
  export function genRenderbuffers(n) {
2661
- const out0 = { value: new Array(n).fill(0) };
2662
- glGenRenderbuffers(n, out0);
2663
- return out0.value;
2661
+ const __out0 = { value: new Array(n).fill(0) };
2662
+ glGenRenderbuffers(n, __out0);
2663
+ return __out0.value;
2664
2664
  }
2665
2665
  /**
2666
2666
  * `void glGenSamplers(GLsizei count, GLuint *samplers)`
@@ -2673,9 +2673,9 @@ export function genRenderbuffers(n) {
2673
2673
  * @returns `samplers` (`GLuint[]`, length `count`, object class `sampler`)
2674
2674
  */
2675
2675
  export function genSamplers(count) {
2676
- const out0 = { value: new Array(count).fill(0) };
2677
- glGenSamplers(count, out0);
2678
- return out0.value;
2676
+ const __out0 = { value: new Array(count).fill(0) };
2677
+ glGenSamplers(count, __out0);
2678
+ return __out0.value;
2679
2679
  }
2680
2680
  /**
2681
2681
  * `void glGenTextures(GLsizei n, GLuint *textures)`
@@ -2687,9 +2687,9 @@ export function genSamplers(count) {
2687
2687
  * @returns `textures` (`GLuint[]`, length `n`, object class `texture`)
2688
2688
  */
2689
2689
  export function genTextures(n) {
2690
- const out0 = { value: new Array(n).fill(0) };
2691
- glGenTextures(n, out0);
2692
- return out0.value;
2690
+ const __out0 = { value: new Array(n).fill(0) };
2691
+ glGenTextures(n, __out0);
2692
+ return __out0.value;
2693
2693
  }
2694
2694
  /**
2695
2695
  * `void glGenTransformFeedbacks(GLsizei n, GLuint *ids)`
@@ -2703,9 +2703,9 @@ export function genTextures(n) {
2703
2703
  * @returns `ids` (`GLuint[]`, length `n`, object class `transform feedback`)
2704
2704
  */
2705
2705
  export function genTransformFeedbacks(n) {
2706
- const out0 = { value: new Array(n).fill(0) };
2707
- glGenTransformFeedbacks(n, out0);
2708
- return out0.value;
2706
+ const __out0 = { value: new Array(n).fill(0) };
2707
+ glGenTransformFeedbacks(n, __out0);
2708
+ return __out0.value;
2709
2709
  }
2710
2710
  /**
2711
2711
  * `void glGenVertexArrays(GLsizei n, GLuint *arrays)`
@@ -2720,9 +2720,9 @@ export function genTransformFeedbacks(n) {
2720
2720
  * @returns `arrays` (`GLuint[]`, length `n`, object class `vertex array`)
2721
2721
  */
2722
2722
  export function genVertexArrays(n) {
2723
- const out0 = { value: new Array(n).fill(0) };
2724
- glGenVertexArrays(n, out0);
2725
- return out0.value;
2723
+ const __out0 = { value: new Array(n).fill(0) };
2724
+ glGenVertexArrays(n, __out0);
2725
+ return __out0.value;
2726
2726
  }
2727
2727
  /**
2728
2728
  * `void glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)`
@@ -2736,13 +2736,13 @@ export function genVertexArrays(n) {
2736
2736
  * @returns Tuple of `length` (`GLsizei`), `size` (`GLint`), `type` (`AttributeType`), `name` (`string`, length `bufSize`)
2737
2737
  */
2738
2738
  export function getActiveAttrib(program, index, bufSize) {
2739
- const out0 = { value: 0 };
2740
- const out1 = { value: 0 };
2741
- const out2 = { value: 0 };
2742
- const out3 = { value: "" };
2743
- const binding = t.bind(LIB, "glGetActiveAttrib", [t.uint32, t.uint32, t.int32, t.ref(t.int32), t.ref(t.int32), t.ref(t.uint32), t.ref(t.string("borrowed", bufSize))], t.void);
2744
- binding(program, index, bufSize, out0, out1, out2, out3);
2745
- return [out0.value, out1.value, out2.value, out3.value];
2739
+ const __out0 = { value: 0 };
2740
+ const __out1 = { value: 0 };
2741
+ const __out2 = { value: 0 };
2742
+ const __out3 = { value: "" };
2743
+ const __binding = t.bind(LIB, "glGetActiveAttrib", [t.uint32, t.uint32, t.int32, t.ref(t.int32), t.ref(t.int32), t.ref(t.uint32), t.ref(t.string("borrowed", bufSize))], t.void);
2744
+ __binding(program, index, bufSize, __out0, __out1, __out2, __out3);
2745
+ return [__out0.value, __out1.value, __out2.value, __out3.value];
2746
2746
  }
2747
2747
  /**
2748
2748
  * `void glGetActiveSubroutineName(GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name)`
@@ -2758,11 +2758,11 @@ export function getActiveAttrib(program, index, bufSize) {
2758
2758
  * @returns Tuple of `length` (`GLsizei`), `name` (`string`, length `bufSize`)
2759
2759
  */
2760
2760
  export function getActiveSubroutineName(program, shadertype, index, bufSize) {
2761
- const out0 = { value: 0 };
2762
- const out1 = { value: "" };
2763
- const binding = t.bind(LIB, "glGetActiveSubroutineName", [t.uint32, t.uint32, t.uint32, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", bufSize))], t.void);
2764
- binding(program, shadertype, index, bufSize, out0, out1);
2765
- return [out0.value, out1.value];
2761
+ const __out0 = { value: 0 };
2762
+ const __out1 = { value: "" };
2763
+ const __binding = t.bind(LIB, "glGetActiveSubroutineName", [t.uint32, t.uint32, t.uint32, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", bufSize))], t.void);
2764
+ __binding(program, shadertype, index, bufSize, __out0, __out1);
2765
+ return [__out0.value, __out1.value];
2766
2766
  }
2767
2767
  /**
2768
2768
  * `void glGetActiveSubroutineUniformName(GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name)`
@@ -2778,11 +2778,11 @@ export function getActiveSubroutineName(program, shadertype, index, bufSize) {
2778
2778
  * @returns Tuple of `length` (`GLsizei`), `name` (`string`, length `bufSize`)
2779
2779
  */
2780
2780
  export function getActiveSubroutineUniformName(program, shadertype, index, bufSize) {
2781
- const out0 = { value: 0 };
2782
- const out1 = { value: "" };
2783
- const binding = t.bind(LIB, "glGetActiveSubroutineUniformName", [t.uint32, t.uint32, t.uint32, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", bufSize))], t.void);
2784
- binding(program, shadertype, index, bufSize, out0, out1);
2785
- return [out0.value, out1.value];
2781
+ const __out0 = { value: 0 };
2782
+ const __out1 = { value: "" };
2783
+ const __binding = t.bind(LIB, "glGetActiveSubroutineUniformName", [t.uint32, t.uint32, t.uint32, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", bufSize))], t.void);
2784
+ __binding(program, shadertype, index, bufSize, __out0, __out1);
2785
+ return [__out0.value, __out1.value];
2786
2786
  }
2787
2787
  /**
2788
2788
  * `void glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)`
@@ -2796,13 +2796,13 @@ export function getActiveSubroutineUniformName(program, shadertype, index, bufSi
2796
2796
  * @returns Tuple of `length` (`GLsizei`), `size` (`GLint`), `type` (`UniformType`), `name` (`string`, length `bufSize`)
2797
2797
  */
2798
2798
  export function getActiveUniform(program, index, bufSize) {
2799
- const out0 = { value: 0 };
2800
- const out1 = { value: 0 };
2801
- const out2 = { value: 0 };
2802
- const out3 = { value: "" };
2803
- const binding = t.bind(LIB, "glGetActiveUniform", [t.uint32, t.uint32, t.int32, t.ref(t.int32), t.ref(t.int32), t.ref(t.uint32), t.ref(t.string("borrowed", bufSize))], t.void);
2804
- binding(program, index, bufSize, out0, out1, out2, out3);
2805
- return [out0.value, out1.value, out2.value, out3.value];
2799
+ const __out0 = { value: 0 };
2800
+ const __out1 = { value: 0 };
2801
+ const __out2 = { value: 0 };
2802
+ const __out3 = { value: "" };
2803
+ const __binding = t.bind(LIB, "glGetActiveUniform", [t.uint32, t.uint32, t.int32, t.ref(t.int32), t.ref(t.int32), t.ref(t.uint32), t.ref(t.string("borrowed", bufSize))], t.void);
2804
+ __binding(program, index, bufSize, __out0, __out1, __out2, __out3);
2805
+ return [__out0.value, __out1.value, __out2.value, __out3.value];
2806
2806
  }
2807
2807
  /**
2808
2808
  * `void glGetActiveUniformBlockName(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName)`
@@ -2818,11 +2818,11 @@ export function getActiveUniform(program, index, bufSize) {
2818
2818
  * @returns Tuple of `length` (`GLsizei`), `uniformBlockName` (`string`, length `bufSize`)
2819
2819
  */
2820
2820
  export function getActiveUniformBlockName(program, uniformBlockIndex, bufSize) {
2821
- const out0 = { value: 0 };
2822
- const out1 = { value: "" };
2823
- const binding = t.bind(LIB, "glGetActiveUniformBlockName", [t.uint32, t.uint32, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", bufSize))], t.void);
2824
- binding(program, uniformBlockIndex, bufSize, out0, out1);
2825
- return [out0.value, out1.value];
2821
+ const __out0 = { value: 0 };
2822
+ const __out1 = { value: "" };
2823
+ const __binding = t.bind(LIB, "glGetActiveUniformBlockName", [t.uint32, t.uint32, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", bufSize))], t.void);
2824
+ __binding(program, uniformBlockIndex, bufSize, __out0, __out1);
2825
+ return [__out0.value, __out1.value];
2826
2826
  }
2827
2827
  /**
2828
2828
  * `void glGetActiveUniformName(GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName)`
@@ -2838,11 +2838,11 @@ export function getActiveUniformBlockName(program, uniformBlockIndex, bufSize) {
2838
2838
  * @returns Tuple of `length` (`GLsizei`), `uniformName` (`string`, length `bufSize`)
2839
2839
  */
2840
2840
  export function getActiveUniformName(program, uniformIndex, bufSize) {
2841
- const out0 = { value: 0 };
2842
- const out1 = { value: "" };
2843
- const binding = t.bind(LIB, "glGetActiveUniformName", [t.uint32, t.uint32, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", bufSize))], t.void);
2844
- binding(program, uniformIndex, bufSize, out0, out1);
2845
- return [out0.value, out1.value];
2841
+ const __out0 = { value: 0 };
2842
+ const __out1 = { value: "" };
2843
+ const __binding = t.bind(LIB, "glGetActiveUniformName", [t.uint32, t.uint32, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", bufSize))], t.void);
2844
+ __binding(program, uniformIndex, bufSize, __out0, __out1);
2845
+ return [__out0.value, __out1.value];
2846
2846
  }
2847
2847
  /**
2848
2848
  * `void glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders)`
@@ -2854,10 +2854,10 @@ export function getActiveUniformName(program, uniformIndex, bufSize) {
2854
2854
  * @returns Tuple of `count` (`GLsizei`), `shaders` (`GLuint[]`, length `maxCount`, object class `shader`)
2855
2855
  */
2856
2856
  export function getAttachedShaders(program, maxCount) {
2857
- const out0 = { value: 0 };
2858
- const out1 = { value: new Array(maxCount).fill(0) };
2859
- glGetAttachedShaders(program, maxCount, out0, out1);
2860
- return [out0.value, out1.value];
2857
+ const __out0 = { value: 0 };
2858
+ const __out1 = { value: new Array(maxCount).fill(0) };
2859
+ glGetAttachedShaders(program, maxCount, __out0, __out1);
2860
+ return [__out0.value, __out1.value];
2861
2861
  }
2862
2862
  /**
2863
2863
  * `GLint glGetAttribLocation(GLuint program, const GLchar *name)`
@@ -2883,9 +2883,9 @@ export function getAttribLocation(program, name) {
2883
2883
  * @returns `params` (`GLint64`)
2884
2884
  */
2885
2885
  export function getBufferParameteri64v(target, pname) {
2886
- const out0 = { value: 0 };
2887
- glGetBufferParameteri64v(target, pname, out0);
2888
- return out0.value;
2886
+ const __out0 = { value: 0 };
2887
+ glGetBufferParameteri64v(target, pname, __out0);
2888
+ return __out0.value;
2889
2889
  }
2890
2890
  /**
2891
2891
  * `void glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params)`
@@ -2898,9 +2898,9 @@ export function getBufferParameteri64v(target, pname) {
2898
2898
  * @returns `params` (`GLint`)
2899
2899
  */
2900
2900
  export function getBufferParameteriv(target, pname) {
2901
- const out0 = { value: 0 };
2902
- glGetBufferParameteriv(target, pname, out0);
2903
- return out0.value;
2901
+ const __out0 = { value: 0 };
2902
+ glGetBufferParameteriv(target, pname, __out0);
2903
+ return __out0.value;
2904
2904
  }
2905
2905
  /**
2906
2906
  * `void glGetBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, void *data)`
@@ -2981,15 +2981,15 @@ export function getCompressedTextureSubImage(texture, level, xoffset, yoffset, z
2981
2981
  * @returns Tuple of `GLuint`, `sources` (`DebugSource[]`, length `count`), `types` (`DebugType[]`, length `count`), `ids` (`GLuint[]`, length `count`), `severities` (`DebugSeverity[]`, length `count`), `lengths` (`GLsizei[]`, length `count`), `messageLog` (`string`, length `bufSize`)
2982
2982
  */
2983
2983
  export function getDebugMessageLog(count, bufSize) {
2984
- const out0 = { value: new Array(count).fill(0) };
2985
- const out1 = { value: new Array(count).fill(0) };
2986
- const out2 = { value: new Array(count).fill(0) };
2987
- const out3 = { value: new Array(count).fill(0) };
2988
- const out4 = { value: new Array(count).fill(0) };
2989
- const out5 = { value: "" };
2990
- const binding = t.bind(LIB, "glGetDebugMessageLog", [t.uint32, t.int32, t.ref(t.sizedArray(t.uint32, 0)), t.ref(t.sizedArray(t.uint32, 0)), t.ref(t.sizedArray(t.uint32, 0)), t.ref(t.sizedArray(t.uint32, 0)), t.ref(t.sizedArray(t.int32, 0)), t.ref(t.string("borrowed", bufSize))], t.uint32);
2991
- const result = binding(count, bufSize, out0, out1, out2, out3, out4, out5);
2992
- return [result, out0.value, out1.value, out2.value, out3.value, out4.value, out5.value];
2984
+ const __out0 = { value: new Array(count).fill(0) };
2985
+ const __out1 = { value: new Array(count).fill(0) };
2986
+ const __out2 = { value: new Array(count).fill(0) };
2987
+ const __out3 = { value: new Array(count).fill(0) };
2988
+ const __out4 = { value: new Array(count).fill(0) };
2989
+ const __out5 = { value: "" };
2990
+ const __binding = t.bind(LIB, "glGetDebugMessageLog", [t.uint32, t.int32, t.ref(t.sizedArray(t.uint32, 0)), t.ref(t.sizedArray(t.uint32, 0)), t.ref(t.sizedArray(t.uint32, 0)), t.ref(t.sizedArray(t.uint32, 0)), t.ref(t.sizedArray(t.int32, 0)), t.ref(t.string("borrowed", bufSize))], t.uint32);
2991
+ const __result = __binding(count, bufSize, __out0, __out1, __out2, __out3, __out4, __out5);
2992
+ return [__result, __out0.value, __out1.value, __out2.value, __out3.value, __out4.value, __out5.value];
2993
2993
  }
2994
2994
  /**
2995
2995
  * `GLenum glGetError()`
@@ -3045,9 +3045,9 @@ export function getFragDataLocation(program, name) {
3045
3045
  * @returns `params` (`GLint`)
3046
3046
  */
3047
3047
  export function getFramebufferAttachmentParameteriv(target, attachment, pname) {
3048
- const out0 = { value: 0 };
3049
- glGetFramebufferAttachmentParameteriv(target, attachment, pname, out0);
3050
- return out0.value;
3048
+ const __out0 = { value: 0 };
3049
+ glGetFramebufferAttachmentParameteriv(target, attachment, pname, __out0);
3050
+ return __out0.value;
3051
3051
  }
3052
3052
  /**
3053
3053
  * `void glGetFramebufferParameteriv(GLenum target, GLenum pname, GLint *params)`
@@ -3061,9 +3061,9 @@ export function getFramebufferAttachmentParameteriv(target, attachment, pname) {
3061
3061
  * @returns `params` (`GLint`)
3062
3062
  */
3063
3063
  export function getFramebufferParameteriv(target, pname) {
3064
- const out0 = { value: 0 };
3065
- glGetFramebufferParameteriv(target, pname, out0);
3066
- return out0.value;
3064
+ const __out0 = { value: 0 };
3065
+ glGetFramebufferParameteriv(target, pname, __out0);
3066
+ return __out0.value;
3067
3067
  }
3068
3068
  /**
3069
3069
  * `GLenum glGetGraphicsResetStatus()`
@@ -3094,9 +3094,9 @@ export function getGraphicsResetStatus() {
3094
3094
  * @returns `params` (`GLint64[]`, length `count`)
3095
3095
  */
3096
3096
  export function getInternalformati64v(target, internalformat, pname, count) {
3097
- const out0 = { value: new Array(count).fill(0) };
3098
- glGetInternalformati64v(target, internalformat, pname, count, out0);
3099
- return out0.value;
3097
+ const __out0 = { value: new Array(count).fill(0) };
3098
+ glGetInternalformati64v(target, internalformat, pname, count, __out0);
3099
+ return __out0.value;
3100
3100
  }
3101
3101
  /**
3102
3102
  * `void glGetInternalformativ(GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint *params)`
@@ -3112,9 +3112,9 @@ export function getInternalformati64v(target, internalformat, pname, count) {
3112
3112
  * @returns `params` (`GLint[]`, length `count`)
3113
3113
  */
3114
3114
  export function getInternalformativ(target, internalformat, pname, count) {
3115
- const out0 = { value: new Array(count).fill(0) };
3116
- glGetInternalformativ(target, internalformat, pname, count, out0);
3117
- return out0.value;
3115
+ const __out0 = { value: new Array(count).fill(0) };
3116
+ glGetInternalformativ(target, internalformat, pname, count, __out0);
3117
+ return __out0.value;
3118
3118
  }
3119
3119
  /**
3120
3120
  * `void glGetNamedBufferParameteri64v(GLuint buffer, GLenum pname, GLint64 *params)`
@@ -3129,9 +3129,9 @@ export function getInternalformativ(target, internalformat, pname, count) {
3129
3129
  * @returns `params` (`GLint64`)
3130
3130
  */
3131
3131
  export function getNamedBufferParameteri64v(buffer, pname) {
3132
- const out0 = { value: 0 };
3133
- glGetNamedBufferParameteri64v(buffer, pname, out0);
3134
- return out0.value;
3132
+ const __out0 = { value: 0 };
3133
+ glGetNamedBufferParameteri64v(buffer, pname, __out0);
3134
+ return __out0.value;
3135
3135
  }
3136
3136
  /**
3137
3137
  * `void glGetNamedBufferParameteriv(GLuint buffer, GLenum pname, GLint *params)`
@@ -3146,9 +3146,9 @@ export function getNamedBufferParameteri64v(buffer, pname) {
3146
3146
  * @returns `params` (`GLint`)
3147
3147
  */
3148
3148
  export function getNamedBufferParameteriv(buffer, pname) {
3149
- const out0 = { value: 0 };
3150
- glGetNamedBufferParameteriv(buffer, pname, out0);
3151
- return out0.value;
3149
+ const __out0 = { value: 0 };
3150
+ glGetNamedBufferParameteriv(buffer, pname, __out0);
3151
+ return __out0.value;
3152
3152
  }
3153
3153
  /**
3154
3154
  * `void glGetNamedBufferSubData(GLuint buffer, GLintptr offset, GLsizeiptr size, void *data)`
@@ -3180,9 +3180,9 @@ export function getNamedBufferSubData(buffer, offset, size, data) {
3180
3180
  * @returns `params` (`GLint`)
3181
3181
  */
3182
3182
  export function getNamedFramebufferAttachmentParameteriv(framebuffer, attachment, pname) {
3183
- const out0 = { value: 0 };
3184
- glGetNamedFramebufferAttachmentParameteriv(framebuffer, attachment, pname, out0);
3185
- return out0.value;
3183
+ const __out0 = { value: 0 };
3184
+ glGetNamedFramebufferAttachmentParameteriv(framebuffer, attachment, pname, __out0);
3185
+ return __out0.value;
3186
3186
  }
3187
3187
  /**
3188
3188
  * `void glGetNamedFramebufferParameteriv(GLuint framebuffer, GLenum pname, GLint *param)`
@@ -3197,9 +3197,9 @@ export function getNamedFramebufferAttachmentParameteriv(framebuffer, attachment
3197
3197
  * @returns `param` (`GLint`)
3198
3198
  */
3199
3199
  export function getNamedFramebufferParameteriv(framebuffer, pname) {
3200
- const out0 = { value: 0 };
3201
- glGetNamedFramebufferParameteriv(framebuffer, pname, out0);
3202
- return out0.value;
3200
+ const __out0 = { value: 0 };
3201
+ glGetNamedFramebufferParameteriv(framebuffer, pname, __out0);
3202
+ return __out0.value;
3203
3203
  }
3204
3204
  /**
3205
3205
  * `void glGetNamedRenderbufferParameteriv(GLuint renderbuffer, GLenum pname, GLint *params)`
@@ -3214,9 +3214,9 @@ export function getNamedFramebufferParameteriv(framebuffer, pname) {
3214
3214
  * @returns `params` (`GLint`)
3215
3215
  */
3216
3216
  export function getNamedRenderbufferParameteriv(renderbuffer, pname) {
3217
- const out0 = { value: 0 };
3218
- glGetNamedRenderbufferParameteriv(renderbuffer, pname, out0);
3219
- return out0.value;
3217
+ const __out0 = { value: 0 };
3218
+ glGetNamedRenderbufferParameteriv(renderbuffer, pname, __out0);
3219
+ return __out0.value;
3220
3220
  }
3221
3221
  /**
3222
3222
  * `void glGetnCompressedTexImage(GLenum target, GLint lod, GLsizei bufSize, void *pixels)`
@@ -3263,11 +3263,11 @@ export function getnTexImage(target, level, format, type, bufSize, pixels) {
3263
3263
  * @returns Tuple of `length` (`GLsizei`), `label` (`string`, length `bufSize`)
3264
3264
  */
3265
3265
  export function getObjectLabel(identifier, name, bufSize) {
3266
- const out0 = { value: 0 };
3267
- const out1 = { value: "" };
3268
- const binding = t.bind(LIB, "glGetObjectLabel", [t.uint32, t.uint32, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", bufSize))], t.void);
3269
- binding(identifier, name, bufSize, out0, out1);
3270
- return [out0.value, out1.value];
3266
+ const __out0 = { value: 0 };
3267
+ const __out1 = { value: "" };
3268
+ const __binding = t.bind(LIB, "glGetObjectLabel", [t.uint32, t.uint32, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", bufSize))], t.void);
3269
+ __binding(identifier, name, bufSize, __out0, __out1);
3270
+ return [__out0.value, __out1.value];
3271
3271
  }
3272
3272
  /**
3273
3273
  * `void glGetObjectPtrLabel(const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label)`
@@ -3283,11 +3283,11 @@ export function getObjectLabel(identifier, name, bufSize) {
3283
3283
  * @returns Tuple of `length` (`GLsizei`), `label` (`string`, length `bufSize`)
3284
3284
  */
3285
3285
  export function getObjectPtrLabel(ptr, bufSize) {
3286
- const out0 = { value: 0 };
3287
- const out1 = { value: "" };
3288
- const binding = t.bind(LIB, "glGetObjectPtrLabel", [t.buffer, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", bufSize))], t.void);
3289
- binding(ptr, bufSize, out0, out1);
3290
- return [out0.value, out1.value];
3286
+ const __out0 = { value: 0 };
3287
+ const __out1 = { value: "" };
3288
+ const __binding = t.bind(LIB, "glGetObjectPtrLabel", [t.buffer, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", bufSize))], t.void);
3289
+ __binding(ptr, bufSize, __out0, __out1);
3290
+ return [__out0.value, __out1.value];
3291
3291
  }
3292
3292
  /**
3293
3293
  * `void glGetProgramBinary(GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary)`
@@ -3303,10 +3303,10 @@ export function getObjectPtrLabel(ptr, bufSize) {
3303
3303
  * @returns Tuple of `length` (`GLsizei`), `binaryFormat` (`GLenum`)
3304
3304
  */
3305
3305
  export function getProgramBinary(program, bufSize, binary) {
3306
- const out0 = { value: 0 };
3307
- const out1 = { value: 0 };
3308
- glGetProgramBinary(program, bufSize, out0, out1, binary);
3309
- return [out0.value, out1.value];
3306
+ const __out0 = { value: 0 };
3307
+ const __out1 = { value: 0 };
3308
+ glGetProgramBinary(program, bufSize, __out0, __out1, binary);
3309
+ return [__out0.value, __out1.value];
3310
3310
  }
3311
3311
  /**
3312
3312
  * `void glGetProgramiv(GLuint program, GLenum pname, GLint *params)`
@@ -3319,9 +3319,9 @@ export function getProgramBinary(program, bufSize, binary) {
3319
3319
  * @returns `params` (`GLint`)
3320
3320
  */
3321
3321
  export function getProgramiv(program, pname) {
3322
- const out0 = { value: 0 };
3323
- glGetProgramiv(program, pname, out0);
3324
- return out0.value;
3322
+ const __out0 = { value: 0 };
3323
+ glGetProgramiv(program, pname, __out0);
3324
+ return __out0.value;
3325
3325
  }
3326
3326
  /**
3327
3327
  * `void glGetProgramPipelineiv(GLuint pipeline, GLenum pname, GLint *params)`
@@ -3335,9 +3335,9 @@ export function getProgramiv(program, pname) {
3335
3335
  * @returns `params` (`GLint`)
3336
3336
  */
3337
3337
  export function getProgramPipelineiv(pipeline, pname) {
3338
- const out0 = { value: 0 };
3339
- glGetProgramPipelineiv(pipeline, pname, out0);
3340
- return out0.value;
3338
+ const __out0 = { value: 0 };
3339
+ glGetProgramPipelineiv(pipeline, pname, __out0);
3340
+ return __out0.value;
3341
3341
  }
3342
3342
  /**
3343
3343
  * `GLuint glGetProgramResourceIndex(GLuint program, GLenum programInterface, const GLchar *name)`
@@ -3370,10 +3370,10 @@ export function getProgramResourceIndex(program, programInterface, name) {
3370
3370
  * @returns Tuple of `length` (`GLsizei`), `params` (`GLint[]`, length `count`)
3371
3371
  */
3372
3372
  export function getProgramResourceiv(program, programInterface, index, propCount, props, count) {
3373
- const out0 = { value: 0 };
3374
- const out1 = { value: new Array(count).fill(0) };
3375
- glGetProgramResourceiv(program, programInterface, index, propCount, props, count, out0, out1);
3376
- return [out0.value, out1.value];
3373
+ const __out0 = { value: 0 };
3374
+ const __out1 = { value: new Array(count).fill(0) };
3375
+ glGetProgramResourceiv(program, programInterface, index, propCount, props, count, __out0, __out1);
3376
+ return [__out0.value, __out1.value];
3377
3377
  }
3378
3378
  /**
3379
3379
  * `GLint glGetProgramResourceLocation(GLuint program, GLenum programInterface, const GLchar *name)`
@@ -3419,11 +3419,11 @@ export function getProgramResourceLocationIndex(program, programInterface, name)
3419
3419
  * @returns Tuple of `length` (`GLsizei`), `name` (`string`, length `bufSize`)
3420
3420
  */
3421
3421
  export function getProgramResourceName(program, programInterface, index, bufSize) {
3422
- const out0 = { value: 0 };
3423
- const out1 = { value: "" };
3424
- const binding = t.bind(LIB, "glGetProgramResourceName", [t.uint32, t.uint32, t.uint32, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", bufSize))], t.void);
3425
- binding(program, programInterface, index, bufSize, out0, out1);
3426
- return [out0.value, out1.value];
3422
+ const __out0 = { value: 0 };
3423
+ const __out1 = { value: "" };
3424
+ const __binding = t.bind(LIB, "glGetProgramResourceName", [t.uint32, t.uint32, t.uint32, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", bufSize))], t.void);
3425
+ __binding(program, programInterface, index, bufSize, __out0, __out1);
3426
+ return [__out0.value, __out1.value];
3427
3427
  }
3428
3428
  /**
3429
3429
  * `void glGetProgramStageiv(GLuint program, GLenum shadertype, GLenum pname, GLint *values)`
@@ -3438,9 +3438,9 @@ export function getProgramResourceName(program, programInterface, index, bufSize
3438
3438
  * @returns `values` (`GLint`)
3439
3439
  */
3440
3440
  export function getProgramStageiv(program, shadertype, pname) {
3441
- const out0 = { value: 0 };
3442
- glGetProgramStageiv(program, shadertype, pname, out0);
3443
- return out0.value;
3441
+ const __out0 = { value: 0 };
3442
+ glGetProgramStageiv(program, shadertype, pname, __out0);
3443
+ return __out0.value;
3444
3444
  }
3445
3445
  /**
3446
3446
  * `void glGetQueryBufferObjecti64v(GLuint id, GLuint buffer, GLenum pname, GLintptr offset)`
@@ -3518,9 +3518,9 @@ export function getQueryBufferObjectuiv(id, buffer, pname, offset) {
3518
3518
  * @returns `params` (`GLint`)
3519
3519
  */
3520
3520
  export function getQueryiv(target, pname) {
3521
- const out0 = { value: 0 };
3522
- glGetQueryiv(target, pname, out0);
3523
- return out0.value;
3521
+ const __out0 = { value: 0 };
3522
+ glGetQueryiv(target, pname, __out0);
3523
+ return __out0.value;
3524
3524
  }
3525
3525
  /**
3526
3526
  * `void glGetQueryObjecti64v(GLuint id, GLenum pname, GLint64 *params)`
@@ -3535,9 +3535,9 @@ export function getQueryiv(target, pname) {
3535
3535
  * @returns `params` (`GLint64`)
3536
3536
  */
3537
3537
  export function getQueryObjecti64v(id, pname) {
3538
- const out0 = { value: 0 };
3539
- glGetQueryObjecti64v(id, pname, out0);
3540
- return out0.value;
3538
+ const __out0 = { value: 0 };
3539
+ glGetQueryObjecti64v(id, pname, __out0);
3540
+ return __out0.value;
3541
3541
  }
3542
3542
  /**
3543
3543
  * `void glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params)`
@@ -3551,9 +3551,9 @@ export function getQueryObjecti64v(id, pname) {
3551
3551
  * @returns `params` (`GLint`)
3552
3552
  */
3553
3553
  export function getQueryObjectiv(id, pname) {
3554
- const out0 = { value: 0 };
3555
- glGetQueryObjectiv(id, pname, out0);
3556
- return out0.value;
3554
+ const __out0 = { value: 0 };
3555
+ glGetQueryObjectiv(id, pname, __out0);
3556
+ return __out0.value;
3557
3557
  }
3558
3558
  /**
3559
3559
  * `void glGetQueryObjectui64v(GLuint id, GLenum pname, GLuint64 *params)`
@@ -3568,9 +3568,9 @@ export function getQueryObjectiv(id, pname) {
3568
3568
  * @returns `params` (`GLuint64`)
3569
3569
  */
3570
3570
  export function getQueryObjectui64v(id, pname) {
3571
- const out0 = { value: 0 };
3572
- glGetQueryObjectui64v(id, pname, out0);
3573
- return out0.value;
3571
+ const __out0 = { value: 0 };
3572
+ glGetQueryObjectui64v(id, pname, __out0);
3573
+ return __out0.value;
3574
3574
  }
3575
3575
  /**
3576
3576
  * `void glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params)`
@@ -3584,9 +3584,9 @@ export function getQueryObjectui64v(id, pname) {
3584
3584
  * @returns `params` (`GLuint`)
3585
3585
  */
3586
3586
  export function getQueryObjectuiv(id, pname) {
3587
- const out0 = { value: 0 };
3588
- glGetQueryObjectuiv(id, pname, out0);
3589
- return out0.value;
3587
+ const __out0 = { value: 0 };
3588
+ glGetQueryObjectuiv(id, pname, __out0);
3589
+ return __out0.value;
3590
3590
  }
3591
3591
  /**
3592
3592
  * `void glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params)`
@@ -3602,9 +3602,9 @@ export function getQueryObjectuiv(id, pname) {
3602
3602
  * @returns `params` (`GLint`)
3603
3603
  */
3604
3604
  export function getRenderbufferParameteriv(target, pname) {
3605
- const out0 = { value: 0 };
3606
- glGetRenderbufferParameteriv(target, pname, out0);
3607
- return out0.value;
3605
+ const __out0 = { value: 0 };
3606
+ glGetRenderbufferParameteriv(target, pname, __out0);
3607
+ return __out0.value;
3608
3608
  }
3609
3609
  /**
3610
3610
  * `void glGetShaderiv(GLuint shader, GLenum pname, GLint *params)`
@@ -3617,9 +3617,9 @@ export function getRenderbufferParameteriv(target, pname) {
3617
3617
  * @returns `params` (`GLint`)
3618
3618
  */
3619
3619
  export function getShaderiv(shader, pname) {
3620
- const out0 = { value: 0 };
3621
- glGetShaderiv(shader, pname, out0);
3622
- return out0.value;
3620
+ const __out0 = { value: 0 };
3621
+ glGetShaderiv(shader, pname, __out0);
3622
+ return __out0.value;
3623
3623
  }
3624
3624
  /**
3625
3625
  * `void glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision)`
@@ -3633,10 +3633,10 @@ export function getShaderiv(shader, pname) {
3633
3633
  * @returns Tuple of `range` (`GLint[]`, length `2`), `precision` (`GLint`)
3634
3634
  */
3635
3635
  export function getShaderPrecisionFormat(shadertype, precisiontype) {
3636
- const out0 = { value: new Array(2).fill(0) };
3637
- const out1 = { value: 0 };
3638
- glGetShaderPrecisionFormat(shadertype, precisiontype, out0, out1);
3639
- return [out0.value, out1.value];
3636
+ const __out0 = { value: new Array(2).fill(0) };
3637
+ const __out1 = { value: 0 };
3638
+ glGetShaderPrecisionFormat(shadertype, precisiontype, __out0, __out1);
3639
+ return [__out0.value, __out1.value];
3640
3640
  }
3641
3641
  /**
3642
3642
  * `void glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source)`
@@ -3649,11 +3649,11 @@ export function getShaderPrecisionFormat(shadertype, precisiontype) {
3649
3649
  * @returns Tuple of `length` (`GLsizei`), `source` (`string`, length `bufSize`)
3650
3650
  */
3651
3651
  export function getShaderSource(shader, bufSize) {
3652
- const out0 = { value: 0 };
3653
- const out1 = { value: "" };
3654
- const binding = t.bind(LIB, "glGetShaderSource", [t.uint32, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", bufSize))], t.void);
3655
- binding(shader, bufSize, out0, out1);
3656
- return [out0.value, out1.value];
3652
+ const __out0 = { value: 0 };
3653
+ const __out1 = { value: "" };
3654
+ const __binding = t.bind(LIB, "glGetShaderSource", [t.uint32, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", bufSize))], t.void);
3655
+ __binding(shader, bufSize, __out0, __out1);
3656
+ return [__out0.value, __out1.value];
3657
3657
  }
3658
3658
  /**
3659
3659
  * `const GLubyte * glGetString(GLenum name)`
@@ -3724,10 +3724,10 @@ export function getSubroutineUniformLocation(program, shadertype, name) {
3724
3724
  * @returns Tuple of `length` (`GLsizei`), `values` (`GLint[]`, length `count`)
3725
3725
  */
3726
3726
  export function getSynciv(sync, pname, count) {
3727
- const out0 = { value: 0 };
3728
- const out1 = { value: new Array(count).fill(0) };
3729
- glGetSynciv(sync, pname, count, out0, out1);
3730
- return [out0.value, out1.value];
3727
+ const __out0 = { value: 0 };
3728
+ const __out1 = { value: new Array(count).fill(0) };
3729
+ glGetSynciv(sync, pname, count, __out0, __out1);
3730
+ return [__out0.value, __out1.value];
3731
3731
  }
3732
3732
  /**
3733
3733
  * `void glGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, void *pixels)`
@@ -3776,9 +3776,9 @@ export function getTextureImage(texture, level, format, type, bufSize, pixels) {
3776
3776
  * @returns `params` (`GLfloat`)
3777
3777
  */
3778
3778
  export function getTextureLevelParameterfv(texture, level, pname) {
3779
- const out0 = { value: 0 };
3780
- glGetTextureLevelParameterfv(texture, level, pname, out0);
3781
- return out0.value;
3779
+ const __out0 = { value: 0 };
3780
+ glGetTextureLevelParameterfv(texture, level, pname, __out0);
3781
+ return __out0.value;
3782
3782
  }
3783
3783
  /**
3784
3784
  * `void glGetTextureLevelParameteriv(GLuint texture, GLint level, GLenum pname, GLint *params)`
@@ -3794,9 +3794,9 @@ export function getTextureLevelParameterfv(texture, level, pname) {
3794
3794
  * @returns `params` (`GLint`)
3795
3795
  */
3796
3796
  export function getTextureLevelParameteriv(texture, level, pname) {
3797
- const out0 = { value: 0 };
3798
- glGetTextureLevelParameteriv(texture, level, pname, out0);
3799
- return out0.value;
3797
+ const __out0 = { value: 0 };
3798
+ glGetTextureLevelParameteriv(texture, level, pname, __out0);
3799
+ return __out0.value;
3800
3800
  }
3801
3801
  /**
3802
3802
  * `void glGetTextureParameterfv(GLuint texture, GLenum pname, GLfloat *params)`
@@ -3811,9 +3811,9 @@ export function getTextureLevelParameteriv(texture, level, pname) {
3811
3811
  * @returns `params` (`GLfloat`)
3812
3812
  */
3813
3813
  export function getTextureParameterfv(texture, pname) {
3814
- const out0 = { value: 0 };
3815
- glGetTextureParameterfv(texture, pname, out0);
3816
- return out0.value;
3814
+ const __out0 = { value: 0 };
3815
+ glGetTextureParameterfv(texture, pname, __out0);
3816
+ return __out0.value;
3817
3817
  }
3818
3818
  /**
3819
3819
  * `void glGetTextureParameterIiv(GLuint texture, GLenum pname, GLint *params)`
@@ -3828,9 +3828,9 @@ export function getTextureParameterfv(texture, pname) {
3828
3828
  * @returns `params` (`GLint`)
3829
3829
  */
3830
3830
  export function getTextureParameterIiv(texture, pname) {
3831
- const out0 = { value: 0 };
3832
- glGetTextureParameterIiv(texture, pname, out0);
3833
- return out0.value;
3831
+ const __out0 = { value: 0 };
3832
+ glGetTextureParameterIiv(texture, pname, __out0);
3833
+ return __out0.value;
3834
3834
  }
3835
3835
  /**
3836
3836
  * `void glGetTextureParameterIuiv(GLuint texture, GLenum pname, GLuint *params)`
@@ -3845,9 +3845,9 @@ export function getTextureParameterIiv(texture, pname) {
3845
3845
  * @returns `params` (`GLuint`)
3846
3846
  */
3847
3847
  export function getTextureParameterIuiv(texture, pname) {
3848
- const out0 = { value: 0 };
3849
- glGetTextureParameterIuiv(texture, pname, out0);
3850
- return out0.value;
3848
+ const __out0 = { value: 0 };
3849
+ glGetTextureParameterIuiv(texture, pname, __out0);
3850
+ return __out0.value;
3851
3851
  }
3852
3852
  /**
3853
3853
  * `void glGetTextureParameteriv(GLuint texture, GLenum pname, GLint *params)`
@@ -3862,9 +3862,9 @@ export function getTextureParameterIuiv(texture, pname) {
3862
3862
  * @returns `params` (`GLint`)
3863
3863
  */
3864
3864
  export function getTextureParameteriv(texture, pname) {
3865
- const out0 = { value: 0 };
3866
- glGetTextureParameteriv(texture, pname, out0);
3867
- return out0.value;
3865
+ const __out0 = { value: 0 };
3866
+ glGetTextureParameteriv(texture, pname, __out0);
3867
+ return __out0.value;
3868
3868
  }
3869
3869
  /**
3870
3870
  * `void glGetTextureSubImage(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void *pixels)`
@@ -3903,9 +3903,9 @@ export function getTextureSubImage(texture, level, xoffset, yoffset, zoffset, wi
3903
3903
  * @returns `param` (`GLint`)
3904
3904
  */
3905
3905
  export function getTransformFeedbackiV(xfb, pname, index) {
3906
- const out0 = { value: 0 };
3907
- glGetTransformFeedbackiV(xfb, pname, index, out0);
3908
- return out0.value;
3906
+ const __out0 = { value: 0 };
3907
+ glGetTransformFeedbackiV(xfb, pname, index, __out0);
3908
+ return __out0.value;
3909
3909
  }
3910
3910
  /**
3911
3911
  * `void glGetTransformFeedbacki64_v(GLuint xfb, GLenum pname, GLuint index, GLint64 *param)`
@@ -3921,9 +3921,9 @@ export function getTransformFeedbackiV(xfb, pname, index) {
3921
3921
  * @returns `param` (`GLint64`)
3922
3922
  */
3923
3923
  export function getTransformFeedbacki64V(xfb, pname, index) {
3924
- const out0 = { value: 0 };
3925
- glGetTransformFeedbacki64V(xfb, pname, index, out0);
3926
- return out0.value;
3924
+ const __out0 = { value: 0 };
3925
+ glGetTransformFeedbacki64V(xfb, pname, index, __out0);
3926
+ return __out0.value;
3927
3927
  }
3928
3928
  /**
3929
3929
  * `void glGetTransformFeedbackiv(GLuint xfb, GLenum pname, GLint *param)`
@@ -3938,9 +3938,9 @@ export function getTransformFeedbacki64V(xfb, pname, index) {
3938
3938
  * @returns `param` (`GLint`)
3939
3939
  */
3940
3940
  export function getTransformFeedbackiv(xfb, pname) {
3941
- const out0 = { value: 0 };
3942
- glGetTransformFeedbackiv(xfb, pname, out0);
3943
- return out0.value;
3941
+ const __out0 = { value: 0 };
3942
+ glGetTransformFeedbackiv(xfb, pname, __out0);
3943
+ return __out0.value;
3944
3944
  }
3945
3945
  /**
3946
3946
  * `void glGetTransformFeedbackVarying(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name)`
@@ -3955,13 +3955,13 @@ export function getTransformFeedbackiv(xfb, pname) {
3955
3955
  * @returns Tuple of `length` (`GLsizei`), `size` (`GLsizei`), `type` (`AttributeType`), `name` (`string`, length `bufSize`)
3956
3956
  */
3957
3957
  export function getTransformFeedbackVarying(program, index, bufSize) {
3958
- const out0 = { value: 0 };
3959
- const out1 = { value: 0 };
3960
- const out2 = { value: 0 };
3961
- const out3 = { value: "" };
3962
- const binding = t.bind(LIB, "glGetTransformFeedbackVarying", [t.uint32, t.uint32, t.int32, t.ref(t.int32), t.ref(t.int32), t.ref(t.uint32), t.ref(t.string("borrowed", bufSize))], t.void);
3963
- binding(program, index, bufSize, out0, out1, out2, out3);
3964
- return [out0.value, out1.value, out2.value, out3.value];
3958
+ const __out0 = { value: 0 };
3959
+ const __out1 = { value: 0 };
3960
+ const __out2 = { value: 0 };
3961
+ const __out3 = { value: "" };
3962
+ const __binding = t.bind(LIB, "glGetTransformFeedbackVarying", [t.uint32, t.uint32, t.int32, t.ref(t.int32), t.ref(t.int32), t.ref(t.uint32), t.ref(t.string("borrowed", bufSize))], t.void);
3963
+ __binding(program, index, bufSize, __out0, __out1, __out2, __out3);
3964
+ return [__out0.value, __out1.value, __out2.value, __out3.value];
3965
3965
  }
3966
3966
  /**
3967
3967
  * `GLuint glGetUniformBlockIndex(GLuint program, const GLchar *uniformBlockName)`
@@ -4003,9 +4003,9 @@ export function getUniformLocation(program, name) {
4003
4003
  * @returns `params` (`GLuint`)
4004
4004
  */
4005
4005
  export function getUniformSubroutineuiv(shadertype, location) {
4006
- const out0 = { value: 0 };
4007
- glGetUniformSubroutineuiv(shadertype, location, out0);
4008
- return out0.value;
4006
+ const __out0 = { value: 0 };
4007
+ glGetUniformSubroutineuiv(shadertype, location, __out0);
4008
+ return __out0.value;
4009
4009
  }
4010
4010
  /**
4011
4011
  * `void glGetVertexArrayIndexed64iv(GLuint vaobj, GLuint index, GLenum pname, GLint64 *param)`
@@ -4021,9 +4021,9 @@ export function getUniformSubroutineuiv(shadertype, location) {
4021
4021
  * @returns `param` (`GLint64`)
4022
4022
  */
4023
4023
  export function getVertexArrayIndexed64iv(vaobj, index, pname) {
4024
- const out0 = { value: 0 };
4025
- glGetVertexArrayIndexed64iv(vaobj, index, pname, out0);
4026
- return out0.value;
4024
+ const __out0 = { value: 0 };
4025
+ glGetVertexArrayIndexed64iv(vaobj, index, pname, __out0);
4026
+ return __out0.value;
4027
4027
  }
4028
4028
  /**
4029
4029
  * `void glGetVertexArrayIndexediv(GLuint vaobj, GLuint index, GLenum pname, GLint *param)`
@@ -4039,9 +4039,9 @@ export function getVertexArrayIndexed64iv(vaobj, index, pname) {
4039
4039
  * @returns `param` (`GLint`)
4040
4040
  */
4041
4041
  export function getVertexArrayIndexediv(vaobj, index, pname) {
4042
- const out0 = { value: 0 };
4043
- glGetVertexArrayIndexediv(vaobj, index, pname, out0);
4044
- return out0.value;
4042
+ const __out0 = { value: 0 };
4043
+ glGetVertexArrayIndexediv(vaobj, index, pname, __out0);
4044
+ return __out0.value;
4045
4045
  }
4046
4046
  /**
4047
4047
  * `void glGetVertexArrayiv(GLuint vaobj, GLenum pname, GLint *param)`
@@ -4056,9 +4056,9 @@ export function getVertexArrayIndexediv(vaobj, index, pname) {
4056
4056
  * @returns `param` (`GLint`)
4057
4057
  */
4058
4058
  export function getVertexArrayiv(vaobj, pname) {
4059
- const out0 = { value: 0 };
4060
- glGetVertexArrayiv(vaobj, pname, out0);
4061
- return out0.value;
4059
+ const __out0 = { value: 0 };
4060
+ glGetVertexArrayiv(vaobj, pname, __out0);
4061
+ return __out0.value;
4062
4062
  }
4063
4063
  /**
4064
4064
  * `void glGetVertexAttribdv(GLuint index, GLenum pname, GLdouble *params)`
@@ -4072,9 +4072,9 @@ export function getVertexArrayiv(vaobj, pname) {
4072
4072
  * @returns `params` (`GLdouble[]`, length `4`)
4073
4073
  */
4074
4074
  export function getVertexAttribdv(index, pname) {
4075
- const out0 = { value: new Array(4).fill(0) };
4076
- glGetVertexAttribdv(index, pname, out0);
4077
- return out0.value;
4075
+ const __out0 = { value: new Array(4).fill(0) };
4076
+ glGetVertexAttribdv(index, pname, __out0);
4077
+ return __out0.value;
4078
4078
  }
4079
4079
  /**
4080
4080
  * `void glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params)`
@@ -4088,9 +4088,9 @@ export function getVertexAttribdv(index, pname) {
4088
4088
  * @returns `params` (`GLfloat[]`, length `4`)
4089
4089
  */
4090
4090
  export function getVertexAttribfv(index, pname) {
4091
- const out0 = { value: new Array(4).fill(0) };
4092
- glGetVertexAttribfv(index, pname, out0);
4093
- return out0.value;
4091
+ const __out0 = { value: new Array(4).fill(0) };
4092
+ glGetVertexAttribfv(index, pname, __out0);
4093
+ return __out0.value;
4094
4094
  }
4095
4095
  /**
4096
4096
  * `void glGetVertexAttribIiv(GLuint index, GLenum pname, GLint *params)`
@@ -4103,9 +4103,9 @@ export function getVertexAttribfv(index, pname) {
4103
4103
  * @returns `params` (`GLint`)
4104
4104
  */
4105
4105
  export function getVertexAttribIiv(index, pname) {
4106
- const out0 = { value: 0 };
4107
- glGetVertexAttribIiv(index, pname, out0);
4108
- return out0.value;
4106
+ const __out0 = { value: 0 };
4107
+ glGetVertexAttribIiv(index, pname, __out0);
4108
+ return __out0.value;
4109
4109
  }
4110
4110
  /**
4111
4111
  * `void glGetVertexAttribIuiv(GLuint index, GLenum pname, GLuint *params)`
@@ -4118,9 +4118,9 @@ export function getVertexAttribIiv(index, pname) {
4118
4118
  * @returns `params` (`GLuint`)
4119
4119
  */
4120
4120
  export function getVertexAttribIuiv(index, pname) {
4121
- const out0 = { value: 0 };
4122
- glGetVertexAttribIuiv(index, pname, out0);
4123
- return out0.value;
4121
+ const __out0 = { value: 0 };
4122
+ glGetVertexAttribIuiv(index, pname, __out0);
4123
+ return __out0.value;
4124
4124
  }
4125
4125
  /**
4126
4126
  * `void glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params)`
@@ -4134,9 +4134,9 @@ export function getVertexAttribIuiv(index, pname) {
4134
4134
  * @returns `params` (`GLint[]`, length `4`)
4135
4135
  */
4136
4136
  export function getVertexAttribiv(index, pname) {
4137
- const out0 = { value: new Array(4).fill(0) };
4138
- glGetVertexAttribiv(index, pname, out0);
4139
- return out0.value;
4137
+ const __out0 = { value: new Array(4).fill(0) };
4138
+ glGetVertexAttribiv(index, pname, __out0);
4139
+ return __out0.value;
4140
4140
  }
4141
4141
  /**
4142
4142
  * `void glHint(GLenum target, GLenum mode)`
@@ -9239,9 +9239,9 @@ export function waitSync(sync, flags, timeout) {
9239
9239
  * @returns `GLuint`, object class `buffer`
9240
9240
  */
9241
9241
  export function createBuffer() {
9242
- const out = { value: 0 };
9243
- glCreateBuffersSingle(1, out);
9244
- return out.value;
9242
+ const __out = { value: 0 };
9243
+ glCreateBuffersSingle(1, __out);
9244
+ return __out.value;
9245
9245
  }
9246
9246
  /**
9247
9247
  * Returns one framebuffer object name via `glCreateFramebuffers(1, ...)`.
@@ -9254,9 +9254,9 @@ export function createBuffer() {
9254
9254
  * @returns `GLuint`, object class `framebuffer`
9255
9255
  */
9256
9256
  export function createFramebuffer() {
9257
- const out = { value: 0 };
9258
- glCreateFramebuffersSingle(1, out);
9259
- return out.value;
9257
+ const __out = { value: 0 };
9258
+ glCreateFramebuffersSingle(1, __out);
9259
+ return __out.value;
9260
9260
  }
9261
9261
  /**
9262
9262
  * Returns one program pipeline object name via `glCreateProgramPipelines(1, ...)`.
@@ -9269,9 +9269,9 @@ export function createFramebuffer() {
9269
9269
  * @returns `GLuint`, object class `program pipeline`
9270
9270
  */
9271
9271
  export function createProgramPipeline() {
9272
- const out = { value: 0 };
9273
- glCreateProgramPipelinesSingle(1, out);
9274
- return out.value;
9272
+ const __out = { value: 0 };
9273
+ glCreateProgramPipelinesSingle(1, __out);
9274
+ return __out.value;
9275
9275
  }
9276
9276
  /**
9277
9277
  * Returns one query object name via `glCreateQueries(..., 1, ...)`.
@@ -9285,9 +9285,9 @@ export function createProgramPipeline() {
9285
9285
  * @returns `GLuint`, object class `query`
9286
9286
  */
9287
9287
  export function createQuery(target) {
9288
- const out = { value: 0 };
9289
- glCreateQueriesSingle(target, 1, out);
9290
- return out.value;
9288
+ const __out = { value: 0 };
9289
+ glCreateQueriesSingle(target, 1, __out);
9290
+ return __out.value;
9291
9291
  }
9292
9292
  /**
9293
9293
  * Returns one renderbuffer object name via `glCreateRenderbuffers(1, ...)`.
@@ -9300,9 +9300,9 @@ export function createQuery(target) {
9300
9300
  * @returns `GLuint`, object class `renderbuffer`
9301
9301
  */
9302
9302
  export function createRenderbuffer() {
9303
- const out = { value: 0 };
9304
- glCreateRenderbuffersSingle(1, out);
9305
- return out.value;
9303
+ const __out = { value: 0 };
9304
+ glCreateRenderbuffersSingle(1, __out);
9305
+ return __out.value;
9306
9306
  }
9307
9307
  /**
9308
9308
  * Returns one sampler object name via `glCreateSamplers(1, ...)`.
@@ -9315,9 +9315,9 @@ export function createRenderbuffer() {
9315
9315
  * @returns `GLuint`, object class `sampler`
9316
9316
  */
9317
9317
  export function createSampler() {
9318
- const out = { value: 0 };
9319
- glCreateSamplersSingle(1, out);
9320
- return out.value;
9318
+ const __out = { value: 0 };
9319
+ glCreateSamplersSingle(1, __out);
9320
+ return __out.value;
9321
9321
  }
9322
9322
  /**
9323
9323
  * Returns one texture object name via `glCreateTextures(..., 1, ...)`.
@@ -9331,9 +9331,9 @@ export function createSampler() {
9331
9331
  * @returns `GLuint`, object class `texture`
9332
9332
  */
9333
9333
  export function createTexture(target) {
9334
- const out = { value: 0 };
9335
- glCreateTexturesSingle(target, 1, out);
9336
- return out.value;
9334
+ const __out = { value: 0 };
9335
+ glCreateTexturesSingle(target, 1, __out);
9336
+ return __out.value;
9337
9337
  }
9338
9338
  /**
9339
9339
  * Returns one transform feedback object name via `glCreateTransformFeedbacks(1, ...)`.
@@ -9346,9 +9346,9 @@ export function createTexture(target) {
9346
9346
  * @returns `GLuint`, object class `transform feedback`
9347
9347
  */
9348
9348
  export function createTransformFeedback() {
9349
- const out = { value: 0 };
9350
- glCreateTransformFeedbacksSingle(1, out);
9351
- return out.value;
9349
+ const __out = { value: 0 };
9350
+ glCreateTransformFeedbacksSingle(1, __out);
9351
+ return __out.value;
9352
9352
  }
9353
9353
  /**
9354
9354
  * Returns one vertex array object name via `glCreateVertexArrays(1, ...)`.
@@ -9361,9 +9361,9 @@ export function createTransformFeedback() {
9361
9361
  * @returns `GLuint`, object class `vertex array`
9362
9362
  */
9363
9363
  export function createVertexArray() {
9364
- const out = { value: 0 };
9365
- glCreateVertexArraysSingle(1, out);
9366
- return out.value;
9364
+ const __out = { value: 0 };
9365
+ glCreateVertexArraysSingle(1, __out);
9366
+ return __out.value;
9367
9367
  }
9368
9368
  /**
9369
9369
  * Deletes one buffer object name via `glDeleteBuffers(1, ...)`.
@@ -9475,9 +9475,9 @@ export function deleteVertexArray(name) {
9475
9475
  * @returns `GLuint`, object class `buffer`
9476
9476
  */
9477
9477
  export function genBuffer() {
9478
- const out = { value: 0 };
9479
- glGenBuffersSingle(1, out);
9480
- return out.value;
9478
+ const __out = { value: 0 };
9479
+ glGenBuffersSingle(1, __out);
9480
+ return __out.value;
9481
9481
  }
9482
9482
  /**
9483
9483
  * Returns one framebuffer object name via `glGenFramebuffers(1, ...)`.
@@ -9489,9 +9489,9 @@ export function genBuffer() {
9489
9489
  * @returns `GLuint`, object class `framebuffer`
9490
9490
  */
9491
9491
  export function genFramebuffer() {
9492
- const out = { value: 0 };
9493
- glGenFramebuffersSingle(1, out);
9494
- return out.value;
9492
+ const __out = { value: 0 };
9493
+ glGenFramebuffersSingle(1, __out);
9494
+ return __out.value;
9495
9495
  }
9496
9496
  /**
9497
9497
  * Returns one program pipeline object name via `glGenProgramPipelines(1, ...)`.
@@ -9503,9 +9503,9 @@ export function genFramebuffer() {
9503
9503
  * @returns `GLuint`, object class `program pipeline`
9504
9504
  */
9505
9505
  export function genProgramPipeline() {
9506
- const out = { value: 0 };
9507
- glGenProgramPipelinesSingle(1, out);
9508
- return out.value;
9506
+ const __out = { value: 0 };
9507
+ glGenProgramPipelinesSingle(1, __out);
9508
+ return __out.value;
9509
9509
  }
9510
9510
  /**
9511
9511
  * Returns one query object name via `glGenQueries(1, ...)`.
@@ -9515,9 +9515,9 @@ export function genProgramPipeline() {
9515
9515
  * @returns `GLuint`, object class `query`
9516
9516
  */
9517
9517
  export function genQuery() {
9518
- const out = { value: 0 };
9519
- glGenQueriesSingle(1, out);
9520
- return out.value;
9518
+ const __out = { value: 0 };
9519
+ glGenQueriesSingle(1, __out);
9520
+ return __out.value;
9521
9521
  }
9522
9522
  /**
9523
9523
  * Returns one renderbuffer object name via `glGenRenderbuffers(1, ...)`.
@@ -9529,9 +9529,9 @@ export function genQuery() {
9529
9529
  * @returns `GLuint`, object class `renderbuffer`
9530
9530
  */
9531
9531
  export function genRenderbuffer() {
9532
- const out = { value: 0 };
9533
- glGenRenderbuffersSingle(1, out);
9534
- return out.value;
9532
+ const __out = { value: 0 };
9533
+ glGenRenderbuffersSingle(1, __out);
9534
+ return __out.value;
9535
9535
  }
9536
9536
  /**
9537
9537
  * Returns one sampler object name via `glGenSamplers(1, ...)`.
@@ -9543,9 +9543,9 @@ export function genRenderbuffer() {
9543
9543
  * @returns `GLuint`, object class `sampler`
9544
9544
  */
9545
9545
  export function genSampler() {
9546
- const out = { value: 0 };
9547
- glGenSamplersSingle(1, out);
9548
- return out.value;
9546
+ const __out = { value: 0 };
9547
+ glGenSamplersSingle(1, __out);
9548
+ return __out.value;
9549
9549
  }
9550
9550
  /**
9551
9551
  * Returns one texture object name via `glGenTextures(1, ...)`.
@@ -9555,9 +9555,9 @@ export function genSampler() {
9555
9555
  * @returns `GLuint`, object class `texture`
9556
9556
  */
9557
9557
  export function genTexture() {
9558
- const out = { value: 0 };
9559
- glGenTexturesSingle(1, out);
9560
- return out.value;
9558
+ const __out = { value: 0 };
9559
+ glGenTexturesSingle(1, __out);
9560
+ return __out.value;
9561
9561
  }
9562
9562
  /**
9563
9563
  * Returns one transform feedback object name via `glGenTransformFeedbacks(1, ...)`.
@@ -9569,9 +9569,9 @@ export function genTexture() {
9569
9569
  * @returns `GLuint`, object class `transform feedback`
9570
9570
  */
9571
9571
  export function genTransformFeedback() {
9572
- const out = { value: 0 };
9573
- glGenTransformFeedbacksSingle(1, out);
9574
- return out.value;
9572
+ const __out = { value: 0 };
9573
+ glGenTransformFeedbacksSingle(1, __out);
9574
+ return __out.value;
9575
9575
  }
9576
9576
  /**
9577
9577
  * Returns one vertex array object name via `glGenVertexArrays(1, ...)`.
@@ -9583,9 +9583,9 @@ export function genTransformFeedback() {
9583
9583
  * @returns `GLuint`, object class `vertex array`
9584
9584
  */
9585
9585
  export function genVertexArray() {
9586
- const out = { value: 0 };
9587
- glGenVertexArraysSingle(1, out);
9588
- return out.value;
9586
+ const __out = { value: 0 };
9587
+ glGenVertexArraysSingle(1, __out);
9588
+ return __out.value;
9589
9589
  }
9590
9590
  /** The shared library the generated OpenGL bindings are loaded from. */
9591
9591
  export const LIB = "libGL.so.1";