@gtkx/gl 1.0.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.
- package/README.md +1 -1
- package/dist/generated/commands.js +315 -315
- package/dist/generated/commands.js.map +1 -1
- package/package.json +11 -7
- package/src/generated/commands.ts +315 -315
|
@@ -1534,9 +1534,9 @@ export function copyTextureSubImage3D(texture: GLuint, level: GLint, xoffset: GL
|
|
|
1534
1534
|
* @returns `buffers` (`GLuint[]`, length `n`, object class `buffer`)
|
|
1535
1535
|
*/
|
|
1536
1536
|
export function createBuffers(n: GLsizei): GLuint[] {
|
|
1537
|
-
const
|
|
1538
|
-
glCreateBuffers(n,
|
|
1539
|
-
return
|
|
1537
|
+
const __out0 = { value: new Array<number>(n).fill(0) };
|
|
1538
|
+
glCreateBuffers(n, __out0);
|
|
1539
|
+
return __out0.value;
|
|
1540
1540
|
}
|
|
1541
1541
|
|
|
1542
1542
|
/**
|
|
@@ -1551,9 +1551,9 @@ export function createBuffers(n: GLsizei): GLuint[] {
|
|
|
1551
1551
|
* @returns `framebuffers` (`GLuint[]`, length `n`, object class `framebuffer`)
|
|
1552
1552
|
*/
|
|
1553
1553
|
export function createFramebuffers(n: GLsizei): GLuint[] {
|
|
1554
|
-
const
|
|
1555
|
-
glCreateFramebuffers(n,
|
|
1556
|
-
return
|
|
1554
|
+
const __out0 = { value: new Array<number>(n).fill(0) };
|
|
1555
|
+
glCreateFramebuffers(n, __out0);
|
|
1556
|
+
return __out0.value;
|
|
1557
1557
|
}
|
|
1558
1558
|
|
|
1559
1559
|
/**
|
|
@@ -1580,9 +1580,9 @@ export function createProgram(): GLuint {
|
|
|
1580
1580
|
* @returns `pipelines` (`GLuint[]`, length `n`, object class `program pipeline`)
|
|
1581
1581
|
*/
|
|
1582
1582
|
export function createProgramPipelines(n: GLsizei): GLuint[] {
|
|
1583
|
-
const
|
|
1584
|
-
glCreateProgramPipelines(n,
|
|
1585
|
-
return
|
|
1583
|
+
const __out0 = { value: new Array<number>(n).fill(0) };
|
|
1584
|
+
glCreateProgramPipelines(n, __out0);
|
|
1585
|
+
return __out0.value;
|
|
1586
1586
|
}
|
|
1587
1587
|
|
|
1588
1588
|
/**
|
|
@@ -1598,9 +1598,9 @@ export function createProgramPipelines(n: GLsizei): GLuint[] {
|
|
|
1598
1598
|
* @returns `ids` (`GLuint[]`, length `n`, object class `query`)
|
|
1599
1599
|
*/
|
|
1600
1600
|
export function createQueries(target: QueryTarget, n: GLsizei): GLuint[] {
|
|
1601
|
-
const
|
|
1602
|
-
glCreateQueries(target, n,
|
|
1603
|
-
return
|
|
1601
|
+
const __out0 = { value: new Array<number>(n).fill(0) };
|
|
1602
|
+
glCreateQueries(target, n, __out0);
|
|
1603
|
+
return __out0.value;
|
|
1604
1604
|
}
|
|
1605
1605
|
|
|
1606
1606
|
/**
|
|
@@ -1615,9 +1615,9 @@ export function createQueries(target: QueryTarget, n: GLsizei): GLuint[] {
|
|
|
1615
1615
|
* @returns `renderbuffers` (`GLuint[]`, length `n`, object class `renderbuffer`)
|
|
1616
1616
|
*/
|
|
1617
1617
|
export function createRenderbuffers(n: GLsizei): GLuint[] {
|
|
1618
|
-
const
|
|
1619
|
-
glCreateRenderbuffers(n,
|
|
1620
|
-
return
|
|
1618
|
+
const __out0 = { value: new Array<number>(n).fill(0) };
|
|
1619
|
+
glCreateRenderbuffers(n, __out0);
|
|
1620
|
+
return __out0.value;
|
|
1621
1621
|
}
|
|
1622
1622
|
|
|
1623
1623
|
/**
|
|
@@ -1632,9 +1632,9 @@ export function createRenderbuffers(n: GLsizei): GLuint[] {
|
|
|
1632
1632
|
* @returns `samplers` (`GLuint[]`, length `n`, object class `sampler`)
|
|
1633
1633
|
*/
|
|
1634
1634
|
export function createSamplers(n: GLsizei): GLuint[] {
|
|
1635
|
-
const
|
|
1636
|
-
glCreateSamplers(n,
|
|
1637
|
-
return
|
|
1635
|
+
const __out0 = { value: new Array<number>(n).fill(0) };
|
|
1636
|
+
glCreateSamplers(n, __out0);
|
|
1637
|
+
return __out0.value;
|
|
1638
1638
|
}
|
|
1639
1639
|
|
|
1640
1640
|
/**
|
|
@@ -1679,9 +1679,9 @@ export function createShaderProgramv(type: ShaderType, count: GLsizei, strings:
|
|
|
1679
1679
|
* @returns `textures` (`GLuint[]`, length `n`, object class `texture`)
|
|
1680
1680
|
*/
|
|
1681
1681
|
export function createTextures(target: TextureTarget, n: GLsizei): GLuint[] {
|
|
1682
|
-
const
|
|
1683
|
-
glCreateTextures(target, n,
|
|
1684
|
-
return
|
|
1682
|
+
const __out0 = { value: new Array<number>(n).fill(0) };
|
|
1683
|
+
glCreateTextures(target, n, __out0);
|
|
1684
|
+
return __out0.value;
|
|
1685
1685
|
}
|
|
1686
1686
|
|
|
1687
1687
|
/**
|
|
@@ -1696,9 +1696,9 @@ export function createTextures(target: TextureTarget, n: GLsizei): GLuint[] {
|
|
|
1696
1696
|
* @returns `ids` (`GLuint[]`, length `n`, object class `transform feedback`)
|
|
1697
1697
|
*/
|
|
1698
1698
|
export function createTransformFeedbacks(n: GLsizei): GLuint[] {
|
|
1699
|
-
const
|
|
1700
|
-
glCreateTransformFeedbacks(n,
|
|
1701
|
-
return
|
|
1699
|
+
const __out0 = { value: new Array<number>(n).fill(0) };
|
|
1700
|
+
glCreateTransformFeedbacks(n, __out0);
|
|
1701
|
+
return __out0.value;
|
|
1702
1702
|
}
|
|
1703
1703
|
|
|
1704
1704
|
/**
|
|
@@ -1713,9 +1713,9 @@ export function createTransformFeedbacks(n: GLsizei): GLuint[] {
|
|
|
1713
1713
|
* @returns `arrays` (`GLuint[]`, length `n`, object class `vertex array`)
|
|
1714
1714
|
*/
|
|
1715
1715
|
export function createVertexArrays(n: GLsizei): GLuint[] {
|
|
1716
|
-
const
|
|
1717
|
-
glCreateVertexArrays(n,
|
|
1718
|
-
return
|
|
1716
|
+
const __out0 = { value: new Array<number>(n).fill(0) };
|
|
1717
|
+
glCreateVertexArrays(n, __out0);
|
|
1718
|
+
return __out0.value;
|
|
1719
1719
|
}
|
|
1720
1720
|
|
|
1721
1721
|
/**
|
|
@@ -2739,9 +2739,9 @@ export function frontFace(mode: FrontFaceDirection): void {
|
|
|
2739
2739
|
* @returns `buffers` (`GLuint[]`, length `n`, object class `buffer`)
|
|
2740
2740
|
*/
|
|
2741
2741
|
export function genBuffers(n: GLsizei): GLuint[] {
|
|
2742
|
-
const
|
|
2743
|
-
glGenBuffers(n,
|
|
2744
|
-
return
|
|
2742
|
+
const __out0 = { value: new Array<number>(n).fill(0) };
|
|
2743
|
+
glGenBuffers(n, __out0);
|
|
2744
|
+
return __out0.value;
|
|
2745
2745
|
}
|
|
2746
2746
|
|
|
2747
2747
|
/**
|
|
@@ -2786,9 +2786,9 @@ export function generateTextureMipmap(texture: GLuint): void {
|
|
|
2786
2786
|
* @returns `framebuffers` (`GLuint[]`, length `n`, object class `framebuffer`)
|
|
2787
2787
|
*/
|
|
2788
2788
|
export function genFramebuffers(n: GLsizei): GLuint[] {
|
|
2789
|
-
const
|
|
2790
|
-
glGenFramebuffers(n,
|
|
2791
|
-
return
|
|
2789
|
+
const __out0 = { value: new Array<number>(n).fill(0) };
|
|
2790
|
+
glGenFramebuffers(n, __out0);
|
|
2791
|
+
return __out0.value;
|
|
2792
2792
|
}
|
|
2793
2793
|
|
|
2794
2794
|
/**
|
|
@@ -2802,9 +2802,9 @@ export function genFramebuffers(n: GLsizei): GLuint[] {
|
|
|
2802
2802
|
* @returns `pipelines` (`GLuint[]`, length `n`, object class `program pipeline`)
|
|
2803
2803
|
*/
|
|
2804
2804
|
export function genProgramPipelines(n: GLsizei): GLuint[] {
|
|
2805
|
-
const
|
|
2806
|
-
glGenProgramPipelines(n,
|
|
2807
|
-
return
|
|
2805
|
+
const __out0 = { value: new Array<number>(n).fill(0) };
|
|
2806
|
+
glGenProgramPipelines(n, __out0);
|
|
2807
|
+
return __out0.value;
|
|
2808
2808
|
}
|
|
2809
2809
|
|
|
2810
2810
|
/**
|
|
@@ -2818,9 +2818,9 @@ export function genProgramPipelines(n: GLsizei): GLuint[] {
|
|
|
2818
2818
|
* @returns `ids` (`GLuint[]`, length `n`, object class `query`)
|
|
2819
2819
|
*/
|
|
2820
2820
|
export function genQueries(n: GLsizei): GLuint[] {
|
|
2821
|
-
const
|
|
2822
|
-
glGenQueries(n,
|
|
2823
|
-
return
|
|
2821
|
+
const __out0 = { value: new Array<number>(n).fill(0) };
|
|
2822
|
+
glGenQueries(n, __out0);
|
|
2823
|
+
return __out0.value;
|
|
2824
2824
|
}
|
|
2825
2825
|
|
|
2826
2826
|
/**
|
|
@@ -2836,9 +2836,9 @@ export function genQueries(n: GLsizei): GLuint[] {
|
|
|
2836
2836
|
* @returns `renderbuffers` (`GLuint[]`, length `n`, object class `renderbuffer`)
|
|
2837
2837
|
*/
|
|
2838
2838
|
export function genRenderbuffers(n: GLsizei): GLuint[] {
|
|
2839
|
-
const
|
|
2840
|
-
glGenRenderbuffers(n,
|
|
2841
|
-
return
|
|
2839
|
+
const __out0 = { value: new Array<number>(n).fill(0) };
|
|
2840
|
+
glGenRenderbuffers(n, __out0);
|
|
2841
|
+
return __out0.value;
|
|
2842
2842
|
}
|
|
2843
2843
|
|
|
2844
2844
|
/**
|
|
@@ -2852,9 +2852,9 @@ export function genRenderbuffers(n: GLsizei): GLuint[] {
|
|
|
2852
2852
|
* @returns `samplers` (`GLuint[]`, length `count`, object class `sampler`)
|
|
2853
2853
|
*/
|
|
2854
2854
|
export function genSamplers(count: GLsizei): GLuint[] {
|
|
2855
|
-
const
|
|
2856
|
-
glGenSamplers(count,
|
|
2857
|
-
return
|
|
2855
|
+
const __out0 = { value: new Array<number>(count).fill(0) };
|
|
2856
|
+
glGenSamplers(count, __out0);
|
|
2857
|
+
return __out0.value;
|
|
2858
2858
|
}
|
|
2859
2859
|
|
|
2860
2860
|
/**
|
|
@@ -2867,9 +2867,9 @@ export function genSamplers(count: GLsizei): GLuint[] {
|
|
|
2867
2867
|
* @returns `textures` (`GLuint[]`, length `n`, object class `texture`)
|
|
2868
2868
|
*/
|
|
2869
2869
|
export function genTextures(n: GLsizei): GLuint[] {
|
|
2870
|
-
const
|
|
2871
|
-
glGenTextures(n,
|
|
2872
|
-
return
|
|
2870
|
+
const __out0 = { value: new Array<number>(n).fill(0) };
|
|
2871
|
+
glGenTextures(n, __out0);
|
|
2872
|
+
return __out0.value;
|
|
2873
2873
|
}
|
|
2874
2874
|
|
|
2875
2875
|
/**
|
|
@@ -2884,9 +2884,9 @@ export function genTextures(n: GLsizei): GLuint[] {
|
|
|
2884
2884
|
* @returns `ids` (`GLuint[]`, length `n`, object class `transform feedback`)
|
|
2885
2885
|
*/
|
|
2886
2886
|
export function genTransformFeedbacks(n: GLsizei): GLuint[] {
|
|
2887
|
-
const
|
|
2888
|
-
glGenTransformFeedbacks(n,
|
|
2889
|
-
return
|
|
2887
|
+
const __out0 = { value: new Array<number>(n).fill(0) };
|
|
2888
|
+
glGenTransformFeedbacks(n, __out0);
|
|
2889
|
+
return __out0.value;
|
|
2890
2890
|
}
|
|
2891
2891
|
|
|
2892
2892
|
/**
|
|
@@ -2902,9 +2902,9 @@ export function genTransformFeedbacks(n: GLsizei): GLuint[] {
|
|
|
2902
2902
|
* @returns `arrays` (`GLuint[]`, length `n`, object class `vertex array`)
|
|
2903
2903
|
*/
|
|
2904
2904
|
export function genVertexArrays(n: GLsizei): GLuint[] {
|
|
2905
|
-
const
|
|
2906
|
-
glGenVertexArrays(n,
|
|
2907
|
-
return
|
|
2905
|
+
const __out0 = { value: new Array<number>(n).fill(0) };
|
|
2906
|
+
glGenVertexArrays(n, __out0);
|
|
2907
|
+
return __out0.value;
|
|
2908
2908
|
}
|
|
2909
2909
|
|
|
2910
2910
|
/**
|
|
@@ -2919,13 +2919,13 @@ export function genVertexArrays(n: GLsizei): GLuint[] {
|
|
|
2919
2919
|
* @returns Tuple of `length` (`GLsizei`), `size` (`GLint`), `type` (`AttributeType`), `name` (`string`, length `bufSize`)
|
|
2920
2920
|
*/
|
|
2921
2921
|
export function getActiveAttrib(program: GLuint, index: GLuint, bufSize: GLsizei): [GLsizei, GLint, AttributeType, string] {
|
|
2922
|
-
const
|
|
2923
|
-
const
|
|
2924
|
-
const
|
|
2925
|
-
const
|
|
2926
|
-
const
|
|
2927
|
-
|
|
2928
|
-
return [
|
|
2922
|
+
const __out0 = { value: 0 };
|
|
2923
|
+
const __out1 = { value: 0 };
|
|
2924
|
+
const __out2 = { value: 0 };
|
|
2925
|
+
const __out3 = { value: "" };
|
|
2926
|
+
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);
|
|
2927
|
+
__binding(program, index, bufSize, __out0, __out1, __out2, __out3);
|
|
2928
|
+
return [__out0.value, __out1.value, __out2.value, __out3.value];
|
|
2929
2929
|
}
|
|
2930
2930
|
|
|
2931
2931
|
/**
|
|
@@ -2942,11 +2942,11 @@ export function getActiveAttrib(program: GLuint, index: GLuint, bufSize: GLsizei
|
|
|
2942
2942
|
* @returns Tuple of `length` (`GLsizei`), `name` (`string`, length `bufSize`)
|
|
2943
2943
|
*/
|
|
2944
2944
|
export function getActiveSubroutineName(program: GLuint, shadertype: ShaderType, index: GLuint, bufSize: GLsizei): [GLsizei, string] {
|
|
2945
|
-
const
|
|
2946
|
-
const
|
|
2947
|
-
const
|
|
2948
|
-
|
|
2949
|
-
return [
|
|
2945
|
+
const __out0 = { value: 0 };
|
|
2946
|
+
const __out1 = { value: "" };
|
|
2947
|
+
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);
|
|
2948
|
+
__binding(program, shadertype, index, bufSize, __out0, __out1);
|
|
2949
|
+
return [__out0.value, __out1.value];
|
|
2950
2950
|
}
|
|
2951
2951
|
|
|
2952
2952
|
/**
|
|
@@ -2963,11 +2963,11 @@ export function getActiveSubroutineName(program: GLuint, shadertype: ShaderType,
|
|
|
2963
2963
|
* @returns Tuple of `length` (`GLsizei`), `name` (`string`, length `bufSize`)
|
|
2964
2964
|
*/
|
|
2965
2965
|
export function getActiveSubroutineUniformName(program: GLuint, shadertype: ShaderType, index: GLuint, bufSize: GLsizei): [GLsizei, string] {
|
|
2966
|
-
const
|
|
2967
|
-
const
|
|
2968
|
-
const
|
|
2969
|
-
|
|
2970
|
-
return [
|
|
2966
|
+
const __out0 = { value: 0 };
|
|
2967
|
+
const __out1 = { value: "" };
|
|
2968
|
+
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);
|
|
2969
|
+
__binding(program, shadertype, index, bufSize, __out0, __out1);
|
|
2970
|
+
return [__out0.value, __out1.value];
|
|
2971
2971
|
}
|
|
2972
2972
|
|
|
2973
2973
|
/**
|
|
@@ -2982,13 +2982,13 @@ export function getActiveSubroutineUniformName(program: GLuint, shadertype: Shad
|
|
|
2982
2982
|
* @returns Tuple of `length` (`GLsizei`), `size` (`GLint`), `type` (`UniformType`), `name` (`string`, length `bufSize`)
|
|
2983
2983
|
*/
|
|
2984
2984
|
export function getActiveUniform(program: GLuint, index: GLuint, bufSize: GLsizei): [GLsizei, GLint, UniformType, string] {
|
|
2985
|
-
const
|
|
2986
|
-
const
|
|
2987
|
-
const
|
|
2988
|
-
const
|
|
2989
|
-
const
|
|
2990
|
-
|
|
2991
|
-
return [
|
|
2985
|
+
const __out0 = { value: 0 };
|
|
2986
|
+
const __out1 = { value: 0 };
|
|
2987
|
+
const __out2 = { value: 0 };
|
|
2988
|
+
const __out3 = { value: "" };
|
|
2989
|
+
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);
|
|
2990
|
+
__binding(program, index, bufSize, __out0, __out1, __out2, __out3);
|
|
2991
|
+
return [__out0.value, __out1.value, __out2.value, __out3.value];
|
|
2992
2992
|
}
|
|
2993
2993
|
|
|
2994
2994
|
/**
|
|
@@ -3005,11 +3005,11 @@ export function getActiveUniform(program: GLuint, index: GLuint, bufSize: GLsize
|
|
|
3005
3005
|
* @returns Tuple of `length` (`GLsizei`), `uniformBlockName` (`string`, length `bufSize`)
|
|
3006
3006
|
*/
|
|
3007
3007
|
export function getActiveUniformBlockName(program: GLuint, uniformBlockIndex: GLuint, bufSize: GLsizei): [GLsizei, string] {
|
|
3008
|
-
const
|
|
3009
|
-
const
|
|
3010
|
-
const
|
|
3011
|
-
|
|
3012
|
-
return [
|
|
3008
|
+
const __out0 = { value: 0 };
|
|
3009
|
+
const __out1 = { value: "" };
|
|
3010
|
+
const __binding = t.bind(LIB, "glGetActiveUniformBlockName", [t.uint32, t.uint32, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", bufSize))], t.void);
|
|
3011
|
+
__binding(program, uniformBlockIndex, bufSize, __out0, __out1);
|
|
3012
|
+
return [__out0.value, __out1.value];
|
|
3013
3013
|
}
|
|
3014
3014
|
|
|
3015
3015
|
/**
|
|
@@ -3026,11 +3026,11 @@ export function getActiveUniformBlockName(program: GLuint, uniformBlockIndex: GL
|
|
|
3026
3026
|
* @returns Tuple of `length` (`GLsizei`), `uniformName` (`string`, length `bufSize`)
|
|
3027
3027
|
*/
|
|
3028
3028
|
export function getActiveUniformName(program: GLuint, uniformIndex: GLuint, bufSize: GLsizei): [GLsizei, string] {
|
|
3029
|
-
const
|
|
3030
|
-
const
|
|
3031
|
-
const
|
|
3032
|
-
|
|
3033
|
-
return [
|
|
3029
|
+
const __out0 = { value: 0 };
|
|
3030
|
+
const __out1 = { value: "" };
|
|
3031
|
+
const __binding = t.bind(LIB, "glGetActiveUniformName", [t.uint32, t.uint32, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", bufSize))], t.void);
|
|
3032
|
+
__binding(program, uniformIndex, bufSize, __out0, __out1);
|
|
3033
|
+
return [__out0.value, __out1.value];
|
|
3034
3034
|
}
|
|
3035
3035
|
|
|
3036
3036
|
/**
|
|
@@ -3043,10 +3043,10 @@ export function getActiveUniformName(program: GLuint, uniformIndex: GLuint, bufS
|
|
|
3043
3043
|
* @returns Tuple of `count` (`GLsizei`), `shaders` (`GLuint[]`, length `maxCount`, object class `shader`)
|
|
3044
3044
|
*/
|
|
3045
3045
|
export function getAttachedShaders(program: GLuint, maxCount: GLsizei): [GLsizei, GLuint[]] {
|
|
3046
|
-
const
|
|
3047
|
-
const
|
|
3048
|
-
glGetAttachedShaders(program, maxCount,
|
|
3049
|
-
return [
|
|
3046
|
+
const __out0 = { value: 0 };
|
|
3047
|
+
const __out1 = { value: new Array<number>(maxCount).fill(0) };
|
|
3048
|
+
glGetAttachedShaders(program, maxCount, __out0, __out1);
|
|
3049
|
+
return [__out0.value, __out1.value];
|
|
3050
3050
|
}
|
|
3051
3051
|
|
|
3052
3052
|
/**
|
|
@@ -3074,9 +3074,9 @@ export function getAttribLocation(program: GLuint, name: string): GLint {
|
|
|
3074
3074
|
* @returns `params` (`GLint64`)
|
|
3075
3075
|
*/
|
|
3076
3076
|
export function getBufferParameteri64v(target: BufferTargetARB, pname: BufferPNameARB): GLint64 {
|
|
3077
|
-
const
|
|
3078
|
-
glGetBufferParameteri64v(target, pname,
|
|
3079
|
-
return
|
|
3077
|
+
const __out0 = { value: 0 };
|
|
3078
|
+
glGetBufferParameteri64v(target, pname, __out0);
|
|
3079
|
+
return __out0.value;
|
|
3080
3080
|
}
|
|
3081
3081
|
|
|
3082
3082
|
/**
|
|
@@ -3090,9 +3090,9 @@ export function getBufferParameteri64v(target: BufferTargetARB, pname: BufferPNa
|
|
|
3090
3090
|
* @returns `params` (`GLint`)
|
|
3091
3091
|
*/
|
|
3092
3092
|
export function getBufferParameteriv(target: BufferTargetARB, pname: BufferPNameARB): GLint {
|
|
3093
|
-
const
|
|
3094
|
-
glGetBufferParameteriv(target, pname,
|
|
3095
|
-
return
|
|
3093
|
+
const __out0 = { value: 0 };
|
|
3094
|
+
glGetBufferParameteriv(target, pname, __out0);
|
|
3095
|
+
return __out0.value;
|
|
3096
3096
|
}
|
|
3097
3097
|
|
|
3098
3098
|
/**
|
|
@@ -3178,15 +3178,15 @@ export function getCompressedTextureSubImage(texture: GLuint, level: GLint, xoff
|
|
|
3178
3178
|
* @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`)
|
|
3179
3179
|
*/
|
|
3180
3180
|
export function getDebugMessageLog(count: GLuint, bufSize: GLsizei): [GLuint, DebugSource[], DebugType[], GLuint[], DebugSeverity[], GLsizei[], string] {
|
|
3181
|
-
const
|
|
3182
|
-
const
|
|
3183
|
-
const
|
|
3184
|
-
const
|
|
3185
|
-
const
|
|
3186
|
-
const
|
|
3187
|
-
const
|
|
3188
|
-
const
|
|
3189
|
-
return [
|
|
3181
|
+
const __out0 = { value: new Array<number>(count).fill(0) };
|
|
3182
|
+
const __out1 = { value: new Array<number>(count).fill(0) };
|
|
3183
|
+
const __out2 = { value: new Array<number>(count).fill(0) };
|
|
3184
|
+
const __out3 = { value: new Array<number>(count).fill(0) };
|
|
3185
|
+
const __out4 = { value: new Array<number>(count).fill(0) };
|
|
3186
|
+
const __out5 = { value: "" };
|
|
3187
|
+
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);
|
|
3188
|
+
const __result = __binding(count, bufSize, __out0, __out1, __out2, __out3, __out4, __out5);
|
|
3189
|
+
return [__result as GLuint, __out0.value, __out1.value, __out2.value, __out3.value, __out4.value, __out5.value];
|
|
3190
3190
|
}
|
|
3191
3191
|
|
|
3192
3192
|
/**
|
|
@@ -3246,9 +3246,9 @@ export function getFragDataLocation(program: GLuint, name: string): GLint {
|
|
|
3246
3246
|
* @returns `params` (`GLint`)
|
|
3247
3247
|
*/
|
|
3248
3248
|
export function getFramebufferAttachmentParameteriv(target: FramebufferTarget, attachment: FramebufferAttachment, pname: FramebufferAttachmentParameterName): GLint {
|
|
3249
|
-
const
|
|
3250
|
-
glGetFramebufferAttachmentParameteriv(target, attachment, pname,
|
|
3251
|
-
return
|
|
3249
|
+
const __out0 = { value: 0 };
|
|
3250
|
+
glGetFramebufferAttachmentParameteriv(target, attachment, pname, __out0);
|
|
3251
|
+
return __out0.value;
|
|
3252
3252
|
}
|
|
3253
3253
|
|
|
3254
3254
|
/**
|
|
@@ -3263,9 +3263,9 @@ export function getFramebufferAttachmentParameteriv(target: FramebufferTarget, a
|
|
|
3263
3263
|
* @returns `params` (`GLint`)
|
|
3264
3264
|
*/
|
|
3265
3265
|
export function getFramebufferParameteriv(target: FramebufferTarget, pname: FramebufferAttachmentParameterName): GLint {
|
|
3266
|
-
const
|
|
3267
|
-
glGetFramebufferParameteriv(target, pname,
|
|
3268
|
-
return
|
|
3266
|
+
const __out0 = { value: 0 };
|
|
3267
|
+
glGetFramebufferParameteriv(target, pname, __out0);
|
|
3268
|
+
return __out0.value;
|
|
3269
3269
|
}
|
|
3270
3270
|
|
|
3271
3271
|
/**
|
|
@@ -3298,9 +3298,9 @@ export function getGraphicsResetStatus(): GraphicsResetStatus {
|
|
|
3298
3298
|
* @returns `params` (`GLint64[]`, length `count`)
|
|
3299
3299
|
*/
|
|
3300
3300
|
export function getInternalformati64v(target: TextureTarget, internalformat: InternalFormat, pname: InternalFormatPName, count: GLsizei): GLint64[] {
|
|
3301
|
-
const
|
|
3302
|
-
glGetInternalformati64v(target, internalformat, pname, count,
|
|
3303
|
-
return
|
|
3301
|
+
const __out0 = { value: new Array<number>(count).fill(0) };
|
|
3302
|
+
glGetInternalformati64v(target, internalformat, pname, count, __out0);
|
|
3303
|
+
return __out0.value;
|
|
3304
3304
|
}
|
|
3305
3305
|
|
|
3306
3306
|
/**
|
|
@@ -3317,9 +3317,9 @@ export function getInternalformati64v(target: TextureTarget, internalformat: Int
|
|
|
3317
3317
|
* @returns `params` (`GLint[]`, length `count`)
|
|
3318
3318
|
*/
|
|
3319
3319
|
export function getInternalformativ(target: TextureTarget, internalformat: InternalFormat, pname: InternalFormatPName, count: GLsizei): GLint[] {
|
|
3320
|
-
const
|
|
3321
|
-
glGetInternalformativ(target, internalformat, pname, count,
|
|
3322
|
-
return
|
|
3320
|
+
const __out0 = { value: new Array<number>(count).fill(0) };
|
|
3321
|
+
glGetInternalformativ(target, internalformat, pname, count, __out0);
|
|
3322
|
+
return __out0.value;
|
|
3323
3323
|
}
|
|
3324
3324
|
|
|
3325
3325
|
/**
|
|
@@ -3335,9 +3335,9 @@ export function getInternalformativ(target: TextureTarget, internalformat: Inter
|
|
|
3335
3335
|
* @returns `params` (`GLint64`)
|
|
3336
3336
|
*/
|
|
3337
3337
|
export function getNamedBufferParameteri64v(buffer: GLuint, pname: BufferPNameARB): GLint64 {
|
|
3338
|
-
const
|
|
3339
|
-
glGetNamedBufferParameteri64v(buffer, pname,
|
|
3340
|
-
return
|
|
3338
|
+
const __out0 = { value: 0 };
|
|
3339
|
+
glGetNamedBufferParameteri64v(buffer, pname, __out0);
|
|
3340
|
+
return __out0.value;
|
|
3341
3341
|
}
|
|
3342
3342
|
|
|
3343
3343
|
/**
|
|
@@ -3353,9 +3353,9 @@ export function getNamedBufferParameteri64v(buffer: GLuint, pname: BufferPNameAR
|
|
|
3353
3353
|
* @returns `params` (`GLint`)
|
|
3354
3354
|
*/
|
|
3355
3355
|
export function getNamedBufferParameteriv(buffer: GLuint, pname: BufferPNameARB): GLint {
|
|
3356
|
-
const
|
|
3357
|
-
glGetNamedBufferParameteriv(buffer, pname,
|
|
3358
|
-
return
|
|
3356
|
+
const __out0 = { value: 0 };
|
|
3357
|
+
glGetNamedBufferParameteriv(buffer, pname, __out0);
|
|
3358
|
+
return __out0.value;
|
|
3359
3359
|
}
|
|
3360
3360
|
|
|
3361
3361
|
/**
|
|
@@ -3389,9 +3389,9 @@ export function getNamedBufferSubData(buffer: GLuint, offset: GLintptr, size: GL
|
|
|
3389
3389
|
* @returns `params` (`GLint`)
|
|
3390
3390
|
*/
|
|
3391
3391
|
export function getNamedFramebufferAttachmentParameteriv(framebuffer: GLuint, attachment: FramebufferAttachment, pname: FramebufferAttachmentParameterName): GLint {
|
|
3392
|
-
const
|
|
3393
|
-
glGetNamedFramebufferAttachmentParameteriv(framebuffer, attachment, pname,
|
|
3394
|
-
return
|
|
3392
|
+
const __out0 = { value: 0 };
|
|
3393
|
+
glGetNamedFramebufferAttachmentParameteriv(framebuffer, attachment, pname, __out0);
|
|
3394
|
+
return __out0.value;
|
|
3395
3395
|
}
|
|
3396
3396
|
|
|
3397
3397
|
/**
|
|
@@ -3407,9 +3407,9 @@ export function getNamedFramebufferAttachmentParameteriv(framebuffer: GLuint, at
|
|
|
3407
3407
|
* @returns `param` (`GLint`)
|
|
3408
3408
|
*/
|
|
3409
3409
|
export function getNamedFramebufferParameteriv(framebuffer: GLuint, pname: GetFramebufferParameter): GLint {
|
|
3410
|
-
const
|
|
3411
|
-
glGetNamedFramebufferParameteriv(framebuffer, pname,
|
|
3412
|
-
return
|
|
3410
|
+
const __out0 = { value: 0 };
|
|
3411
|
+
glGetNamedFramebufferParameteriv(framebuffer, pname, __out0);
|
|
3412
|
+
return __out0.value;
|
|
3413
3413
|
}
|
|
3414
3414
|
|
|
3415
3415
|
/**
|
|
@@ -3425,9 +3425,9 @@ export function getNamedFramebufferParameteriv(framebuffer: GLuint, pname: GetFr
|
|
|
3425
3425
|
* @returns `params` (`GLint`)
|
|
3426
3426
|
*/
|
|
3427
3427
|
export function getNamedRenderbufferParameteriv(renderbuffer: GLuint, pname: RenderbufferParameterName): GLint {
|
|
3428
|
-
const
|
|
3429
|
-
glGetNamedRenderbufferParameteriv(renderbuffer, pname,
|
|
3430
|
-
return
|
|
3428
|
+
const __out0 = { value: 0 };
|
|
3429
|
+
glGetNamedRenderbufferParameteriv(renderbuffer, pname, __out0);
|
|
3430
|
+
return __out0.value;
|
|
3431
3431
|
}
|
|
3432
3432
|
|
|
3433
3433
|
/**
|
|
@@ -3477,11 +3477,11 @@ export function getnTexImage(target: TextureTarget, level: GLint, format: PixelF
|
|
|
3477
3477
|
* @returns Tuple of `length` (`GLsizei`), `label` (`string`, length `bufSize`)
|
|
3478
3478
|
*/
|
|
3479
3479
|
export function getObjectLabel(identifier: ObjectIdentifier, name: GLuint, bufSize: GLsizei): [GLsizei, string] {
|
|
3480
|
-
const
|
|
3481
|
-
const
|
|
3482
|
-
const
|
|
3483
|
-
|
|
3484
|
-
return [
|
|
3480
|
+
const __out0 = { value: 0 };
|
|
3481
|
+
const __out1 = { value: "" };
|
|
3482
|
+
const __binding = t.bind(LIB, "glGetObjectLabel", [t.uint32, t.uint32, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", bufSize))], t.void);
|
|
3483
|
+
__binding(identifier, name, bufSize, __out0, __out1);
|
|
3484
|
+
return [__out0.value, __out1.value];
|
|
3485
3485
|
}
|
|
3486
3486
|
|
|
3487
3487
|
/**
|
|
@@ -3498,11 +3498,11 @@ export function getObjectLabel(identifier: ObjectIdentifier, name: GLuint, bufSi
|
|
|
3498
3498
|
* @returns Tuple of `length` (`GLsizei`), `label` (`string`, length `bufSize`)
|
|
3499
3499
|
*/
|
|
3500
3500
|
export function getObjectPtrLabel(ptr: ArrayBufferView | GLintptr | null, bufSize: GLsizei): [GLsizei, string] {
|
|
3501
|
-
const
|
|
3502
|
-
const
|
|
3503
|
-
const
|
|
3504
|
-
|
|
3505
|
-
return [
|
|
3501
|
+
const __out0 = { value: 0 };
|
|
3502
|
+
const __out1 = { value: "" };
|
|
3503
|
+
const __binding = t.bind(LIB, "glGetObjectPtrLabel", [t.buffer, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", bufSize))], t.void);
|
|
3504
|
+
__binding(ptr, bufSize, __out0, __out1);
|
|
3505
|
+
return [__out0.value, __out1.value];
|
|
3506
3506
|
}
|
|
3507
3507
|
|
|
3508
3508
|
/**
|
|
@@ -3519,10 +3519,10 @@ export function getObjectPtrLabel(ptr: ArrayBufferView | GLintptr | null, bufSiz
|
|
|
3519
3519
|
* @returns Tuple of `length` (`GLsizei`), `binaryFormat` (`GLenum`)
|
|
3520
3520
|
*/
|
|
3521
3521
|
export function getProgramBinary(program: GLuint, bufSize: GLsizei, binary: ArrayBufferView | GLintptr | null): [GLsizei, GLenum] {
|
|
3522
|
-
const
|
|
3523
|
-
const
|
|
3524
|
-
glGetProgramBinary(program, bufSize,
|
|
3525
|
-
return [
|
|
3522
|
+
const __out0 = { value: 0 };
|
|
3523
|
+
const __out1 = { value: 0 };
|
|
3524
|
+
glGetProgramBinary(program, bufSize, __out0, __out1, binary);
|
|
3525
|
+
return [__out0.value, __out1.value];
|
|
3526
3526
|
}
|
|
3527
3527
|
|
|
3528
3528
|
/**
|
|
@@ -3536,9 +3536,9 @@ export function getProgramBinary(program: GLuint, bufSize: GLsizei, binary: Arra
|
|
|
3536
3536
|
* @returns `params` (`GLint`)
|
|
3537
3537
|
*/
|
|
3538
3538
|
export function getProgramiv(program: GLuint, pname: ProgramPropertyARB): GLint {
|
|
3539
|
-
const
|
|
3540
|
-
glGetProgramiv(program, pname,
|
|
3541
|
-
return
|
|
3539
|
+
const __out0 = { value: 0 };
|
|
3540
|
+
glGetProgramiv(program, pname, __out0);
|
|
3541
|
+
return __out0.value;
|
|
3542
3542
|
}
|
|
3543
3543
|
|
|
3544
3544
|
/**
|
|
@@ -3553,9 +3553,9 @@ export function getProgramiv(program: GLuint, pname: ProgramPropertyARB): GLint
|
|
|
3553
3553
|
* @returns `params` (`GLint`)
|
|
3554
3554
|
*/
|
|
3555
3555
|
export function getProgramPipelineiv(pipeline: GLuint, pname: PipelineParameterName): GLint {
|
|
3556
|
-
const
|
|
3557
|
-
glGetProgramPipelineiv(pipeline, pname,
|
|
3558
|
-
return
|
|
3556
|
+
const __out0 = { value: 0 };
|
|
3557
|
+
glGetProgramPipelineiv(pipeline, pname, __out0);
|
|
3558
|
+
return __out0.value;
|
|
3559
3559
|
}
|
|
3560
3560
|
|
|
3561
3561
|
/**
|
|
@@ -3590,10 +3590,10 @@ export function getProgramResourceIndex(program: GLuint, programInterface: Progr
|
|
|
3590
3590
|
* @returns Tuple of `length` (`GLsizei`), `params` (`GLint[]`, length `count`)
|
|
3591
3591
|
*/
|
|
3592
3592
|
export function getProgramResourceiv(program: GLuint, programInterface: ProgramInterface, index: GLuint, propCount: GLsizei, props: ProgramResourceProperty[] | Uint32Array, count: GLsizei): [GLsizei, GLint[]] {
|
|
3593
|
-
const
|
|
3594
|
-
const
|
|
3595
|
-
glGetProgramResourceiv(program, programInterface, index, propCount, props, count,
|
|
3596
|
-
return [
|
|
3593
|
+
const __out0 = { value: 0 };
|
|
3594
|
+
const __out1 = { value: new Array<number>(count).fill(0) };
|
|
3595
|
+
glGetProgramResourceiv(program, programInterface, index, propCount, props, count, __out0, __out1);
|
|
3596
|
+
return [__out0.value, __out1.value];
|
|
3597
3597
|
}
|
|
3598
3598
|
|
|
3599
3599
|
/**
|
|
@@ -3642,11 +3642,11 @@ export function getProgramResourceLocationIndex(program: GLuint, programInterfac
|
|
|
3642
3642
|
* @returns Tuple of `length` (`GLsizei`), `name` (`string`, length `bufSize`)
|
|
3643
3643
|
*/
|
|
3644
3644
|
export function getProgramResourceName(program: GLuint, programInterface: ProgramInterface, index: GLuint, bufSize: GLsizei): [GLsizei, string] {
|
|
3645
|
-
const
|
|
3646
|
-
const
|
|
3647
|
-
const
|
|
3648
|
-
|
|
3649
|
-
return [
|
|
3645
|
+
const __out0 = { value: 0 };
|
|
3646
|
+
const __out1 = { value: "" };
|
|
3647
|
+
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);
|
|
3648
|
+
__binding(program, programInterface, index, bufSize, __out0, __out1);
|
|
3649
|
+
return [__out0.value, __out1.value];
|
|
3650
3650
|
}
|
|
3651
3651
|
|
|
3652
3652
|
/**
|
|
@@ -3662,9 +3662,9 @@ export function getProgramResourceName(program: GLuint, programInterface: Progra
|
|
|
3662
3662
|
* @returns `values` (`GLint`)
|
|
3663
3663
|
*/
|
|
3664
3664
|
export function getProgramStageiv(program: GLuint, shadertype: ShaderType, pname: ProgramStagePName): GLint {
|
|
3665
|
-
const
|
|
3666
|
-
glGetProgramStageiv(program, shadertype, pname,
|
|
3667
|
-
return
|
|
3665
|
+
const __out0 = { value: 0 };
|
|
3666
|
+
glGetProgramStageiv(program, shadertype, pname, __out0);
|
|
3667
|
+
return __out0.value;
|
|
3668
3668
|
}
|
|
3669
3669
|
|
|
3670
3670
|
/**
|
|
@@ -3747,9 +3747,9 @@ export function getQueryBufferObjectuiv(id: GLuint, buffer: GLuint, pname: Query
|
|
|
3747
3747
|
* @returns `params` (`GLint`)
|
|
3748
3748
|
*/
|
|
3749
3749
|
export function getQueryiv(target: QueryTarget, pname: QueryParameterName): GLint {
|
|
3750
|
-
const
|
|
3751
|
-
glGetQueryiv(target, pname,
|
|
3752
|
-
return
|
|
3750
|
+
const __out0 = { value: 0 };
|
|
3751
|
+
glGetQueryiv(target, pname, __out0);
|
|
3752
|
+
return __out0.value;
|
|
3753
3753
|
}
|
|
3754
3754
|
|
|
3755
3755
|
/**
|
|
@@ -3765,9 +3765,9 @@ export function getQueryiv(target: QueryTarget, pname: QueryParameterName): GLin
|
|
|
3765
3765
|
* @returns `params` (`GLint64`)
|
|
3766
3766
|
*/
|
|
3767
3767
|
export function getQueryObjecti64v(id: GLuint, pname: QueryObjectParameterName): GLint64 {
|
|
3768
|
-
const
|
|
3769
|
-
glGetQueryObjecti64v(id, pname,
|
|
3770
|
-
return
|
|
3768
|
+
const __out0 = { value: 0 };
|
|
3769
|
+
glGetQueryObjecti64v(id, pname, __out0);
|
|
3770
|
+
return __out0.value;
|
|
3771
3771
|
}
|
|
3772
3772
|
|
|
3773
3773
|
/**
|
|
@@ -3782,9 +3782,9 @@ export function getQueryObjecti64v(id: GLuint, pname: QueryObjectParameterName):
|
|
|
3782
3782
|
* @returns `params` (`GLint`)
|
|
3783
3783
|
*/
|
|
3784
3784
|
export function getQueryObjectiv(id: GLuint, pname: QueryObjectParameterName): GLint {
|
|
3785
|
-
const
|
|
3786
|
-
glGetQueryObjectiv(id, pname,
|
|
3787
|
-
return
|
|
3785
|
+
const __out0 = { value: 0 };
|
|
3786
|
+
glGetQueryObjectiv(id, pname, __out0);
|
|
3787
|
+
return __out0.value;
|
|
3788
3788
|
}
|
|
3789
3789
|
|
|
3790
3790
|
/**
|
|
@@ -3800,9 +3800,9 @@ export function getQueryObjectiv(id: GLuint, pname: QueryObjectParameterName): G
|
|
|
3800
3800
|
* @returns `params` (`GLuint64`)
|
|
3801
3801
|
*/
|
|
3802
3802
|
export function getQueryObjectui64v(id: GLuint, pname: QueryObjectParameterName): GLuint64 {
|
|
3803
|
-
const
|
|
3804
|
-
glGetQueryObjectui64v(id, pname,
|
|
3805
|
-
return
|
|
3803
|
+
const __out0 = { value: 0 };
|
|
3804
|
+
glGetQueryObjectui64v(id, pname, __out0);
|
|
3805
|
+
return __out0.value;
|
|
3806
3806
|
}
|
|
3807
3807
|
|
|
3808
3808
|
/**
|
|
@@ -3817,9 +3817,9 @@ export function getQueryObjectui64v(id: GLuint, pname: QueryObjectParameterName)
|
|
|
3817
3817
|
* @returns `params` (`GLuint`)
|
|
3818
3818
|
*/
|
|
3819
3819
|
export function getQueryObjectuiv(id: GLuint, pname: QueryObjectParameterName): GLuint {
|
|
3820
|
-
const
|
|
3821
|
-
glGetQueryObjectuiv(id, pname,
|
|
3822
|
-
return
|
|
3820
|
+
const __out0 = { value: 0 };
|
|
3821
|
+
glGetQueryObjectuiv(id, pname, __out0);
|
|
3822
|
+
return __out0.value;
|
|
3823
3823
|
}
|
|
3824
3824
|
|
|
3825
3825
|
/**
|
|
@@ -3836,9 +3836,9 @@ export function getQueryObjectuiv(id: GLuint, pname: QueryObjectParameterName):
|
|
|
3836
3836
|
* @returns `params` (`GLint`)
|
|
3837
3837
|
*/
|
|
3838
3838
|
export function getRenderbufferParameteriv(target: RenderbufferTarget, pname: RenderbufferParameterName): GLint {
|
|
3839
|
-
const
|
|
3840
|
-
glGetRenderbufferParameteriv(target, pname,
|
|
3841
|
-
return
|
|
3839
|
+
const __out0 = { value: 0 };
|
|
3840
|
+
glGetRenderbufferParameteriv(target, pname, __out0);
|
|
3841
|
+
return __out0.value;
|
|
3842
3842
|
}
|
|
3843
3843
|
|
|
3844
3844
|
/**
|
|
@@ -3852,9 +3852,9 @@ export function getRenderbufferParameteriv(target: RenderbufferTarget, pname: Re
|
|
|
3852
3852
|
* @returns `params` (`GLint`)
|
|
3853
3853
|
*/
|
|
3854
3854
|
export function getShaderiv(shader: GLuint, pname: ShaderParameterName): GLint {
|
|
3855
|
-
const
|
|
3856
|
-
glGetShaderiv(shader, pname,
|
|
3857
|
-
return
|
|
3855
|
+
const __out0 = { value: 0 };
|
|
3856
|
+
glGetShaderiv(shader, pname, __out0);
|
|
3857
|
+
return __out0.value;
|
|
3858
3858
|
}
|
|
3859
3859
|
|
|
3860
3860
|
/**
|
|
@@ -3869,10 +3869,10 @@ export function getShaderiv(shader: GLuint, pname: ShaderParameterName): GLint {
|
|
|
3869
3869
|
* @returns Tuple of `range` (`GLint[]`, length `2`), `precision` (`GLint`)
|
|
3870
3870
|
*/
|
|
3871
3871
|
export function getShaderPrecisionFormat(shadertype: ShaderType, precisiontype: PrecisionType): [GLint[], GLint] {
|
|
3872
|
-
const
|
|
3873
|
-
const
|
|
3874
|
-
glGetShaderPrecisionFormat(shadertype, precisiontype,
|
|
3875
|
-
return [
|
|
3872
|
+
const __out0 = { value: new Array<number>(2).fill(0) };
|
|
3873
|
+
const __out1 = { value: 0 };
|
|
3874
|
+
glGetShaderPrecisionFormat(shadertype, precisiontype, __out0, __out1);
|
|
3875
|
+
return [__out0.value, __out1.value];
|
|
3876
3876
|
}
|
|
3877
3877
|
|
|
3878
3878
|
/**
|
|
@@ -3886,11 +3886,11 @@ export function getShaderPrecisionFormat(shadertype: ShaderType, precisiontype:
|
|
|
3886
3886
|
* @returns Tuple of `length` (`GLsizei`), `source` (`string`, length `bufSize`)
|
|
3887
3887
|
*/
|
|
3888
3888
|
export function getShaderSource(shader: GLuint, bufSize: GLsizei): [GLsizei, string] {
|
|
3889
|
-
const
|
|
3890
|
-
const
|
|
3891
|
-
const
|
|
3892
|
-
|
|
3893
|
-
return [
|
|
3889
|
+
const __out0 = { value: 0 };
|
|
3890
|
+
const __out1 = { value: "" };
|
|
3891
|
+
const __binding = t.bind(LIB, "glGetShaderSource", [t.uint32, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", bufSize))], t.void);
|
|
3892
|
+
__binding(shader, bufSize, __out0, __out1);
|
|
3893
|
+
return [__out0.value, __out1.value];
|
|
3894
3894
|
}
|
|
3895
3895
|
|
|
3896
3896
|
/**
|
|
@@ -3966,10 +3966,10 @@ export function getSubroutineUniformLocation(program: GLuint, shadertype: Shader
|
|
|
3966
3966
|
* @returns Tuple of `length` (`GLsizei`), `values` (`GLint[]`, length `count`)
|
|
3967
3967
|
*/
|
|
3968
3968
|
export function getSynciv(sync: GLsync, pname: SyncParameterName, count: GLsizei): [GLsizei, GLint[]] {
|
|
3969
|
-
const
|
|
3970
|
-
const
|
|
3971
|
-
glGetSynciv(sync, pname, count,
|
|
3972
|
-
return [
|
|
3969
|
+
const __out0 = { value: 0 };
|
|
3970
|
+
const __out1 = { value: new Array<number>(count).fill(0) };
|
|
3971
|
+
glGetSynciv(sync, pname, count, __out0, __out1);
|
|
3972
|
+
return [__out0.value, __out1.value];
|
|
3973
3973
|
}
|
|
3974
3974
|
|
|
3975
3975
|
/**
|
|
@@ -4021,9 +4021,9 @@ export function getTextureImage(texture: GLuint, level: GLint, format: PixelForm
|
|
|
4021
4021
|
* @returns `params` (`GLfloat`)
|
|
4022
4022
|
*/
|
|
4023
4023
|
export function getTextureLevelParameterfv(texture: GLuint, level: GLint, pname: GetTextureParameter): GLfloat {
|
|
4024
|
-
const
|
|
4025
|
-
glGetTextureLevelParameterfv(texture, level, pname,
|
|
4026
|
-
return
|
|
4024
|
+
const __out0 = { value: 0 };
|
|
4025
|
+
glGetTextureLevelParameterfv(texture, level, pname, __out0);
|
|
4026
|
+
return __out0.value;
|
|
4027
4027
|
}
|
|
4028
4028
|
|
|
4029
4029
|
/**
|
|
@@ -4040,9 +4040,9 @@ export function getTextureLevelParameterfv(texture: GLuint, level: GLint, pname:
|
|
|
4040
4040
|
* @returns `params` (`GLint`)
|
|
4041
4041
|
*/
|
|
4042
4042
|
export function getTextureLevelParameteriv(texture: GLuint, level: GLint, pname: GetTextureParameter): GLint {
|
|
4043
|
-
const
|
|
4044
|
-
glGetTextureLevelParameteriv(texture, level, pname,
|
|
4045
|
-
return
|
|
4043
|
+
const __out0 = { value: 0 };
|
|
4044
|
+
glGetTextureLevelParameteriv(texture, level, pname, __out0);
|
|
4045
|
+
return __out0.value;
|
|
4046
4046
|
}
|
|
4047
4047
|
|
|
4048
4048
|
/**
|
|
@@ -4058,9 +4058,9 @@ export function getTextureLevelParameteriv(texture: GLuint, level: GLint, pname:
|
|
|
4058
4058
|
* @returns `params` (`GLfloat`)
|
|
4059
4059
|
*/
|
|
4060
4060
|
export function getTextureParameterfv(texture: GLuint, pname: GetTextureParameter): GLfloat {
|
|
4061
|
-
const
|
|
4062
|
-
glGetTextureParameterfv(texture, pname,
|
|
4063
|
-
return
|
|
4061
|
+
const __out0 = { value: 0 };
|
|
4062
|
+
glGetTextureParameterfv(texture, pname, __out0);
|
|
4063
|
+
return __out0.value;
|
|
4064
4064
|
}
|
|
4065
4065
|
|
|
4066
4066
|
/**
|
|
@@ -4076,9 +4076,9 @@ export function getTextureParameterfv(texture: GLuint, pname: GetTextureParamete
|
|
|
4076
4076
|
* @returns `params` (`GLint`)
|
|
4077
4077
|
*/
|
|
4078
4078
|
export function getTextureParameterIiv(texture: GLuint, pname: GetTextureParameter): GLint {
|
|
4079
|
-
const
|
|
4080
|
-
glGetTextureParameterIiv(texture, pname,
|
|
4081
|
-
return
|
|
4079
|
+
const __out0 = { value: 0 };
|
|
4080
|
+
glGetTextureParameterIiv(texture, pname, __out0);
|
|
4081
|
+
return __out0.value;
|
|
4082
4082
|
}
|
|
4083
4083
|
|
|
4084
4084
|
/**
|
|
@@ -4094,9 +4094,9 @@ export function getTextureParameterIiv(texture: GLuint, pname: GetTextureParamet
|
|
|
4094
4094
|
* @returns `params` (`GLuint`)
|
|
4095
4095
|
*/
|
|
4096
4096
|
export function getTextureParameterIuiv(texture: GLuint, pname: GetTextureParameter): GLuint {
|
|
4097
|
-
const
|
|
4098
|
-
glGetTextureParameterIuiv(texture, pname,
|
|
4099
|
-
return
|
|
4097
|
+
const __out0 = { value: 0 };
|
|
4098
|
+
glGetTextureParameterIuiv(texture, pname, __out0);
|
|
4099
|
+
return __out0.value;
|
|
4100
4100
|
}
|
|
4101
4101
|
|
|
4102
4102
|
/**
|
|
@@ -4112,9 +4112,9 @@ export function getTextureParameterIuiv(texture: GLuint, pname: GetTextureParame
|
|
|
4112
4112
|
* @returns `params` (`GLint`)
|
|
4113
4113
|
*/
|
|
4114
4114
|
export function getTextureParameteriv(texture: GLuint, pname: GetTextureParameter): GLint {
|
|
4115
|
-
const
|
|
4116
|
-
glGetTextureParameteriv(texture, pname,
|
|
4117
|
-
return
|
|
4115
|
+
const __out0 = { value: 0 };
|
|
4116
|
+
glGetTextureParameteriv(texture, pname, __out0);
|
|
4117
|
+
return __out0.value;
|
|
4118
4118
|
}
|
|
4119
4119
|
|
|
4120
4120
|
/**
|
|
@@ -4155,9 +4155,9 @@ export function getTextureSubImage(texture: GLuint, level: GLint, xoffset: GLint
|
|
|
4155
4155
|
* @returns `param` (`GLint`)
|
|
4156
4156
|
*/
|
|
4157
4157
|
export function getTransformFeedbackiV(xfb: GLuint, pname: TransformFeedbackPName, index: GLuint): GLint {
|
|
4158
|
-
const
|
|
4159
|
-
glGetTransformFeedbackiV(xfb, pname, index,
|
|
4160
|
-
return
|
|
4158
|
+
const __out0 = { value: 0 };
|
|
4159
|
+
glGetTransformFeedbackiV(xfb, pname, index, __out0);
|
|
4160
|
+
return __out0.value;
|
|
4161
4161
|
}
|
|
4162
4162
|
|
|
4163
4163
|
/**
|
|
@@ -4174,9 +4174,9 @@ export function getTransformFeedbackiV(xfb: GLuint, pname: TransformFeedbackPNam
|
|
|
4174
4174
|
* @returns `param` (`GLint64`)
|
|
4175
4175
|
*/
|
|
4176
4176
|
export function getTransformFeedbacki64V(xfb: GLuint, pname: TransformFeedbackPName, index: GLuint): GLint64 {
|
|
4177
|
-
const
|
|
4178
|
-
glGetTransformFeedbacki64V(xfb, pname, index,
|
|
4179
|
-
return
|
|
4177
|
+
const __out0 = { value: 0 };
|
|
4178
|
+
glGetTransformFeedbacki64V(xfb, pname, index, __out0);
|
|
4179
|
+
return __out0.value;
|
|
4180
4180
|
}
|
|
4181
4181
|
|
|
4182
4182
|
/**
|
|
@@ -4192,9 +4192,9 @@ export function getTransformFeedbacki64V(xfb: GLuint, pname: TransformFeedbackPN
|
|
|
4192
4192
|
* @returns `param` (`GLint`)
|
|
4193
4193
|
*/
|
|
4194
4194
|
export function getTransformFeedbackiv(xfb: GLuint, pname: TransformFeedbackPName): GLint {
|
|
4195
|
-
const
|
|
4196
|
-
glGetTransformFeedbackiv(xfb, pname,
|
|
4197
|
-
return
|
|
4195
|
+
const __out0 = { value: 0 };
|
|
4196
|
+
glGetTransformFeedbackiv(xfb, pname, __out0);
|
|
4197
|
+
return __out0.value;
|
|
4198
4198
|
}
|
|
4199
4199
|
|
|
4200
4200
|
/**
|
|
@@ -4210,13 +4210,13 @@ export function getTransformFeedbackiv(xfb: GLuint, pname: TransformFeedbackPNam
|
|
|
4210
4210
|
* @returns Tuple of `length` (`GLsizei`), `size` (`GLsizei`), `type` (`AttributeType`), `name` (`string`, length `bufSize`)
|
|
4211
4211
|
*/
|
|
4212
4212
|
export function getTransformFeedbackVarying(program: GLuint, index: GLuint, bufSize: GLsizei): [GLsizei, GLsizei, AttributeType, string] {
|
|
4213
|
-
const
|
|
4214
|
-
const
|
|
4215
|
-
const
|
|
4216
|
-
const
|
|
4217
|
-
const
|
|
4218
|
-
|
|
4219
|
-
return [
|
|
4213
|
+
const __out0 = { value: 0 };
|
|
4214
|
+
const __out1 = { value: 0 };
|
|
4215
|
+
const __out2 = { value: 0 };
|
|
4216
|
+
const __out3 = { value: "" };
|
|
4217
|
+
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);
|
|
4218
|
+
__binding(program, index, bufSize, __out0, __out1, __out2, __out3);
|
|
4219
|
+
return [__out0.value, __out1.value, __out2.value, __out3.value];
|
|
4220
4220
|
}
|
|
4221
4221
|
|
|
4222
4222
|
/**
|
|
@@ -4261,9 +4261,9 @@ export function getUniformLocation(program: GLuint, name: string): GLint {
|
|
|
4261
4261
|
* @returns `params` (`GLuint`)
|
|
4262
4262
|
*/
|
|
4263
4263
|
export function getUniformSubroutineuiv(shadertype: ShaderType, location: GLint): GLuint {
|
|
4264
|
-
const
|
|
4265
|
-
glGetUniformSubroutineuiv(shadertype, location,
|
|
4266
|
-
return
|
|
4264
|
+
const __out0 = { value: 0 };
|
|
4265
|
+
glGetUniformSubroutineuiv(shadertype, location, __out0);
|
|
4266
|
+
return __out0.value;
|
|
4267
4267
|
}
|
|
4268
4268
|
|
|
4269
4269
|
/**
|
|
@@ -4280,9 +4280,9 @@ export function getUniformSubroutineuiv(shadertype: ShaderType, location: GLint)
|
|
|
4280
4280
|
* @returns `param` (`GLint64`)
|
|
4281
4281
|
*/
|
|
4282
4282
|
export function getVertexArrayIndexed64iv(vaobj: GLuint, index: GLuint, pname: VertexArrayPName): GLint64 {
|
|
4283
|
-
const
|
|
4284
|
-
glGetVertexArrayIndexed64iv(vaobj, index, pname,
|
|
4285
|
-
return
|
|
4283
|
+
const __out0 = { value: 0 };
|
|
4284
|
+
glGetVertexArrayIndexed64iv(vaobj, index, pname, __out0);
|
|
4285
|
+
return __out0.value;
|
|
4286
4286
|
}
|
|
4287
4287
|
|
|
4288
4288
|
/**
|
|
@@ -4299,9 +4299,9 @@ export function getVertexArrayIndexed64iv(vaobj: GLuint, index: GLuint, pname: V
|
|
|
4299
4299
|
* @returns `param` (`GLint`)
|
|
4300
4300
|
*/
|
|
4301
4301
|
export function getVertexArrayIndexediv(vaobj: GLuint, index: GLuint, pname: VertexArrayPName): GLint {
|
|
4302
|
-
const
|
|
4303
|
-
glGetVertexArrayIndexediv(vaobj, index, pname,
|
|
4304
|
-
return
|
|
4302
|
+
const __out0 = { value: 0 };
|
|
4303
|
+
glGetVertexArrayIndexediv(vaobj, index, pname, __out0);
|
|
4304
|
+
return __out0.value;
|
|
4305
4305
|
}
|
|
4306
4306
|
|
|
4307
4307
|
/**
|
|
@@ -4317,9 +4317,9 @@ export function getVertexArrayIndexediv(vaobj: GLuint, index: GLuint, pname: Ver
|
|
|
4317
4317
|
* @returns `param` (`GLint`)
|
|
4318
4318
|
*/
|
|
4319
4319
|
export function getVertexArrayiv(vaobj: GLuint, pname: VertexArrayPName): GLint {
|
|
4320
|
-
const
|
|
4321
|
-
glGetVertexArrayiv(vaobj, pname,
|
|
4322
|
-
return
|
|
4320
|
+
const __out0 = { value: 0 };
|
|
4321
|
+
glGetVertexArrayiv(vaobj, pname, __out0);
|
|
4322
|
+
return __out0.value;
|
|
4323
4323
|
}
|
|
4324
4324
|
|
|
4325
4325
|
/**
|
|
@@ -4334,9 +4334,9 @@ export function getVertexArrayiv(vaobj: GLuint, pname: VertexArrayPName): GLint
|
|
|
4334
4334
|
* @returns `params` (`GLdouble[]`, length `4`)
|
|
4335
4335
|
*/
|
|
4336
4336
|
export function getVertexAttribdv(index: GLuint, pname: VertexAttribPropertyARB): GLdouble[] {
|
|
4337
|
-
const
|
|
4338
|
-
glGetVertexAttribdv(index, pname,
|
|
4339
|
-
return
|
|
4337
|
+
const __out0 = { value: new Array<number>(4).fill(0) };
|
|
4338
|
+
glGetVertexAttribdv(index, pname, __out0);
|
|
4339
|
+
return __out0.value;
|
|
4340
4340
|
}
|
|
4341
4341
|
|
|
4342
4342
|
/**
|
|
@@ -4351,9 +4351,9 @@ export function getVertexAttribdv(index: GLuint, pname: VertexAttribPropertyARB)
|
|
|
4351
4351
|
* @returns `params` (`GLfloat[]`, length `4`)
|
|
4352
4352
|
*/
|
|
4353
4353
|
export function getVertexAttribfv(index: GLuint, pname: VertexAttribPropertyARB): GLfloat[] {
|
|
4354
|
-
const
|
|
4355
|
-
glGetVertexAttribfv(index, pname,
|
|
4356
|
-
return
|
|
4354
|
+
const __out0 = { value: new Array<number>(4).fill(0) };
|
|
4355
|
+
glGetVertexAttribfv(index, pname, __out0);
|
|
4356
|
+
return __out0.value;
|
|
4357
4357
|
}
|
|
4358
4358
|
|
|
4359
4359
|
/**
|
|
@@ -4367,9 +4367,9 @@ export function getVertexAttribfv(index: GLuint, pname: VertexAttribPropertyARB)
|
|
|
4367
4367
|
* @returns `params` (`GLint`)
|
|
4368
4368
|
*/
|
|
4369
4369
|
export function getVertexAttribIiv(index: GLuint, pname: VertexAttribEnum): GLint {
|
|
4370
|
-
const
|
|
4371
|
-
glGetVertexAttribIiv(index, pname,
|
|
4372
|
-
return
|
|
4370
|
+
const __out0 = { value: 0 };
|
|
4371
|
+
glGetVertexAttribIiv(index, pname, __out0);
|
|
4372
|
+
return __out0.value;
|
|
4373
4373
|
}
|
|
4374
4374
|
|
|
4375
4375
|
/**
|
|
@@ -4383,9 +4383,9 @@ export function getVertexAttribIiv(index: GLuint, pname: VertexAttribEnum): GLin
|
|
|
4383
4383
|
* @returns `params` (`GLuint`)
|
|
4384
4384
|
*/
|
|
4385
4385
|
export function getVertexAttribIuiv(index: GLuint, pname: VertexAttribEnum): GLuint {
|
|
4386
|
-
const
|
|
4387
|
-
glGetVertexAttribIuiv(index, pname,
|
|
4388
|
-
return
|
|
4386
|
+
const __out0 = { value: 0 };
|
|
4387
|
+
glGetVertexAttribIuiv(index, pname, __out0);
|
|
4388
|
+
return __out0.value;
|
|
4389
4389
|
}
|
|
4390
4390
|
|
|
4391
4391
|
/**
|
|
@@ -4400,9 +4400,9 @@ export function getVertexAttribIuiv(index: GLuint, pname: VertexAttribEnum): GLu
|
|
|
4400
4400
|
* @returns `params` (`GLint[]`, length `4`)
|
|
4401
4401
|
*/
|
|
4402
4402
|
export function getVertexAttribiv(index: GLuint, pname: VertexAttribPropertyARB): GLint[] {
|
|
4403
|
-
const
|
|
4404
|
-
glGetVertexAttribiv(index, pname,
|
|
4405
|
-
return
|
|
4403
|
+
const __out0 = { value: new Array<number>(4).fill(0) };
|
|
4404
|
+
glGetVertexAttribiv(index, pname, __out0);
|
|
4405
|
+
return __out0.value;
|
|
4406
4406
|
}
|
|
4407
4407
|
|
|
4408
4408
|
/**
|
|
@@ -9853,9 +9853,9 @@ export function waitSync(sync: GLsync, flags: SyncBehaviorFlags, timeout: GLuint
|
|
|
9853
9853
|
* @returns `GLuint`, object class `buffer`
|
|
9854
9854
|
*/
|
|
9855
9855
|
export function createBuffer(): GLuint {
|
|
9856
|
-
const
|
|
9857
|
-
glCreateBuffersSingle(1,
|
|
9858
|
-
return
|
|
9856
|
+
const __out = { value: 0 };
|
|
9857
|
+
glCreateBuffersSingle(1, __out);
|
|
9858
|
+
return __out.value;
|
|
9859
9859
|
}
|
|
9860
9860
|
|
|
9861
9861
|
/**
|
|
@@ -9869,9 +9869,9 @@ export function createBuffer(): GLuint {
|
|
|
9869
9869
|
* @returns `GLuint`, object class `framebuffer`
|
|
9870
9870
|
*/
|
|
9871
9871
|
export function createFramebuffer(): GLuint {
|
|
9872
|
-
const
|
|
9873
|
-
glCreateFramebuffersSingle(1,
|
|
9874
|
-
return
|
|
9872
|
+
const __out = { value: 0 };
|
|
9873
|
+
glCreateFramebuffersSingle(1, __out);
|
|
9874
|
+
return __out.value;
|
|
9875
9875
|
}
|
|
9876
9876
|
|
|
9877
9877
|
/**
|
|
@@ -9885,9 +9885,9 @@ export function createFramebuffer(): GLuint {
|
|
|
9885
9885
|
* @returns `GLuint`, object class `program pipeline`
|
|
9886
9886
|
*/
|
|
9887
9887
|
export function createProgramPipeline(): GLuint {
|
|
9888
|
-
const
|
|
9889
|
-
glCreateProgramPipelinesSingle(1,
|
|
9890
|
-
return
|
|
9888
|
+
const __out = { value: 0 };
|
|
9889
|
+
glCreateProgramPipelinesSingle(1, __out);
|
|
9890
|
+
return __out.value;
|
|
9891
9891
|
}
|
|
9892
9892
|
|
|
9893
9893
|
/**
|
|
@@ -9902,9 +9902,9 @@ export function createProgramPipeline(): GLuint {
|
|
|
9902
9902
|
* @returns `GLuint`, object class `query`
|
|
9903
9903
|
*/
|
|
9904
9904
|
export function createQuery(target: QueryTarget): GLuint {
|
|
9905
|
-
const
|
|
9906
|
-
glCreateQueriesSingle(target, 1,
|
|
9907
|
-
return
|
|
9905
|
+
const __out = { value: 0 };
|
|
9906
|
+
glCreateQueriesSingle(target, 1, __out);
|
|
9907
|
+
return __out.value;
|
|
9908
9908
|
}
|
|
9909
9909
|
|
|
9910
9910
|
/**
|
|
@@ -9918,9 +9918,9 @@ export function createQuery(target: QueryTarget): GLuint {
|
|
|
9918
9918
|
* @returns `GLuint`, object class `renderbuffer`
|
|
9919
9919
|
*/
|
|
9920
9920
|
export function createRenderbuffer(): GLuint {
|
|
9921
|
-
const
|
|
9922
|
-
glCreateRenderbuffersSingle(1,
|
|
9923
|
-
return
|
|
9921
|
+
const __out = { value: 0 };
|
|
9922
|
+
glCreateRenderbuffersSingle(1, __out);
|
|
9923
|
+
return __out.value;
|
|
9924
9924
|
}
|
|
9925
9925
|
|
|
9926
9926
|
/**
|
|
@@ -9934,9 +9934,9 @@ export function createRenderbuffer(): GLuint {
|
|
|
9934
9934
|
* @returns `GLuint`, object class `sampler`
|
|
9935
9935
|
*/
|
|
9936
9936
|
export function createSampler(): GLuint {
|
|
9937
|
-
const
|
|
9938
|
-
glCreateSamplersSingle(1,
|
|
9939
|
-
return
|
|
9937
|
+
const __out = { value: 0 };
|
|
9938
|
+
glCreateSamplersSingle(1, __out);
|
|
9939
|
+
return __out.value;
|
|
9940
9940
|
}
|
|
9941
9941
|
|
|
9942
9942
|
/**
|
|
@@ -9951,9 +9951,9 @@ export function createSampler(): GLuint {
|
|
|
9951
9951
|
* @returns `GLuint`, object class `texture`
|
|
9952
9952
|
*/
|
|
9953
9953
|
export function createTexture(target: TextureTarget): GLuint {
|
|
9954
|
-
const
|
|
9955
|
-
glCreateTexturesSingle(target, 1,
|
|
9956
|
-
return
|
|
9954
|
+
const __out = { value: 0 };
|
|
9955
|
+
glCreateTexturesSingle(target, 1, __out);
|
|
9956
|
+
return __out.value;
|
|
9957
9957
|
}
|
|
9958
9958
|
|
|
9959
9959
|
/**
|
|
@@ -9967,9 +9967,9 @@ export function createTexture(target: TextureTarget): GLuint {
|
|
|
9967
9967
|
* @returns `GLuint`, object class `transform feedback`
|
|
9968
9968
|
*/
|
|
9969
9969
|
export function createTransformFeedback(): GLuint {
|
|
9970
|
-
const
|
|
9971
|
-
glCreateTransformFeedbacksSingle(1,
|
|
9972
|
-
return
|
|
9970
|
+
const __out = { value: 0 };
|
|
9971
|
+
glCreateTransformFeedbacksSingle(1, __out);
|
|
9972
|
+
return __out.value;
|
|
9973
9973
|
}
|
|
9974
9974
|
|
|
9975
9975
|
/**
|
|
@@ -9983,9 +9983,9 @@ export function createTransformFeedback(): GLuint {
|
|
|
9983
9983
|
* @returns `GLuint`, object class `vertex array`
|
|
9984
9984
|
*/
|
|
9985
9985
|
export function createVertexArray(): GLuint {
|
|
9986
|
-
const
|
|
9987
|
-
glCreateVertexArraysSingle(1,
|
|
9988
|
-
return
|
|
9986
|
+
const __out = { value: 0 };
|
|
9987
|
+
glCreateVertexArraysSingle(1, __out);
|
|
9988
|
+
return __out.value;
|
|
9989
9989
|
}
|
|
9990
9990
|
|
|
9991
9991
|
/**
|
|
@@ -10107,9 +10107,9 @@ export function deleteVertexArray(name: GLuint): void {
|
|
|
10107
10107
|
* @returns `GLuint`, object class `buffer`
|
|
10108
10108
|
*/
|
|
10109
10109
|
export function genBuffer(): GLuint {
|
|
10110
|
-
const
|
|
10111
|
-
glGenBuffersSingle(1,
|
|
10112
|
-
return
|
|
10110
|
+
const __out = { value: 0 };
|
|
10111
|
+
glGenBuffersSingle(1, __out);
|
|
10112
|
+
return __out.value;
|
|
10113
10113
|
}
|
|
10114
10114
|
|
|
10115
10115
|
/**
|
|
@@ -10122,9 +10122,9 @@ export function genBuffer(): GLuint {
|
|
|
10122
10122
|
* @returns `GLuint`, object class `framebuffer`
|
|
10123
10123
|
*/
|
|
10124
10124
|
export function genFramebuffer(): GLuint {
|
|
10125
|
-
const
|
|
10126
|
-
glGenFramebuffersSingle(1,
|
|
10127
|
-
return
|
|
10125
|
+
const __out = { value: 0 };
|
|
10126
|
+
glGenFramebuffersSingle(1, __out);
|
|
10127
|
+
return __out.value;
|
|
10128
10128
|
}
|
|
10129
10129
|
|
|
10130
10130
|
/**
|
|
@@ -10137,9 +10137,9 @@ export function genFramebuffer(): GLuint {
|
|
|
10137
10137
|
* @returns `GLuint`, object class `program pipeline`
|
|
10138
10138
|
*/
|
|
10139
10139
|
export function genProgramPipeline(): GLuint {
|
|
10140
|
-
const
|
|
10141
|
-
glGenProgramPipelinesSingle(1,
|
|
10142
|
-
return
|
|
10140
|
+
const __out = { value: 0 };
|
|
10141
|
+
glGenProgramPipelinesSingle(1, __out);
|
|
10142
|
+
return __out.value;
|
|
10143
10143
|
}
|
|
10144
10144
|
|
|
10145
10145
|
/**
|
|
@@ -10150,9 +10150,9 @@ export function genProgramPipeline(): GLuint {
|
|
|
10150
10150
|
* @returns `GLuint`, object class `query`
|
|
10151
10151
|
*/
|
|
10152
10152
|
export function genQuery(): GLuint {
|
|
10153
|
-
const
|
|
10154
|
-
glGenQueriesSingle(1,
|
|
10155
|
-
return
|
|
10153
|
+
const __out = { value: 0 };
|
|
10154
|
+
glGenQueriesSingle(1, __out);
|
|
10155
|
+
return __out.value;
|
|
10156
10156
|
}
|
|
10157
10157
|
|
|
10158
10158
|
/**
|
|
@@ -10165,9 +10165,9 @@ export function genQuery(): GLuint {
|
|
|
10165
10165
|
* @returns `GLuint`, object class `renderbuffer`
|
|
10166
10166
|
*/
|
|
10167
10167
|
export function genRenderbuffer(): GLuint {
|
|
10168
|
-
const
|
|
10169
|
-
glGenRenderbuffersSingle(1,
|
|
10170
|
-
return
|
|
10168
|
+
const __out = { value: 0 };
|
|
10169
|
+
glGenRenderbuffersSingle(1, __out);
|
|
10170
|
+
return __out.value;
|
|
10171
10171
|
}
|
|
10172
10172
|
|
|
10173
10173
|
/**
|
|
@@ -10180,9 +10180,9 @@ export function genRenderbuffer(): GLuint {
|
|
|
10180
10180
|
* @returns `GLuint`, object class `sampler`
|
|
10181
10181
|
*/
|
|
10182
10182
|
export function genSampler(): GLuint {
|
|
10183
|
-
const
|
|
10184
|
-
glGenSamplersSingle(1,
|
|
10185
|
-
return
|
|
10183
|
+
const __out = { value: 0 };
|
|
10184
|
+
glGenSamplersSingle(1, __out);
|
|
10185
|
+
return __out.value;
|
|
10186
10186
|
}
|
|
10187
10187
|
|
|
10188
10188
|
/**
|
|
@@ -10193,9 +10193,9 @@ export function genSampler(): GLuint {
|
|
|
10193
10193
|
* @returns `GLuint`, object class `texture`
|
|
10194
10194
|
*/
|
|
10195
10195
|
export function genTexture(): GLuint {
|
|
10196
|
-
const
|
|
10197
|
-
glGenTexturesSingle(1,
|
|
10198
|
-
return
|
|
10196
|
+
const __out = { value: 0 };
|
|
10197
|
+
glGenTexturesSingle(1, __out);
|
|
10198
|
+
return __out.value;
|
|
10199
10199
|
}
|
|
10200
10200
|
|
|
10201
10201
|
/**
|
|
@@ -10208,9 +10208,9 @@ export function genTexture(): GLuint {
|
|
|
10208
10208
|
* @returns `GLuint`, object class `transform feedback`
|
|
10209
10209
|
*/
|
|
10210
10210
|
export function genTransformFeedback(): GLuint {
|
|
10211
|
-
const
|
|
10212
|
-
glGenTransformFeedbacksSingle(1,
|
|
10213
|
-
return
|
|
10211
|
+
const __out = { value: 0 };
|
|
10212
|
+
glGenTransformFeedbacksSingle(1, __out);
|
|
10213
|
+
return __out.value;
|
|
10214
10214
|
}
|
|
10215
10215
|
|
|
10216
10216
|
/**
|
|
@@ -10223,9 +10223,9 @@ export function genTransformFeedback(): GLuint {
|
|
|
10223
10223
|
* @returns `GLuint`, object class `vertex array`
|
|
10224
10224
|
*/
|
|
10225
10225
|
export function genVertexArray(): GLuint {
|
|
10226
|
-
const
|
|
10227
|
-
glGenVertexArraysSingle(1,
|
|
10228
|
-
return
|
|
10226
|
+
const __out = { value: 0 };
|
|
10227
|
+
glGenVertexArraysSingle(1, __out);
|
|
10228
|
+
return __out.value;
|
|
10229
10229
|
}
|
|
10230
10230
|
|
|
10231
10231
|
/** The shared library the generated OpenGL bindings are loaded from. */
|