-
Notifications
You must be signed in to change notification settings - Fork 4
/
webgl-methods.sublime-completions
564 lines (563 loc) · 23.7 KB
/
webgl-methods.sublime-completions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
{
"scope": "source.js",
"completions":
[
// Buffer Functions
{
"trigger": "gl.createBuffer\tGLCompletion",
"contents": "gl.createBuffer()"
},
{
"trigger": "gl.deleteBuffer(${0:WebGLBuffer_buffer})\tGLCompletion",
"contents": "gl.deleteBuffer(${0:WebGLBuffer_buffer})"
},
{
"trigger": "gl.bindBuffer(${0:enum_target}, WebGLBuffer_buffer)\tGLCompletion",
"contents": "gl.bindBuffer(${0:enum_target}, WebGLBuffer_buffer)"
},
{
"trigger": "gl.bufferData(${0:enum_target}, Object_data, enum_usage)\tGLCompletion",
"contents": "gl.bufferData(${0:enum_target}, Object_data, enum_usage)"
},
{
"trigger": "gl.bufferData(${0:enum_target}, unit_size, enum_usage)\tGLCompletion",
"contents": "gl.bufferData(${0:enum_target}, unit_size, enum_usage)"
},
{
"trigger": "gl.bufferSubData(${0:enum_target}, Object_data, enum_usage)\tGLCompletion",
"contents": "gl.bufferSubData(${0:enum_target}, Object_data, enum_usage)"
},
{
"trigger": "gl.getBufferParameter(${0:enum_target}, enum_pname)\tGLCompletion",
"contents": "gl.getBufferParameter(${0:enum_target}, enum_pname)"
},
{
"trigger": "gl.isBuffer(${0:WebGLBuffer_buffer})\tGLCompletion",
"contents": "gl.isBuffer(${0:WebGLBuffer_buffer})"
},
// Shader Functions
{
"trigger": "gl.createShader(${0:enum_type})\tGLCompletion",
"contents": "gl.createShader(${0:enum_type})"
},
{
"trigger": "gl.deleteShader(${0:WebGLShader_shader})\tGLCompletion",
"contents": "gl.deleteShader(${0:WebGLShader_shader})"
},
{
"trigger": "gl.shaderSource(${0:WebGLShader_shader}, string_source)\tGLCompletion",
"contents": "gl.shaderSource(${0:WebGLShader_shader}, string_source)"
},
{
"trigger": "gl.getShaderSource(${0:WebGLShader_shader})\tGLCompletion",
"contents": "gl.getShaderSource(${0:WebGLShader_shader})"
},
{
"trigger": "gl.compileShader(${0:WebGLShader_shader})\tGLCompletion",
"contents": "gl.compileShader(${0:WebGLShader_shader})"
},
{
"trigger": "gl.getShaderInfoLog(${0:WebGLShader_shader})\tGLCompletion",
"contents": "gl.getShaderInfoLog(${0:WebGLShader_shader})"
},
{
"trigger": "gl.isShader(${0:WebGLShader_shader})\tGLCompletion",
"contents": "gl.isShader(${0:WebGLShader_shader})"
},
{
"trigger": "gl.getShaderParameter(${0:WebGLShader_shader}, enum_pname)\tGLCompletion",
"contents": "gl.getShaderParameter(${0:WebGLShader_shader}, enum_pname)"
},
// Program Functions
{
"trigger": "gl.createProgram()\tGLCompletion",
"contents": "gl.createProgram()"
},
{
"trigger": "gl.deleteProgram(${0:WebGLProgram_program})\tGLCompletion",
"contents": "gl.deleteProgram(${0:WebGLProgram_program})"
},
{
"trigger": "gl.linkProgram(${0:WebGLProgram_program})\tGLCompletion",
"contents": "gl.linkProgram(${0:WebGLProgram_program})"
},
{
"trigger": "gl.getProgramInfoLog(${0:WebGLProgram_program})\tGLCompletion",
"contents": "gl.getProgramInfoLog(${0:WebGLProgram_program})"
},
{
"trigger": "gl.validateProgram(${0:WebGLProgram_program})\tGLCompletion",
"contents": "gl.validateProgram(${0:WebGLProgram_program})"
},
{
"trigger": "gl.attachShader(${0:WebGLProgram_program}, WebGLShader_shader)\tGLCompletion",
"contents": "gl.attachShader(${0:WebGLProgram_program}, WebGLShader_shader)"
},
{
"trigger": "gl.detachShader(${0:WebGLProgram_program}, WebGLShader_shader)\tGLCompletion",
"contents": "gl.detachShader(${0:WebGLProgram_program}, WebGLShader_shader)"
},
{
"trigger": "gl.getAttachedShaders(${0:WebGLProgram_program})\tGLCompletion",
"contents": "gl.getAttachedShaders(${0:WebGLProgram_program})"
},
{
"trigger": "gl.getActiveAttrib(${0:WebGLProgram_program}, unit_index)\tGLCompletion",
"contents": "gl.getActiveAttrib(${0:WebGLProgram_program}, unit_index)"
},
{
"trigger": "gl.getActiveUniform(${0:WebGLProgram_program}, unit_index)\tGLCompletion",
"contents": "gl.getActiveUniform(${0:WebGLProgram_program}, unit_index)"
},
{
"trigger": "gl.useProgram(${0:WebGLProgram_program})\tGLCompletion",
"contents": "gl.useProgram(${0:WebGLProgram_program})"
},
{
"trigger": "gl.isProgram(${0:WebGLProgram_program})\tGLCompletion",
"contents": "gl.isProgram(${0:WebGLProgram_program})"
},
{
"trigger": "gl.getProgramParameter(${0:WebGLProgram_program}, enum_pname)\tGLCompletion",
"contents": "gl.getProgramParameter(${0:WebGLProgram_program}, enum_pname)"
},
// Accessing Uniform Variables Function
{
"trigger": "gl.getUniformLocation(${0:WebGLProgram_program}, string_name)\tGLCompletion",
"contents": "gl.getUniformLocation(${0:WebGLProgram_program}, string_name)"
},
{
"trigger": "gl.getUniform(${0:WebGLProgram_program}, WebGLUniformLocation_location)\tGLCompletion",
"contents": "gl.getUniform(${0:WebGLProgram_program}, WebGLUniformLocation_location)"
},
{
"trigger": "gl.uniform1f(${0:WebGLUniformLocation_location})\tGLCompletion",
"contents": "gl.uniform1f(${0:WebGLUniformLocation_location})"
},
{
"trigger": "gl.uniform2f(${0:WebGLUniformLocation_location...})\tGLCompletion",
"contents": "gl.uniform2f(${0:WebGLUniformLocation_location...})"
},
{
"trigger": "gl.uniform3f(${0:WebGLUniformLocation_location...})\tGLCompletion",
"contents": "gl.uniform3f(${0:WebGLUniformLocation_location...})"
},
{
"trigger": "gl.uniform4f(${0:WebGLUniformLocation_location...})\tGLCompletion",
"contents": "gl.uniform4f(${0:WebGLUniformLocation_location...})"
},
{
"trigger": "gl.uniform1i(${0:WebGLUniformLocation_location})\tGLCompletion",
"contents": "gl.uniform1f(${0:WebGLUniformLocation_location})"
},
{
"trigger": "gl.uniform2i(${0:WebGLUniformLocation_location...})\tGLCompletion",
"contents": "gl.uniform2f(${0:WebGLUniformLocation_location...})"
},
{
"trigger": "gl.uniform3i(${0:WebGLUniformLocation_location...})\tGLCompletion",
"contents": "gl.uniform3f(${0:WebGLUniformLocation_location...})"
},
{
"trigger": "gl.uniform4i(${0:WebGLUniformLocation_location...})\tGLCompletion",
"contents": "gl.uniform4f(${0:WebGLUniformLocation_location...})"
},
{
"trigger": "gl.uniform1fv(${0:WebGLUniformLocation_location}, Array_value)\tGLCompletion",
"contents": "gl.uniform1fv(${0:WebGLUniformLocation_location}, Array_value)"
},
{
"trigger": "gl.uniform2fv(${0:WebGLUniformLocation_location}, Array_value)\tGLCompletion",
"contents": "gl.uniform2fv(${0:WebGLUniformLocation_location}, Array_value)"
},
{
"trigger": "gl.uniform3fv(${0:WebGLUniformLocation_location}, Array_value)\tGLCompletion",
"contents": "gl.uniform3fv(${0:WebGLUniformLocation_location}, Array_value)"
},
{
"trigger": "gl.uniform4fv(${0:WebGLUniformLocation_location}, Array_value)\tGLCompletion",
"contents": "gl.uniform4fv(${0:WebGLUniformLocation_location}, Array_value)"
},
{
"trigger": "gl.uniform1iv(${0:WebGLUniformLocation_location}, Array_value)\tGLCompletion",
"contents": "gl.uniform1iv(${0:WebGLUniformLocation_location}, Array_value)"
},
{
"trigger": "gl.uniform2iv(${0:WebGLUniformLocation_location}, Array_value)\tGLCompletion",
"contents": "gl.uniform2iv(${0:WebGLUniformLocation_location}, Array_value)"
},
{
"trigger": "gl.uniform3iv(${0:WebGLUniformLocation_location}, Array_value)\tGLCompletion",
"contents": "gl.uniform3iv(${0:WebGLUniformLocation_location}, Array_value)"
},
{
"trigger": "gl.uniform4iv(${0:WebGLUniformLocation_location}, Array_value)\tGLCompletion",
"contents": "gl.uniform4iv(${0:WebGLUniformLocation_location}, Array_value)"
},
{
"trigger": "gl.uniformMatrix2fv(${0:WebGLUniformLocation_location}, boolean_transpose, Float32Array_values)\tGLCompletion",
"contents": "gl.uniformMatrix2fv(${0:WebGLUniformLocation_location}, boolean_transpose, Float32Array_values)"
},
{
"trigger": "gl.uniformMatrix3fv(${0:WebGLUniformLocation_location}, boolean_transpose, Float32Array_values)\tGLCompletion",
"contents": "gl.uniformMatrix3fv(${0:WebGLUniformLocation_location}, boolean_transpose, Float32Array_values)"
},
{
"trigger": "gl.uniformMatrix4fv(${0:WebGLUniformLocation_location}, boolean_transpose, Float32Array_values)\tGLCompletion",
"contents": "gl.uniformMatrix4fv(${0:WebGLUniformLocation_location}, boolean_transpose, Float32Array_values)"
},
// Vertext Attribute Functions
{
"trigger": "gl.enableVertexAttribArray(${0:unit_index})\tGLCompletion",
"contents": "gl.enableVertexAttribArray(${0:unit_index})"
},
{
"trigger": "gl.disableVertexAttribArray(${0:unit_index})\tGLCompletion",
"contents": "gl.disableVertexAttribArray(${0:unit_index})"
},
{
"trigger": "gl.getAttribLocation(${0:WebGLProgram_program}, string_name)\tGLCompletion",
"contents": "gl.getAttribLocation(${0:WebGLProgram_program}, string_name)"
},
{
"trigger": "gl.bindAttribLocation(${0:WebGLProgram_program}, unit_index, string_name)\tGLCompletion",
"contents": "gl.bindAttribLocation(${0:WebGLProgram_program}, unit_index, string_name)"
},
{
"trigger": "gl.getVertexAttrib(${0:unit_index}, enum_pname)\tGLCompletion",
"contents": "gl.getVertexAttrib(${0:unit_index}, enum_pname)"
},
{
"trigger": "gl.getVertexAttribOffset(${0:unit_index}, enum_pname)\tGLCompletion",
"contents": "gl.getVertexAttribOffset(${0:unit_index}, enum_pname)"
},
{
"trigger": "gl.vertexAttrib1f(${0:unit_index...})\tGLCompletion",
"contents": "gl.vertexAttrib1f(${0:unit_index...})"
},
{
"trigger": "gl.vertexAttrib2f(${0:unit_index...})\tGLCompletion",
"contents": "gl.vertexAttrib2f(${0:unit_index...})"
},
{
"trigger": "gl.vertexAttrib3f(${0:unit_index...})\tGLCompletion",
"contents": "gl.vertexAttrib3f(${0:unit_index...})"
},
{
"trigger": "gl.vertexAttrib4f(${0:unit_index...})\tGLCompletion",
"contents": "gl.vertexAttrib4f(${0:unit_index...})"
},
{
"trigger": "gl.vertexAttrib1fv(${0:unit_index}, Float32Array_values)\tGLCompletion",
"contents": "gl.vertexAttrib1fv(${0:unit_index}, Float32Array_values)"
},
{
"trigger": "gl.vertexAttrib2fv(${0:unit_index}, Float32Array_values)\tGLCompletion",
"contents": "gl.vertexAttrib2fv(${0:unit_index}, Float32Array_values)"
},
{
"trigger": "gl.vertexAttrib3fv(${0:unit_index}, Float32Array_values)\tGLCompletion",
"contents": "gl.vertexAttrib3fv(${0:unit_index}, Float32Array_values)"
},
{
"trigger": "gl.vertexAttrib4fv(${0:unit_index}, Float32Array_values)\tGLCompletion",
"contents": "gl.vertexAttrib4fv(${0:unit_index}, Float32Array_values)"
},
{
"trigger": "gl.vertexAttribPointer(${0:unit_index}, int_size, enum_type, boolean_normalized, int_stride, int_offset)\tGLCompletion",
"contents": "gl.vertexAttribPointer(${0:unit_index}, int_size, enum_type, boolean_normalized, int_stride, int_offset)"
},
// Draw Functions
{
"trigger": "gl.viewport(${0:int_x}, int_y, int_width, int_height)\tGLCompletion",
"contents": "gl.viewport(${0:int_x}, int_y, int_width, int_height)"
},
{
"trigger": "gl.drawArrays(${0:enum_mode}, int_first, int_count)\tGLCompletion",
"contents": "gl.drawArrays(${0:enum_mode}, int_first, int_count)"
},
{
"trigger": "gl.drawElements(${0:enum_mode}, int_count, enum_type, int_offset)\tGLCompletion",
"contents": "gl.drawElements(${0:enum_mode}, int_count, enum_type, int_offset)"
},
{
"trigger": "gl.flush()\tGLCompletion",
"contents": "gl.flush()"
},
{
"trigger": "gl.finish()\tGLCompletion",
"contents": "gl.finish()"
},
// Texture Functions
{
"trigger": "gl.createTexture()\tGLCompletion",
"contents": "gl.createTexture()"
},
{
"trigger": "gl.deleteTexture(${0:WebGLTexture_texture})\tGLCompletion",
"contents": "gl.deleteTexture(${0:WebGLTexture_texture})"
},
{
"trigger": "gl.bindTexture(${0:enum_target}, WebGLTexture_texture)\tGLCompletion",
"contents": "gl.bindTexture(${0:enum_target}, WebGLTexture_texture)"
},
{
"trigger": "gl.activeTexture(${0:enum_texture})\tGLCompletion",
"contents": "gl.activeTexture(${0:enum_texture})"
},
{
"trigger": "gl.generateMipmap(${0:enum_target})\tGLCompletion",
"contents": "gl.generateMipmap(${0:enum_target})"
},
{
"trigger": "gl.texImage2D(${0:enum_target}, int_level, enum_internalformat, int_width, int_height, int_border, enum_format, enum_type, ArrayBufferView_pixels)\tGLCompletion",
"contents": "gl.texImage2D(${0:enum_target}, int_level, enum_internalformat, int_width, int_height, int_border, enum_format, enum_type, ArrayBufferView_pixels)"
},
{
"trigger": "gl.texImage2D(${0:enum_target}, int_level, enum_internalformat, enum_format, enum_type, Object_pixels)\tGLCompletion",
"contents": "gl.texImage2D(${0:enum_target}, int_level, enum_internalformat, enum_format, enum_type, Object_pixels)"
},
{
"trigger": "gl.texSubImage2D(${0:enum_target}, int_level, int_xoffset, int_yoffset, int_width, int_height, enum_format, enum_type, ArrayBufferView_pixels)\tGLCompletion",
"contents": "gl.texSubImage2D(${0:enum_target}, int_level, int_xoffset, int_yoffset, int_width, int_height, enum_format, enum_type, ArrayBufferView_pixels)"
},
{
"trigger": "gl.texSubImage2D(${0:enum_target}, int_level, int_xoffset, int_yoffset, enum_format, enum_type, Object_pixels)\tGLCompletion",
"contents": "gl.texSubImage2D(${0:enum_target}, int_level, int_xoffset, int_yoffset, enum_format, enum_type, Object_pixels)"
},
{
"trigger": "gl.copyTexImage2D(${0:enum_target}, int_level, enum_internalformat, int_x, int_y, int_width, int_height, int_border)\tGLCompletion",
"contents": "gl.copyTexImage2D(${0:enum_target}, int_level, enum_internalformat, int_x, int_y, int_width, int_height, int_border)"
},
{
"trigger": "gl.copyTexSubImage2D(${0:enum_target}, int_level, int_xoffset, int_yoffset, int_x, int_y, int_width, int_height)\tGLCompletion",
"contents": "gl.copyTexSubImage2D(${0:enum_target}, int_level, int_xoffset, int_yoffset, int_x, int_y, int_width, int_height)"
},
{
"trigger": "gl.isTexture(${0:WebGLTexture_texture})\tGLCompletion",
"contents": "gl.isTexture(${0:WebGLTexture_texture})"
},
{
"trigger": "gl.texParameterf(${0:enum_target}, enum_pname, float_param)\tGLCompletion",
"contents": "gl.texParameterf(${0:enum_target}, enum_pname, float_param)"
},
{
"trigger": "gl.texParameteri(${0:enum_target}, enum_pname, int_param)\tGLCompletion",
"contents": "gl.texParameteri(${0:enum_target}, enum_pname, int_param)"
},
{
"trigger": "gl.getTexParameter(${0:enum_target}, enum_pname)\tGLCompletion",
"contents": "gl.getTexParameter(${0:enum_target}, enum_pname)"
},
// Blend Functions
{
"trigger": "gl.blendEquation(${0:enum_mode})\tGLCompletion",
"contents": "gl.blendEquation(${0:enum_mode})"
},
{
"trigger": "gl.blendEquationSeparate(${0:enum_modeRGB}, enum_modeAlpha)\tGLCompletion",
"contents": "gl.blendEquationSeparate(${0:enum_modeRGB}, enum_modeAlpha)"
},
{
"trigger": "gl.blendFunc(${0:enum_sfactor}, enum_dfactor)\tGLCompletion",
"contents": "gl.blendFunc(${0:enum_sfactor}, enum_dfactor)"
},
{
"trigger": "gl.blendFuncSeparate(${0:enum_srcRGB}, enum_dstRGB, enum_srcAlpha, enum_dstAlpha)\tGLCompletion",
"contents": "gl.blendFuncSeparate(${0:enum_srcRGB}, enum_dstRGB, enum_srcAlpha, enum_dstAlpha)"
},
{
"trigger": "gl.blendColor(${0:float_red}, float_green, float_blue, float_alpha)\tGLCompletion",
"contents": "gl.blendColor(${0:float_red}, float_green, float_blue, float_alpha)"
},
// Stencil Buffer Functions
{
"trigger": "gl.clearStencil(${0:int_a})\tGLCompletion",
"contents": "gl.clearStencil(${0:int_a})"
},
{
"trigger": "gl.stencilFunc(${0:enum_func}, int_ref, int_mask)\tGLCompletion",
"contents": "gl.stencilFunc(${0:enum_func}, int_ref, int_mask)"
},
{
"trigger": "gl.stencilFuncSeparate(${0:enum_face}, enum_func, int_ref, int_mask)\tGLCompletion",
"contents": "gl.stencilFuncSeparate(${0:enum_face}, enum_func, int_ref, int_mask)"
},
{
"trigger": "gl.stencilMask(${0:unit_mask})\tGLCompletion",
"contents": "gl.stencilMask(${0:unit_mask})"
},
{
"trigger": "gl.stencilMaskSeparate(${0:enum_face}, unit_mask)\tGLCompletion",
"contents": "gl.stencilMaskSeparate(${0:enum_face}, unit_mask)"
},
{
"trigger": "gl.stencilOp(${0:enum_fail}, enum_zfail, enum_zpass)\tGLCompletion",
"contents": "gl.stencilOp(${0:enum_fail}, enum_zfail, enum_zpass)"
},
{
"trigger": "gl.stencilOpSeparate(${0:enum_face}, enum_fail, enum_zfail, enum_zpass)\tGLCompletion",
"contents": "gl.stencilOpSeparate(${0:enum_face}, enum_fail, enum_zfail, enum_zpass)"
},
// Depth Buffer Functions
{
"trigger": "gl.depthFunc(${0:enum_func})\tGLCompletion",
"contents": "gl.depthFunc(${0:enum_func})"
},
{
"trigger": "gl.depthMask(${0:boolean_flag})\tGLCompletion",
"contents": "gl.depthMask(${0:boolean_flag})"
},
{
"trigger": "gl.depthRange(${0:float_zNear}, float_zFar)\tGLCompletion",
"contents": "gl.depthRange(${0:float_zNear}, float_zFar)"
},
{
"trigger": "gl.clearDepth(${0:float_depth})\tGLCompletion",
"contents": "gl.clearDepth(${0:float_depth})"
},
{
"trigger": "gl.polygonOffset(${0:float_factor}, float_units)\tGLCompletion",
"contents": "gl.polygonOffset(${0:float_factor}, float_units)"
},
// Rendering Buffer Functions
{
"trigger": "gl.createRenderbuffer()\tGLCompletion",
"contents": "gl.createRenderbuffer()"
},
{
"trigger": "gl.deleteRenderbuffer(${0:WebGLRenderBuffer_renderBuffer})\tGLCompletion",
"contents": "gl.deleteRenderbuffer(${0:WebGLRenderBuffer_renderBuffer})"
},
{
"trigger": "gl.bindRenderbuffer(${0:enum_target}, WebGLRenderBuffer_renderBuffer)\tGLCompletion",
"contents": "gl.bindRenderbuffer(${0:enum_target}, WebGLRenderBuffer_renderBuffer)"
},
{
"trigger": "gl.renderbufferStorage(${0:enum_target}, enum_internalformat, int_width, int_height)\tGLCompletion",
"contents": "gl.renderbufferStorage(${0:enum_target}, enum_internalformat, int_width, int_height)"
},
{
"trigger": "gl.framebufferRenderbuffer(${0:enum_target}, enum_attachment, enum_renderBufferTarget, WebGLRenderBuffer_renderBuffer)\tGLCompletion",
"contents": "gl.framebufferRenderbuffer(${0:enum_target}, enum_attachment, enum_renderBufferTarget, WebGLRenderBuffer_renderBuffer)"
},
{
"trigger": "gl.isRenderbuffer(${0:WebGLRenderBuffer_renderBuffer})\tGLCompletion",
"contents": "gl.isRenderbuffer(${0:WebGLRenderBuffer_renderBuffer})"
},
{
"trigger": "gl.getRenderbufferParameter(${0:enum_target}, enum_pname)\tGLCompletion",
"contents": "gl.getRenderbufferParameter(${0:enum_target}, enum_pname)"
},
// Frame Buffer Functions
{
"trigger": "gl.createFramebuffer()\tGLCompletion",
"contents": "gl.createFramebuffer()"
},
{
"trigger": "gl.deleteFramebuffer(${0:WebGLFramebuffer_framebuffer})\tGLCompletion",
"contents": "gl.deleteFramebuffer(${0:WebGLFramebuffer_framebuffer})"
},
{
"trigger": "gl.bindFramebuffer(${0:enum_target}, WebGLFramebuffer_framebuffer)\tGLCompletion",
"contents": "gl.bindFramebuffer(${0:enum_target}, WebGLFramebuffer_framebuffer)"
},
{
"trigger": "gl.checkFramebufferStatus(${0:enum_target})\tGLCompletion",
"contents": "gl.checkFramebufferStatus(${0:enum_target})"
},
{
"trigger": "gl.isFramebuffer(${0:WebGLFramebuffer_framebuffer})\tGLCompletion",
"contents": "gl.isFramebuffer(${0:WebGLFramebuffer_framebuffer})"
},
{
"trigger": "gl.framebufferTexture2D(${0:enum_target}, enum_attachment, enum_texTarget, WebGLTexture_texture, int_level)\tGLCompletion",
"contents": "gl.framebufferTexture2D(${0:enum_target}, enum_attachment, enum_texTarget, WebGLTexture_texture, int_level)"
},
{
"trigger": "gl.getFramebufferAttachmentParameter(${0:enum_target}, enum_attachment, enum_pname)\tGLCompletion",
"contents": "gl.getFramebufferAttachmentParameter(${0:enum_target}, enum_attachment, enum_pname)"
},
{
"trigger": "gl.colorMask(${0:boolean_red}, boolean_green, boolean_blue, boolean_alpha)\tGLCompletion",
"contents": "gl.colorMask(${0:boolean_red}, boolean_green, boolean_blue, boolean_alpha)"
},
{
"trigger": "gl.readPixels(${0:int_x}, int_y, int_width, int_height, enum_format, enum_type, ArrayBufferView_pixels)\tGLCompletion",
"contents": "gl.readPixels(${0:int_x}, int_y, int_width, int_height, enum_format, enum_type, ArrayBufferView_pixels)"
},
{
"trigger": "gl.pixelStorei(${0:enum_pname}, any_param)\tGLCompletion",
"contents": "gl.pixelStorei(${0:enum_pname}, any_param)"
},
// MISC Functions
{
"trigger": "gl.enable(${0:enum_cap})\tGLCompletion",
"contents": "gl.enable(${0:enum_cap})"
},
{
"trigger": "gl.disable(${0:enum_cap})\tGLCompletion",
"contents": "gl.disable(${0:enum_cap})"
},
{
"trigger": "gl.isEnabled(${0:enum_cap})\tGLCompletion",
"contents": "gl.isEnabled(${0:enum_cap})"
},
{
"trigger": "gl.cullFace(${0:enum_mode})\tGLCompletion",
"contents": "gl.cullFace(${0:enum_mode})"
},
{
"trigger": "gl.frontFace(${0:enum_mode})\tGLCompletion",
"contents": "gl.frontFace(${0:enum_mode})"
},
{
"trigger": "gl.clear(${0:unit_mask})\tGLCompletion",
"contents": "gl.clear(${0:unit_mask})"
},
{
"trigger": "gl.clearColor(${0:float_red}, float_green, float_blue, float_alpha)\tGLCompletion",
"contents": "gl.clearColor(${0:float_red}, float_green, float_blue, float_alpha)"
},
{
"trigger": "gl.lineWidth(${0:float_width})\tGLCompletion",
"contents": "gl.lineWidth(${0:float_width})"
},
{
"trigger": "gl.scissor(${0:int_x}, int_y, int_width, int_height)\tGLCompletion",
"contents": "gl.scissor(${0:int_x}, int_y, int_width, int_height)"
},
{
"trigger": "gl.sampleCoverage(${0:float_value}, boolean_invert)\tGLCompletion",
"contents": "gl.sampleCoverage(${0:float_value}, boolean_invert)"
},
{
"trigger": "gl.getError()\tGLCompletion",
"contents": "gl.getError()"
},
{
"trigger": "gl.hint(${0:enum_target}, enum_mode)\tGLCompletion",
"contents": "gl.hint(${0:enum_target}, enum_mode)"
},
{
"trigger": "gl.getSupportedExtensions()\tGLCompletion",
"contents": "gl.getSupportedExtensions()"
},
{
"trigger": "gl.getExtension(${0:string_name})\tGLCompletion",
"contents": "gl.getExtension(${0:string_name})"
},
{
"trigger": "gl.getContextAttributes()\tGLCompletion",
"contents": "gl.getContextAttributes()"
},
{
"trigger": "gl.isContextLost()\tGLCompletion",
"contents": "gl.isContextLost()"
},
{
"trigger": "gl.getParameter(${0:enum_pname})\tGLCompletion",
"contents": "gl.getParameter(${0:enum_pname})"
}
]
}