@devvit/protos 0.10.20-next-2024-05-06-a9757fbcc.0 → 0.10.20-next-2024-05-06-18be4b555.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.d.ts +2 -8
- package/index.d.ts.map +1 -1
- package/index.js +0 -4
- package/meta.min.json +10 -142
- package/package.json +16 -10
- package/protos.min.js +2 -2
- package/protos.min.js.map +4 -4
- package/schema/devvit/actor/gl/glclient.proto +0 -22
- package/schema/devvit/plugin/gl/glrenderer.proto +0 -36
- package/schema/devvit/plugin/gl/methods.proto +0 -129
- package/schema/devvit/plugin/gl/methodtype.proto +0 -13
- package/types/devvit/actor/gl/glclient.d.ts +0 -147
- package/types/devvit/actor/gl/glclient.d.ts.map +0 -1
- package/types/devvit/actor/gl/glclient.js +0 -213
- package/types/devvit/plugin/gl/glrenderer.d.ts +0 -104
- package/types/devvit/plugin/gl/glrenderer.d.ts.map +0 -1
- package/types/devvit/plugin/gl/glrenderer.js +0 -326
- package/types/devvit/plugin/gl/methods.d.ts +0 -126
- package/types/devvit/plugin/gl/methods.d.ts.map +0 -1
- package/types/devvit/plugin/gl/methods.js +0 -715
- package/types/devvit/plugin/gl/methodtype.d.ts +0 -15
- package/types/devvit/plugin/gl/methodtype.d.ts.map +0 -1
- package/types/devvit/plugin/gl/methodtype.js +0 -49
@@ -1,715 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* #methods.ts
|
3
|
-
*
|
4
|
-
* @packageDocumentation
|
5
|
-
*/
|
6
|
-
/* eslint-disable */
|
7
|
-
export var GLMethod;
|
8
|
-
(function (GLMethod) {
|
9
|
-
GLMethod[GLMethod["activeTexture"] = 0] = "activeTexture";
|
10
|
-
GLMethod[GLMethod["attachShader"] = 1] = "attachShader";
|
11
|
-
GLMethod[GLMethod["bindAttribLocation"] = 2] = "bindAttribLocation";
|
12
|
-
GLMethod[GLMethod["bindBuffer"] = 3] = "bindBuffer";
|
13
|
-
GLMethod[GLMethod["bindFramebuffer"] = 4] = "bindFramebuffer";
|
14
|
-
GLMethod[GLMethod["bindRenderbuffer"] = 5] = "bindRenderbuffer";
|
15
|
-
GLMethod[GLMethod["bindTexture"] = 6] = "bindTexture";
|
16
|
-
GLMethod[GLMethod["blendColor"] = 7] = "blendColor";
|
17
|
-
GLMethod[GLMethod["blendEquation"] = 8] = "blendEquation";
|
18
|
-
GLMethod[GLMethod["blendEquationSeparate"] = 9] = "blendEquationSeparate";
|
19
|
-
GLMethod[GLMethod["blendFunc"] = 10] = "blendFunc";
|
20
|
-
GLMethod[GLMethod["blendFuncSeparate"] = 11] = "blendFuncSeparate";
|
21
|
-
GLMethod[GLMethod["bufferData"] = 12] = "bufferData";
|
22
|
-
GLMethod[GLMethod["bufferSubData"] = 13] = "bufferSubData";
|
23
|
-
GLMethod[GLMethod["checkFramebufferStatus"] = 14] = "checkFramebufferStatus";
|
24
|
-
GLMethod[GLMethod["clear"] = 15] = "clear";
|
25
|
-
GLMethod[GLMethod["clearColor"] = 16] = "clearColor";
|
26
|
-
GLMethod[GLMethod["clearDepth"] = 17] = "clearDepth";
|
27
|
-
GLMethod[GLMethod["clearStencil"] = 18] = "clearStencil";
|
28
|
-
GLMethod[GLMethod["colorMask"] = 19] = "colorMask";
|
29
|
-
GLMethod[GLMethod["compileShader"] = 20] = "compileShader";
|
30
|
-
GLMethod[GLMethod["copyTexImage2D"] = 21] = "copyTexImage2D";
|
31
|
-
GLMethod[GLMethod["copyTexSubImage2D"] = 22] = "copyTexSubImage2D";
|
32
|
-
GLMethod[GLMethod["createBuffer"] = 23] = "createBuffer";
|
33
|
-
GLMethod[GLMethod["createFramebuffer"] = 24] = "createFramebuffer";
|
34
|
-
GLMethod[GLMethod["createProgram"] = 25] = "createProgram";
|
35
|
-
GLMethod[GLMethod["createRenderbuffer"] = 26] = "createRenderbuffer";
|
36
|
-
GLMethod[GLMethod["createShader"] = 27] = "createShader";
|
37
|
-
GLMethod[GLMethod["createTexture"] = 28] = "createTexture";
|
38
|
-
GLMethod[GLMethod["cullFace"] = 29] = "cullFace";
|
39
|
-
GLMethod[GLMethod["deleteBuffer"] = 30] = "deleteBuffer";
|
40
|
-
GLMethod[GLMethod["deleteFramebuffer"] = 31] = "deleteFramebuffer";
|
41
|
-
GLMethod[GLMethod["deleteProgram"] = 32] = "deleteProgram";
|
42
|
-
GLMethod[GLMethod["deleteRenderbuffer"] = 33] = "deleteRenderbuffer";
|
43
|
-
GLMethod[GLMethod["deleteShader"] = 34] = "deleteShader";
|
44
|
-
GLMethod[GLMethod["deleteTexture"] = 35] = "deleteTexture";
|
45
|
-
GLMethod[GLMethod["depthFunc"] = 36] = "depthFunc";
|
46
|
-
GLMethod[GLMethod["depthMask"] = 37] = "depthMask";
|
47
|
-
GLMethod[GLMethod["depthRange"] = 38] = "depthRange";
|
48
|
-
GLMethod[GLMethod["detachShader"] = 39] = "detachShader";
|
49
|
-
GLMethod[GLMethod["disable"] = 40] = "disable";
|
50
|
-
GLMethod[GLMethod["disableVertexAttribArray"] = 41] = "disableVertexAttribArray";
|
51
|
-
GLMethod[GLMethod["drawArrays"] = 42] = "drawArrays";
|
52
|
-
GLMethod[GLMethod["drawElements"] = 43] = "drawElements";
|
53
|
-
GLMethod[GLMethod["enable"] = 44] = "enable";
|
54
|
-
GLMethod[GLMethod["enableVertexAttribArray"] = 45] = "enableVertexAttribArray";
|
55
|
-
GLMethod[GLMethod["finish"] = 46] = "finish";
|
56
|
-
GLMethod[GLMethod["flush"] = 47] = "flush";
|
57
|
-
GLMethod[GLMethod["framebufferRenderbuffer"] = 48] = "framebufferRenderbuffer";
|
58
|
-
GLMethod[GLMethod["framebufferTexture2D"] = 49] = "framebufferTexture2D";
|
59
|
-
GLMethod[GLMethod["frontFace"] = 50] = "frontFace";
|
60
|
-
GLMethod[GLMethod["generateMipmap"] = 51] = "generateMipmap";
|
61
|
-
GLMethod[GLMethod["getActiveAttrib"] = 52] = "getActiveAttrib";
|
62
|
-
GLMethod[GLMethod["getActiveUniform"] = 53] = "getActiveUniform";
|
63
|
-
GLMethod[GLMethod["getAttachedShaders"] = 54] = "getAttachedShaders";
|
64
|
-
GLMethod[GLMethod["getAttribLocation"] = 55] = "getAttribLocation";
|
65
|
-
GLMethod[GLMethod["getBufferParameter"] = 56] = "getBufferParameter";
|
66
|
-
GLMethod[GLMethod["getContextAttributes"] = 57] = "getContextAttributes";
|
67
|
-
GLMethod[GLMethod["getError"] = 58] = "getError";
|
68
|
-
GLMethod[GLMethod["getExtension"] = 59] = "getExtension";
|
69
|
-
GLMethod[GLMethod["getFramebufferAttachmentParameter"] = 60] = "getFramebufferAttachmentParameter";
|
70
|
-
GLMethod[GLMethod["getParameter"] = 61] = "getParameter";
|
71
|
-
GLMethod[GLMethod["getProgramInfoLog"] = 62] = "getProgramInfoLog";
|
72
|
-
GLMethod[GLMethod["getProgramParameter"] = 63] = "getProgramParameter";
|
73
|
-
GLMethod[GLMethod["getRenderbufferParameter"] = 64] = "getRenderbufferParameter";
|
74
|
-
GLMethod[GLMethod["getShaderInfoLog"] = 65] = "getShaderInfoLog";
|
75
|
-
GLMethod[GLMethod["getShaderParameter"] = 66] = "getShaderParameter";
|
76
|
-
GLMethod[GLMethod["getShaderPrecisionFormat"] = 67] = "getShaderPrecisionFormat";
|
77
|
-
GLMethod[GLMethod["getShaderSource"] = 68] = "getShaderSource";
|
78
|
-
GLMethod[GLMethod["getSupportedExtensions"] = 69] = "getSupportedExtensions";
|
79
|
-
GLMethod[GLMethod["getTexParameter"] = 70] = "getTexParameter";
|
80
|
-
GLMethod[GLMethod["getUniform"] = 71] = "getUniform";
|
81
|
-
GLMethod[GLMethod["getUniformLocation"] = 72] = "getUniformLocation";
|
82
|
-
GLMethod[GLMethod["getVertexAttrib"] = 73] = "getVertexAttrib";
|
83
|
-
GLMethod[GLMethod["getVertexAttribOffset"] = 74] = "getVertexAttribOffset";
|
84
|
-
GLMethod[GLMethod["hint"] = 75] = "hint";
|
85
|
-
GLMethod[GLMethod["isBuffer"] = 76] = "isBuffer";
|
86
|
-
GLMethod[GLMethod["isContextLost"] = 77] = "isContextLost";
|
87
|
-
GLMethod[GLMethod["isEnabled"] = 78] = "isEnabled";
|
88
|
-
GLMethod[GLMethod["isFramebuffer"] = 79] = "isFramebuffer";
|
89
|
-
GLMethod[GLMethod["isProgram"] = 80] = "isProgram";
|
90
|
-
GLMethod[GLMethod["isRenderbuffer"] = 81] = "isRenderbuffer";
|
91
|
-
GLMethod[GLMethod["isShader"] = 82] = "isShader";
|
92
|
-
GLMethod[GLMethod["isTexture"] = 83] = "isTexture";
|
93
|
-
GLMethod[GLMethod["lineWidth"] = 84] = "lineWidth";
|
94
|
-
GLMethod[GLMethod["linkProgram"] = 85] = "linkProgram";
|
95
|
-
GLMethod[GLMethod["polygonOffset"] = 86] = "polygonOffset";
|
96
|
-
GLMethod[GLMethod["renderbufferStorage"] = 87] = "renderbufferStorage";
|
97
|
-
GLMethod[GLMethod["sampleCoverage"] = 88] = "sampleCoverage";
|
98
|
-
GLMethod[GLMethod["scissor"] = 89] = "scissor";
|
99
|
-
GLMethod[GLMethod["shaderSource"] = 90] = "shaderSource";
|
100
|
-
GLMethod[GLMethod["stencilFunc"] = 91] = "stencilFunc";
|
101
|
-
GLMethod[GLMethod["stencilFuncSeparate"] = 92] = "stencilFuncSeparate";
|
102
|
-
GLMethod[GLMethod["stencilMask"] = 93] = "stencilMask";
|
103
|
-
GLMethod[GLMethod["stencilMaskSeparate"] = 94] = "stencilMaskSeparate";
|
104
|
-
GLMethod[GLMethod["stencilOp"] = 95] = "stencilOp";
|
105
|
-
GLMethod[GLMethod["stencilOpSeparate"] = 96] = "stencilOpSeparate";
|
106
|
-
GLMethod[GLMethod["texParameterf"] = 97] = "texParameterf";
|
107
|
-
GLMethod[GLMethod["texParameteri"] = 98] = "texParameteri";
|
108
|
-
GLMethod[GLMethod["uniform1f"] = 99] = "uniform1f";
|
109
|
-
GLMethod[GLMethod["uniform1i"] = 100] = "uniform1i";
|
110
|
-
GLMethod[GLMethod["uniform2f"] = 101] = "uniform2f";
|
111
|
-
GLMethod[GLMethod["uniform2i"] = 102] = "uniform2i";
|
112
|
-
GLMethod[GLMethod["uniform3f"] = 103] = "uniform3f";
|
113
|
-
GLMethod[GLMethod["uniform3i"] = 104] = "uniform3i";
|
114
|
-
GLMethod[GLMethod["uniform4f"] = 105] = "uniform4f";
|
115
|
-
GLMethod[GLMethod["uniform4i"] = 106] = "uniform4i";
|
116
|
-
GLMethod[GLMethod["useProgram"] = 107] = "useProgram";
|
117
|
-
GLMethod[GLMethod["validateProgram"] = 108] = "validateProgram";
|
118
|
-
GLMethod[GLMethod["vertexAttrib1f"] = 109] = "vertexAttrib1f";
|
119
|
-
GLMethod[GLMethod["vertexAttrib2f"] = 110] = "vertexAttrib2f";
|
120
|
-
GLMethod[GLMethod["vertexAttrib3f"] = 111] = "vertexAttrib3f";
|
121
|
-
GLMethod[GLMethod["vertexAttrib4f"] = 112] = "vertexAttrib4f";
|
122
|
-
GLMethod[GLMethod["vertexAttribPointer"] = 113] = "vertexAttribPointer";
|
123
|
-
GLMethod[GLMethod["viewport"] = 114] = "viewport";
|
124
|
-
GLMethod[GLMethod["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
125
|
-
})(GLMethod || (GLMethod = {}));
|
126
|
-
export function gLMethodFromJSON(object) {
|
127
|
-
switch (object) {
|
128
|
-
case 0:
|
129
|
-
case "activeTexture":
|
130
|
-
return GLMethod.activeTexture;
|
131
|
-
case 1:
|
132
|
-
case "attachShader":
|
133
|
-
return GLMethod.attachShader;
|
134
|
-
case 2:
|
135
|
-
case "bindAttribLocation":
|
136
|
-
return GLMethod.bindAttribLocation;
|
137
|
-
case 3:
|
138
|
-
case "bindBuffer":
|
139
|
-
return GLMethod.bindBuffer;
|
140
|
-
case 4:
|
141
|
-
case "bindFramebuffer":
|
142
|
-
return GLMethod.bindFramebuffer;
|
143
|
-
case 5:
|
144
|
-
case "bindRenderbuffer":
|
145
|
-
return GLMethod.bindRenderbuffer;
|
146
|
-
case 6:
|
147
|
-
case "bindTexture":
|
148
|
-
return GLMethod.bindTexture;
|
149
|
-
case 7:
|
150
|
-
case "blendColor":
|
151
|
-
return GLMethod.blendColor;
|
152
|
-
case 8:
|
153
|
-
case "blendEquation":
|
154
|
-
return GLMethod.blendEquation;
|
155
|
-
case 9:
|
156
|
-
case "blendEquationSeparate":
|
157
|
-
return GLMethod.blendEquationSeparate;
|
158
|
-
case 10:
|
159
|
-
case "blendFunc":
|
160
|
-
return GLMethod.blendFunc;
|
161
|
-
case 11:
|
162
|
-
case "blendFuncSeparate":
|
163
|
-
return GLMethod.blendFuncSeparate;
|
164
|
-
case 12:
|
165
|
-
case "bufferData":
|
166
|
-
return GLMethod.bufferData;
|
167
|
-
case 13:
|
168
|
-
case "bufferSubData":
|
169
|
-
return GLMethod.bufferSubData;
|
170
|
-
case 14:
|
171
|
-
case "checkFramebufferStatus":
|
172
|
-
return GLMethod.checkFramebufferStatus;
|
173
|
-
case 15:
|
174
|
-
case "clear":
|
175
|
-
return GLMethod.clear;
|
176
|
-
case 16:
|
177
|
-
case "clearColor":
|
178
|
-
return GLMethod.clearColor;
|
179
|
-
case 17:
|
180
|
-
case "clearDepth":
|
181
|
-
return GLMethod.clearDepth;
|
182
|
-
case 18:
|
183
|
-
case "clearStencil":
|
184
|
-
return GLMethod.clearStencil;
|
185
|
-
case 19:
|
186
|
-
case "colorMask":
|
187
|
-
return GLMethod.colorMask;
|
188
|
-
case 20:
|
189
|
-
case "compileShader":
|
190
|
-
return GLMethod.compileShader;
|
191
|
-
case 21:
|
192
|
-
case "copyTexImage2D":
|
193
|
-
return GLMethod.copyTexImage2D;
|
194
|
-
case 22:
|
195
|
-
case "copyTexSubImage2D":
|
196
|
-
return GLMethod.copyTexSubImage2D;
|
197
|
-
case 23:
|
198
|
-
case "createBuffer":
|
199
|
-
return GLMethod.createBuffer;
|
200
|
-
case 24:
|
201
|
-
case "createFramebuffer":
|
202
|
-
return GLMethod.createFramebuffer;
|
203
|
-
case 25:
|
204
|
-
case "createProgram":
|
205
|
-
return GLMethod.createProgram;
|
206
|
-
case 26:
|
207
|
-
case "createRenderbuffer":
|
208
|
-
return GLMethod.createRenderbuffer;
|
209
|
-
case 27:
|
210
|
-
case "createShader":
|
211
|
-
return GLMethod.createShader;
|
212
|
-
case 28:
|
213
|
-
case "createTexture":
|
214
|
-
return GLMethod.createTexture;
|
215
|
-
case 29:
|
216
|
-
case "cullFace":
|
217
|
-
return GLMethod.cullFace;
|
218
|
-
case 30:
|
219
|
-
case "deleteBuffer":
|
220
|
-
return GLMethod.deleteBuffer;
|
221
|
-
case 31:
|
222
|
-
case "deleteFramebuffer":
|
223
|
-
return GLMethod.deleteFramebuffer;
|
224
|
-
case 32:
|
225
|
-
case "deleteProgram":
|
226
|
-
return GLMethod.deleteProgram;
|
227
|
-
case 33:
|
228
|
-
case "deleteRenderbuffer":
|
229
|
-
return GLMethod.deleteRenderbuffer;
|
230
|
-
case 34:
|
231
|
-
case "deleteShader":
|
232
|
-
return GLMethod.deleteShader;
|
233
|
-
case 35:
|
234
|
-
case "deleteTexture":
|
235
|
-
return GLMethod.deleteTexture;
|
236
|
-
case 36:
|
237
|
-
case "depthFunc":
|
238
|
-
return GLMethod.depthFunc;
|
239
|
-
case 37:
|
240
|
-
case "depthMask":
|
241
|
-
return GLMethod.depthMask;
|
242
|
-
case 38:
|
243
|
-
case "depthRange":
|
244
|
-
return GLMethod.depthRange;
|
245
|
-
case 39:
|
246
|
-
case "detachShader":
|
247
|
-
return GLMethod.detachShader;
|
248
|
-
case 40:
|
249
|
-
case "disable":
|
250
|
-
return GLMethod.disable;
|
251
|
-
case 41:
|
252
|
-
case "disableVertexAttribArray":
|
253
|
-
return GLMethod.disableVertexAttribArray;
|
254
|
-
case 42:
|
255
|
-
case "drawArrays":
|
256
|
-
return GLMethod.drawArrays;
|
257
|
-
case 43:
|
258
|
-
case "drawElements":
|
259
|
-
return GLMethod.drawElements;
|
260
|
-
case 44:
|
261
|
-
case "enable":
|
262
|
-
return GLMethod.enable;
|
263
|
-
case 45:
|
264
|
-
case "enableVertexAttribArray":
|
265
|
-
return GLMethod.enableVertexAttribArray;
|
266
|
-
case 46:
|
267
|
-
case "finish":
|
268
|
-
return GLMethod.finish;
|
269
|
-
case 47:
|
270
|
-
case "flush":
|
271
|
-
return GLMethod.flush;
|
272
|
-
case 48:
|
273
|
-
case "framebufferRenderbuffer":
|
274
|
-
return GLMethod.framebufferRenderbuffer;
|
275
|
-
case 49:
|
276
|
-
case "framebufferTexture2D":
|
277
|
-
return GLMethod.framebufferTexture2D;
|
278
|
-
case 50:
|
279
|
-
case "frontFace":
|
280
|
-
return GLMethod.frontFace;
|
281
|
-
case 51:
|
282
|
-
case "generateMipmap":
|
283
|
-
return GLMethod.generateMipmap;
|
284
|
-
case 52:
|
285
|
-
case "getActiveAttrib":
|
286
|
-
return GLMethod.getActiveAttrib;
|
287
|
-
case 53:
|
288
|
-
case "getActiveUniform":
|
289
|
-
return GLMethod.getActiveUniform;
|
290
|
-
case 54:
|
291
|
-
case "getAttachedShaders":
|
292
|
-
return GLMethod.getAttachedShaders;
|
293
|
-
case 55:
|
294
|
-
case "getAttribLocation":
|
295
|
-
return GLMethod.getAttribLocation;
|
296
|
-
case 56:
|
297
|
-
case "getBufferParameter":
|
298
|
-
return GLMethod.getBufferParameter;
|
299
|
-
case 57:
|
300
|
-
case "getContextAttributes":
|
301
|
-
return GLMethod.getContextAttributes;
|
302
|
-
case 58:
|
303
|
-
case "getError":
|
304
|
-
return GLMethod.getError;
|
305
|
-
case 59:
|
306
|
-
case "getExtension":
|
307
|
-
return GLMethod.getExtension;
|
308
|
-
case 60:
|
309
|
-
case "getFramebufferAttachmentParameter":
|
310
|
-
return GLMethod.getFramebufferAttachmentParameter;
|
311
|
-
case 61:
|
312
|
-
case "getParameter":
|
313
|
-
return GLMethod.getParameter;
|
314
|
-
case 62:
|
315
|
-
case "getProgramInfoLog":
|
316
|
-
return GLMethod.getProgramInfoLog;
|
317
|
-
case 63:
|
318
|
-
case "getProgramParameter":
|
319
|
-
return GLMethod.getProgramParameter;
|
320
|
-
case 64:
|
321
|
-
case "getRenderbufferParameter":
|
322
|
-
return GLMethod.getRenderbufferParameter;
|
323
|
-
case 65:
|
324
|
-
case "getShaderInfoLog":
|
325
|
-
return GLMethod.getShaderInfoLog;
|
326
|
-
case 66:
|
327
|
-
case "getShaderParameter":
|
328
|
-
return GLMethod.getShaderParameter;
|
329
|
-
case 67:
|
330
|
-
case "getShaderPrecisionFormat":
|
331
|
-
return GLMethod.getShaderPrecisionFormat;
|
332
|
-
case 68:
|
333
|
-
case "getShaderSource":
|
334
|
-
return GLMethod.getShaderSource;
|
335
|
-
case 69:
|
336
|
-
case "getSupportedExtensions":
|
337
|
-
return GLMethod.getSupportedExtensions;
|
338
|
-
case 70:
|
339
|
-
case "getTexParameter":
|
340
|
-
return GLMethod.getTexParameter;
|
341
|
-
case 71:
|
342
|
-
case "getUniform":
|
343
|
-
return GLMethod.getUniform;
|
344
|
-
case 72:
|
345
|
-
case "getUniformLocation":
|
346
|
-
return GLMethod.getUniformLocation;
|
347
|
-
case 73:
|
348
|
-
case "getVertexAttrib":
|
349
|
-
return GLMethod.getVertexAttrib;
|
350
|
-
case 74:
|
351
|
-
case "getVertexAttribOffset":
|
352
|
-
return GLMethod.getVertexAttribOffset;
|
353
|
-
case 75:
|
354
|
-
case "hint":
|
355
|
-
return GLMethod.hint;
|
356
|
-
case 76:
|
357
|
-
case "isBuffer":
|
358
|
-
return GLMethod.isBuffer;
|
359
|
-
case 77:
|
360
|
-
case "isContextLost":
|
361
|
-
return GLMethod.isContextLost;
|
362
|
-
case 78:
|
363
|
-
case "isEnabled":
|
364
|
-
return GLMethod.isEnabled;
|
365
|
-
case 79:
|
366
|
-
case "isFramebuffer":
|
367
|
-
return GLMethod.isFramebuffer;
|
368
|
-
case 80:
|
369
|
-
case "isProgram":
|
370
|
-
return GLMethod.isProgram;
|
371
|
-
case 81:
|
372
|
-
case "isRenderbuffer":
|
373
|
-
return GLMethod.isRenderbuffer;
|
374
|
-
case 82:
|
375
|
-
case "isShader":
|
376
|
-
return GLMethod.isShader;
|
377
|
-
case 83:
|
378
|
-
case "isTexture":
|
379
|
-
return GLMethod.isTexture;
|
380
|
-
case 84:
|
381
|
-
case "lineWidth":
|
382
|
-
return GLMethod.lineWidth;
|
383
|
-
case 85:
|
384
|
-
case "linkProgram":
|
385
|
-
return GLMethod.linkProgram;
|
386
|
-
case 86:
|
387
|
-
case "polygonOffset":
|
388
|
-
return GLMethod.polygonOffset;
|
389
|
-
case 87:
|
390
|
-
case "renderbufferStorage":
|
391
|
-
return GLMethod.renderbufferStorage;
|
392
|
-
case 88:
|
393
|
-
case "sampleCoverage":
|
394
|
-
return GLMethod.sampleCoverage;
|
395
|
-
case 89:
|
396
|
-
case "scissor":
|
397
|
-
return GLMethod.scissor;
|
398
|
-
case 90:
|
399
|
-
case "shaderSource":
|
400
|
-
return GLMethod.shaderSource;
|
401
|
-
case 91:
|
402
|
-
case "stencilFunc":
|
403
|
-
return GLMethod.stencilFunc;
|
404
|
-
case 92:
|
405
|
-
case "stencilFuncSeparate":
|
406
|
-
return GLMethod.stencilFuncSeparate;
|
407
|
-
case 93:
|
408
|
-
case "stencilMask":
|
409
|
-
return GLMethod.stencilMask;
|
410
|
-
case 94:
|
411
|
-
case "stencilMaskSeparate":
|
412
|
-
return GLMethod.stencilMaskSeparate;
|
413
|
-
case 95:
|
414
|
-
case "stencilOp":
|
415
|
-
return GLMethod.stencilOp;
|
416
|
-
case 96:
|
417
|
-
case "stencilOpSeparate":
|
418
|
-
return GLMethod.stencilOpSeparate;
|
419
|
-
case 97:
|
420
|
-
case "texParameterf":
|
421
|
-
return GLMethod.texParameterf;
|
422
|
-
case 98:
|
423
|
-
case "texParameteri":
|
424
|
-
return GLMethod.texParameteri;
|
425
|
-
case 99:
|
426
|
-
case "uniform1f":
|
427
|
-
return GLMethod.uniform1f;
|
428
|
-
case 100:
|
429
|
-
case "uniform1i":
|
430
|
-
return GLMethod.uniform1i;
|
431
|
-
case 101:
|
432
|
-
case "uniform2f":
|
433
|
-
return GLMethod.uniform2f;
|
434
|
-
case 102:
|
435
|
-
case "uniform2i":
|
436
|
-
return GLMethod.uniform2i;
|
437
|
-
case 103:
|
438
|
-
case "uniform3f":
|
439
|
-
return GLMethod.uniform3f;
|
440
|
-
case 104:
|
441
|
-
case "uniform3i":
|
442
|
-
return GLMethod.uniform3i;
|
443
|
-
case 105:
|
444
|
-
case "uniform4f":
|
445
|
-
return GLMethod.uniform4f;
|
446
|
-
case 106:
|
447
|
-
case "uniform4i":
|
448
|
-
return GLMethod.uniform4i;
|
449
|
-
case 107:
|
450
|
-
case "useProgram":
|
451
|
-
return GLMethod.useProgram;
|
452
|
-
case 108:
|
453
|
-
case "validateProgram":
|
454
|
-
return GLMethod.validateProgram;
|
455
|
-
case 109:
|
456
|
-
case "vertexAttrib1f":
|
457
|
-
return GLMethod.vertexAttrib1f;
|
458
|
-
case 110:
|
459
|
-
case "vertexAttrib2f":
|
460
|
-
return GLMethod.vertexAttrib2f;
|
461
|
-
case 111:
|
462
|
-
case "vertexAttrib3f":
|
463
|
-
return GLMethod.vertexAttrib3f;
|
464
|
-
case 112:
|
465
|
-
case "vertexAttrib4f":
|
466
|
-
return GLMethod.vertexAttrib4f;
|
467
|
-
case 113:
|
468
|
-
case "vertexAttribPointer":
|
469
|
-
return GLMethod.vertexAttribPointer;
|
470
|
-
case 114:
|
471
|
-
case "viewport":
|
472
|
-
return GLMethod.viewport;
|
473
|
-
case -1:
|
474
|
-
case "UNRECOGNIZED":
|
475
|
-
default:
|
476
|
-
return GLMethod.UNRECOGNIZED;
|
477
|
-
}
|
478
|
-
}
|
479
|
-
export function gLMethodToJSON(object) {
|
480
|
-
switch (object) {
|
481
|
-
case GLMethod.activeTexture:
|
482
|
-
return 0;
|
483
|
-
case GLMethod.attachShader:
|
484
|
-
return 1;
|
485
|
-
case GLMethod.bindAttribLocation:
|
486
|
-
return 2;
|
487
|
-
case GLMethod.bindBuffer:
|
488
|
-
return 3;
|
489
|
-
case GLMethod.bindFramebuffer:
|
490
|
-
return 4;
|
491
|
-
case GLMethod.bindRenderbuffer:
|
492
|
-
return 5;
|
493
|
-
case GLMethod.bindTexture:
|
494
|
-
return 6;
|
495
|
-
case GLMethod.blendColor:
|
496
|
-
return 7;
|
497
|
-
case GLMethod.blendEquation:
|
498
|
-
return 8;
|
499
|
-
case GLMethod.blendEquationSeparate:
|
500
|
-
return 9;
|
501
|
-
case GLMethod.blendFunc:
|
502
|
-
return 10;
|
503
|
-
case GLMethod.blendFuncSeparate:
|
504
|
-
return 11;
|
505
|
-
case GLMethod.bufferData:
|
506
|
-
return 12;
|
507
|
-
case GLMethod.bufferSubData:
|
508
|
-
return 13;
|
509
|
-
case GLMethod.checkFramebufferStatus:
|
510
|
-
return 14;
|
511
|
-
case GLMethod.clear:
|
512
|
-
return 15;
|
513
|
-
case GLMethod.clearColor:
|
514
|
-
return 16;
|
515
|
-
case GLMethod.clearDepth:
|
516
|
-
return 17;
|
517
|
-
case GLMethod.clearStencil:
|
518
|
-
return 18;
|
519
|
-
case GLMethod.colorMask:
|
520
|
-
return 19;
|
521
|
-
case GLMethod.compileShader:
|
522
|
-
return 20;
|
523
|
-
case GLMethod.copyTexImage2D:
|
524
|
-
return 21;
|
525
|
-
case GLMethod.copyTexSubImage2D:
|
526
|
-
return 22;
|
527
|
-
case GLMethod.createBuffer:
|
528
|
-
return 23;
|
529
|
-
case GLMethod.createFramebuffer:
|
530
|
-
return 24;
|
531
|
-
case GLMethod.createProgram:
|
532
|
-
return 25;
|
533
|
-
case GLMethod.createRenderbuffer:
|
534
|
-
return 26;
|
535
|
-
case GLMethod.createShader:
|
536
|
-
return 27;
|
537
|
-
case GLMethod.createTexture:
|
538
|
-
return 28;
|
539
|
-
case GLMethod.cullFace:
|
540
|
-
return 29;
|
541
|
-
case GLMethod.deleteBuffer:
|
542
|
-
return 30;
|
543
|
-
case GLMethod.deleteFramebuffer:
|
544
|
-
return 31;
|
545
|
-
case GLMethod.deleteProgram:
|
546
|
-
return 32;
|
547
|
-
case GLMethod.deleteRenderbuffer:
|
548
|
-
return 33;
|
549
|
-
case GLMethod.deleteShader:
|
550
|
-
return 34;
|
551
|
-
case GLMethod.deleteTexture:
|
552
|
-
return 35;
|
553
|
-
case GLMethod.depthFunc:
|
554
|
-
return 36;
|
555
|
-
case GLMethod.depthMask:
|
556
|
-
return 37;
|
557
|
-
case GLMethod.depthRange:
|
558
|
-
return 38;
|
559
|
-
case GLMethod.detachShader:
|
560
|
-
return 39;
|
561
|
-
case GLMethod.disable:
|
562
|
-
return 40;
|
563
|
-
case GLMethod.disableVertexAttribArray:
|
564
|
-
return 41;
|
565
|
-
case GLMethod.drawArrays:
|
566
|
-
return 42;
|
567
|
-
case GLMethod.drawElements:
|
568
|
-
return 43;
|
569
|
-
case GLMethod.enable:
|
570
|
-
return 44;
|
571
|
-
case GLMethod.enableVertexAttribArray:
|
572
|
-
return 45;
|
573
|
-
case GLMethod.finish:
|
574
|
-
return 46;
|
575
|
-
case GLMethod.flush:
|
576
|
-
return 47;
|
577
|
-
case GLMethod.framebufferRenderbuffer:
|
578
|
-
return 48;
|
579
|
-
case GLMethod.framebufferTexture2D:
|
580
|
-
return 49;
|
581
|
-
case GLMethod.frontFace:
|
582
|
-
return 50;
|
583
|
-
case GLMethod.generateMipmap:
|
584
|
-
return 51;
|
585
|
-
case GLMethod.getActiveAttrib:
|
586
|
-
return 52;
|
587
|
-
case GLMethod.getActiveUniform:
|
588
|
-
return 53;
|
589
|
-
case GLMethod.getAttachedShaders:
|
590
|
-
return 54;
|
591
|
-
case GLMethod.getAttribLocation:
|
592
|
-
return 55;
|
593
|
-
case GLMethod.getBufferParameter:
|
594
|
-
return 56;
|
595
|
-
case GLMethod.getContextAttributes:
|
596
|
-
return 57;
|
597
|
-
case GLMethod.getError:
|
598
|
-
return 58;
|
599
|
-
case GLMethod.getExtension:
|
600
|
-
return 59;
|
601
|
-
case GLMethod.getFramebufferAttachmentParameter:
|
602
|
-
return 60;
|
603
|
-
case GLMethod.getParameter:
|
604
|
-
return 61;
|
605
|
-
case GLMethod.getProgramInfoLog:
|
606
|
-
return 62;
|
607
|
-
case GLMethod.getProgramParameter:
|
608
|
-
return 63;
|
609
|
-
case GLMethod.getRenderbufferParameter:
|
610
|
-
return 64;
|
611
|
-
case GLMethod.getShaderInfoLog:
|
612
|
-
return 65;
|
613
|
-
case GLMethod.getShaderParameter:
|
614
|
-
return 66;
|
615
|
-
case GLMethod.getShaderPrecisionFormat:
|
616
|
-
return 67;
|
617
|
-
case GLMethod.getShaderSource:
|
618
|
-
return 68;
|
619
|
-
case GLMethod.getSupportedExtensions:
|
620
|
-
return 69;
|
621
|
-
case GLMethod.getTexParameter:
|
622
|
-
return 70;
|
623
|
-
case GLMethod.getUniform:
|
624
|
-
return 71;
|
625
|
-
case GLMethod.getUniformLocation:
|
626
|
-
return 72;
|
627
|
-
case GLMethod.getVertexAttrib:
|
628
|
-
return 73;
|
629
|
-
case GLMethod.getVertexAttribOffset:
|
630
|
-
return 74;
|
631
|
-
case GLMethod.hint:
|
632
|
-
return 75;
|
633
|
-
case GLMethod.isBuffer:
|
634
|
-
return 76;
|
635
|
-
case GLMethod.isContextLost:
|
636
|
-
return 77;
|
637
|
-
case GLMethod.isEnabled:
|
638
|
-
return 78;
|
639
|
-
case GLMethod.isFramebuffer:
|
640
|
-
return 79;
|
641
|
-
case GLMethod.isProgram:
|
642
|
-
return 80;
|
643
|
-
case GLMethod.isRenderbuffer:
|
644
|
-
return 81;
|
645
|
-
case GLMethod.isShader:
|
646
|
-
return 82;
|
647
|
-
case GLMethod.isTexture:
|
648
|
-
return 83;
|
649
|
-
case GLMethod.lineWidth:
|
650
|
-
return 84;
|
651
|
-
case GLMethod.linkProgram:
|
652
|
-
return 85;
|
653
|
-
case GLMethod.polygonOffset:
|
654
|
-
return 86;
|
655
|
-
case GLMethod.renderbufferStorage:
|
656
|
-
return 87;
|
657
|
-
case GLMethod.sampleCoverage:
|
658
|
-
return 88;
|
659
|
-
case GLMethod.scissor:
|
660
|
-
return 89;
|
661
|
-
case GLMethod.shaderSource:
|
662
|
-
return 90;
|
663
|
-
case GLMethod.stencilFunc:
|
664
|
-
return 91;
|
665
|
-
case GLMethod.stencilFuncSeparate:
|
666
|
-
return 92;
|
667
|
-
case GLMethod.stencilMask:
|
668
|
-
return 93;
|
669
|
-
case GLMethod.stencilMaskSeparate:
|
670
|
-
return 94;
|
671
|
-
case GLMethod.stencilOp:
|
672
|
-
return 95;
|
673
|
-
case GLMethod.stencilOpSeparate:
|
674
|
-
return 96;
|
675
|
-
case GLMethod.texParameterf:
|
676
|
-
return 97;
|
677
|
-
case GLMethod.texParameteri:
|
678
|
-
return 98;
|
679
|
-
case GLMethod.uniform1f:
|
680
|
-
return 99;
|
681
|
-
case GLMethod.uniform1i:
|
682
|
-
return 100;
|
683
|
-
case GLMethod.uniform2f:
|
684
|
-
return 101;
|
685
|
-
case GLMethod.uniform2i:
|
686
|
-
return 102;
|
687
|
-
case GLMethod.uniform3f:
|
688
|
-
return 103;
|
689
|
-
case GLMethod.uniform3i:
|
690
|
-
return 104;
|
691
|
-
case GLMethod.uniform4f:
|
692
|
-
return 105;
|
693
|
-
case GLMethod.uniform4i:
|
694
|
-
return 106;
|
695
|
-
case GLMethod.useProgram:
|
696
|
-
return 107;
|
697
|
-
case GLMethod.validateProgram:
|
698
|
-
return 108;
|
699
|
-
case GLMethod.vertexAttrib1f:
|
700
|
-
return 109;
|
701
|
-
case GLMethod.vertexAttrib2f:
|
702
|
-
return 110;
|
703
|
-
case GLMethod.vertexAttrib3f:
|
704
|
-
return 111;
|
705
|
-
case GLMethod.vertexAttrib4f:
|
706
|
-
return 112;
|
707
|
-
case GLMethod.vertexAttribPointer:
|
708
|
-
return 113;
|
709
|
-
case GLMethod.viewport:
|
710
|
-
return 114;
|
711
|
-
case GLMethod.UNRECOGNIZED:
|
712
|
-
default:
|
713
|
-
return -1;
|
714
|
-
}
|
715
|
-
}
|