This repository has been archived by the owner on Mar 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
gles2.vapi
670 lines (598 loc) · 28 KB
/
gles2.vapi
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
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
/*
* GLESv2 binding for Vala (Plain C Style)
*
* Copyright 2013 Aleksandr Palamar <void995@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
[CCode (cprefix = "", lower_case_cprefix = "", cheader_filename="GLES2/gl2.h")]
namespace GLES2
{
/*-------------------------------------------------------------------------
* Data type definitions
*-----------------------------------------------------------------------*/
[SimpleType]
public struct GLvoid {
}
[SimpleType]
public struct GLchar: char {
}
[SimpleType]
public struct GLenum: int {
}
[SimpleType]
public struct GLboolean: uint8 {
}
[SimpleType]
public struct GLbitfield: uint8 {
}
[SimpleType]
public struct GLbyte: char {
}
[SimpleType]
public struct GLshort: short {
}
[SimpleType]
public struct GLint: int {
}
[SimpleType]
public struct GLsizei: int {
}
[SimpleType]
public struct GLubyte: uchar {
}
[SimpleType]
public struct GLushort: ushort {
}
[SimpleType]
public struct GLuint: uint {
}
[SimpleType]
public struct GLfloat: float {
}
[SimpleType]
public struct GLclampf: float {
}
[SimpleType]
public struct GLfixed: int32 {
}
/* GL types for handling large vertex buffer objects */
[SimpleType]
public struct GLintptr: size_t {
}
[SimpleType]
public struct GLsizeiptr: size_t {
}
public const GLboolean GL_FALSE;
public const GLboolean GL_TRUE;
/* ClearBufferMask */
public const GLbitfield GL_DEPTH_BUFFER_BIT;
public const GLbitfield GL_STENCIL_BUFFER_BIT;
public const GLbitfield GL_COLOR_BUFFER_BIT;
/* BeginMode */
public const GLenum GL_POINTS;
public const GLenum GL_LINES;
public const GLenum GL_LINE_LOOP;
public const GLenum GL_LINE_STRIP;
public const GLenum GL_TRIANGLES;
public const GLenum GL_TRIANGLE_STRIP;
public const GLenum GL_TRIANGLE_FAN;
/* AlphaFunction (not supported in ES20) */
/* GL_NEVER */
/* GL_LESS */
/* GL_EQUAL */
/* GL_LEQUAL */
/* GL_GREATER */
/* GL_NOTEQUAL */
/* GL_GEQUAL */
/* GL_ALWAYS */
/* BlendingFactorDest */
public const GLenum GL_ZERO;
public const GLenum GL_ONE;
public const GLenum GL_SRC_COLOR;
public const GLenum GL_ONE_MINUS_SRC_COLOR;
public const GLenum GL_SRC_ALPHA;
public const GLenum GL_ONE_MINUS_SRC_ALPHA;
public const GLenum GL_DST_ALPHA;
public const GLenum GL_ONE_MINUS_DST_ALPHA;
/* BlendingFactorSrc */
/* GL_ZERO */
/* GL_ONE */
public const GLenum GL_DST_COLOR;
public const GLenum GL_ONE_MINUS_DST_COLOR;
public const GLenum GL_SRC_ALPHA_SATURATE;
/* GL_SRC_ALPHA */
/* GL_ONE_MINUS_SRC_ALPHA */
/* GL_DST_ALPHA */
/* GL_ONE_MINUS_DST_ALPHA */
/* BlendEquationSeparate */
public const GLenum GL_FUNC_ADD;
public const GLenum GL_BLEND_EQUATION;
public const GLenum GL_BLEND_EQUATION_RGB; /* same as BLEND_EQUATION */
public const GLenum GL_BLEND_EQUATION_ALPHA;
/* BlendSubtract */
public const GLenum GL_FUNC_SUBTRACT;
public const GLenum GL_FUNC_REVERSE_SUBTRACT;
/* Separate Blend Functions */
public const GLenum GL_BLEND_DST_RGB;
public const GLenum GL_BLEND_SRC_RGB;
public const GLenum GL_BLEND_DST_ALPHA;
public const GLenum GL_BLEND_SRC_ALPHA;
public const GLenum GL_CONSTANT_COLOR;
public const GLenum GL_ONE_MINUS_CONSTANT_COLOR;
public const GLenum GL_CONSTANT_ALPHA;
public const GLenum GL_ONE_MINUS_CONSTANT_ALPHA;
public const GLenum GL_BLEND_COLOR;
/* Buffer Objects */
public const GLenum GL_ARRAY_BUFFER;
public const GLenum GL_ELEMENT_ARRAY_BUFFER;
public const GLenum GL_ARRAY_BUFFER_BINDING;
public const GLenum GL_ELEMENT_ARRAY_BUFFER_BINDING;
public const GLenum GL_STREAM_DRAW;
public const GLenum GL_STATIC_DRAW;
public const GLenum GL_DYNAMIC_DRAW;
public const GLenum GL_BUFFER_SIZE;
public const GLenum GL_BUFFER_USAGE;
public const GLenum GL_CURRENT_VERTEX_ATTRIB;
/* CullFaceMode */
public const GLenum GL_FRONT;
public const GLenum GL_BACK;
public const GLenum GL_FRONT_AND_BACK;
/* DepthFunction */
/* GL_NEVER */
/* GL_LESS */
/* GL_EQUAL */
/* GL_LEQUAL */
/* GL_GREATER */
/* GL_NOTEQUAL */
/* GL_GEQUAL */
/* GL_ALWAYS */
/* EnableCap */
public const GLenum GL_TEXTURE_2D;
public const GLenum GL_CULL_FACE;
public const GLenum GL_BLEND;
public const GLenum GL_DITHER;
public const GLenum GL_STENCIL_TEST;
public const GLenum GL_DEPTH_TEST;
public const GLenum GL_SCISSOR_TEST;
public const GLenum GL_POLYGON_OFFSET_FILL;
public const GLenum GL_SAMPLE_ALPHA_TO_COVERAGE;
public const GLenum GL_SAMPLE_COVERAGE;
/* ErrorCode */
public const GLenum GL_NO_ERROR;
public const GLenum GL_INVALID_ENUM;
public const GLenum GL_INVALID_VALUE;
public const GLenum GL_INVALID_OPERATION;
public const GLenum GL_OUT_OF_MEMORY;
/* FrontFaceDirection */
public const GLenum GL_CW;
public const GLenum GL_CCW;
/* GetPName */
public const GLenum GL_LINE_WIDTH;
public const GLenum GL_ALIASED_POINT_SIZE_RANGE;
public const GLenum GL_ALIASED_LINE_WIDTH_RANGE;
public const GLenum GL_CULL_FACE_MODE;
public const GLenum GL_FRONT_FACE;
public const GLenum GL_DEPTH_RANGE;
public const GLenum GL_DEPTH_WRITEMASK;
public const GLenum GL_DEPTH_CLEAR_VALUE;
public const GLenum GL_DEPTH_FUNC;
public const GLenum GL_STENCIL_CLEAR_VALUE;
public const GLenum GL_STENCIL_FUNC;
public const GLenum GL_STENCIL_FAIL;
public const GLenum GL_STENCIL_PASS_DEPTH_FAIL;
public const GLenum GL_STENCIL_PASS_DEPTH_PASS;
public const GLenum GL_STENCIL_REF;
public const GLenum GL_STENCIL_VALUE_MASK;
public const GLenum GL_STENCIL_WRITEMASK;
public const GLenum GL_STENCIL_BACK_FUNC;
public const GLenum GL_STENCIL_BACK_FAIL;
public const GLenum GL_STENCIL_BACK_PASS_DEPTH_FAIL;
public const GLenum GL_STENCIL_BACK_PASS_DEPTH_PASS;
public const GLenum GL_STENCIL_BACK_REF;
public const GLenum GL_STENCIL_BACK_VALUE_MASK;
public const GLenum GL_STENCIL_BACK_WRITEMASK;
public const GLenum GL_VIEWPORT;
public const GLenum GL_SCISSOR_BOX;
/* GL_SCISSOR_TEST */
public const GLenum GL_COLOR_CLEAR_VALUE;
public const GLenum GL_COLOR_WRITEMASK;
public const GLenum GL_UNPACK_ALIGNMENT;
public const GLenum GL_PACK_ALIGNMENT;
public const GLenum GL_MAX_TEXTURE_SIZE;
public const GLenum GL_MAX_VIEWPORT_DIMS;
public const GLenum GL_SUBPIXEL_BITS;
public const GLenum GL_RED_BITS;
public const GLenum GL_GREEN_BITS;
public const GLenum GL_BLUE_BITS;
public const GLenum GL_ALPHA_BITS;
public const GLenum GL_DEPTH_BITS;
public const GLenum GL_STENCIL_BITS;
public const GLenum GL_POLYGON_OFFSET_UNITS;
/* GL_POLYGON_OFFSET_FILL */
public const GLenum GL_POLYGON_OFFSET_FACTOR;
public const GLenum GL_TEXTURE_BINDING_2D;
public const GLenum GL_SAMPLE_BUFFERS;
public const GLenum GL_SAMPLES;
public const GLenum GL_SAMPLE_COVERAGE_VALUE;
public const GLenum GL_SAMPLE_COVERAGE_INVERT;
/* GetTextureParameter */
/* GL_TEXTURE_MAG_FILTER */
/* GL_TEXTURE_MIN_FILTER */
/* GL_TEXTURE_WRAP_S */
/* GL_TEXTURE_WRAP_T */
public const GLenum GL_NUM_COMPRESSED_TEXTURE_FORMATS;
public const GLenum GL_COMPRESSED_TEXTURE_FORMATS;
/* HintMode */
public const GLenum GL_DONT_CARE;
public const GLenum GL_FASTEST;
public const GLenum GL_NICEST;
/* HintTarget */
public const GLenum GL_GENERATE_MIPMAP_HINT;
/* DataType */
public const GLenum GL_BYTE;
public const GLenum GL_UNSIGNED_BYTE;
public const GLenum GL_SHORT;
public const GLenum GL_UNSIGNED_SHORT;
public const GLenum GL_INT;
public const GLenum GL_UNSIGNED_INT;
public const GLenum GL_FLOAT;
public const GLenum GL_FIXED;
/* PixelFormat */
public const GLenum GL_DEPTH_COMPONENT;
public const GLenum GL_ALPHA;
public const GLenum GL_RGB;
public const GLenum GL_RGBA;
public const GLenum GL_LUMINANCE;
public const GLenum GL_LUMINANCE_ALPHA;
/* PixelType */
/* GL_UNSIGNED_BYTE */
public const GLenum GL_UNSIGNED_SHORT_4_4_4_4;
public const GLenum GL_UNSIGNED_SHORT_5_5_5_1;
public const GLenum GL_UNSIGNED_SHORT_5_6_5;
/* Shaders */
public const GLenum GL_FRAGMENT_SHADER;
public const GLenum GL_VERTEX_SHADER;
public const GLenum GL_MAX_VERTEX_ATTRIBS;
public const GLenum GL_MAX_VERTEX_UNIFORM_VECTORS;
public const GLenum GL_MAX_VARYING_VECTORS;
public const GLenum GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS;
public const GLenum GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS;
public const GLenum GL_MAX_TEXTURE_IMAGE_UNITS;
public const GLenum GL_MAX_FRAGMENT_UNIFORM_VECTORS;
public const GLenum GL_SHADER_TYPE;
public const GLenum GL_DELETE_STATUS;
public const GLenum GL_LINK_STATUS;
public const GLenum GL_VALIDATE_STATUS;
public const GLenum GL_ATTACHED_SHADERS;
public const GLenum GL_ACTIVE_UNIFORMS;
public const GLenum GL_ACTIVE_UNIFORM_MAX_LENGTH;
public const GLenum GL_ACTIVE_ATTRIBUTES;
public const GLenum GL_ACTIVE_ATTRIBUTE_MAX_LENGTH;
public const GLenum GL_SHADING_LANGUAGE_VERSION;
public const GLenum GL_CURRENT_PROGRAM;
/* StencilFunction */
public const GLenum GL_NEVER;
public const GLenum GL_LESS;
public const GLenum GL_EQUAL;
public const GLenum GL_LEQUAL;
public const GLenum GL_GREATER;
public const GLenum GL_NOTEQUAL;
public const GLenum GL_GEQUAL;
public const GLenum GL_ALWAYS;
/* StencilOp */
/* GL_ZERO */
public const GLenum GL_KEEP;
public const GLenum GL_REPLACE;
public const GLenum GL_INCR;
public const GLenum GL_DECR;
public const GLenum GL_INVERT;
public const GLenum GL_INCR_WRAP;
public const GLenum GL_DECR_WRAP;
/* StringName */
public const GLenum GL_VENDOR;
public const GLenum GL_RENDERER;
public const GLenum GL_VERSION;
public const GLenum GL_EXTENSIONS;
/* TextureMagFilter */
public const GLenum GL_NEAREST;
public const GLenum GL_LINEAR;
/* TextureMinFilter */
/* GL_NEAREST */
/* GL_LINEAR */
public const GLenum GL_NEAREST_MIPMAP_NEAREST;
public const GLenum GL_LINEAR_MIPMAP_NEAREST;
public const GLenum GL_NEAREST_MIPMAP_LINEAR;
public const GLenum GL_LINEAR_MIPMAP_LINEAR;
/* TextureParameterName */
public const GLenum GL_TEXTURE_MAG_FILTER;
public const GLenum GL_TEXTURE_MIN_FILTER;
public const GLenum GL_TEXTURE_WRAP_S;
public const GLenum GL_TEXTURE_WRAP_T;
/* TextureTarget */
/* GL_TEXTURE_2D */
public const GLenum GL_TEXTURE;
public const GLenum GL_TEXTURE_CUBE_MAP;
public const GLenum GL_TEXTURE_BINDING_CUBE_MAP;
public const GLenum GL_TEXTURE_CUBE_MAP_POSITIVE_X;
public const GLenum GL_TEXTURE_CUBE_MAP_NEGATIVE_X;
public const GLenum GL_TEXTURE_CUBE_MAP_POSITIVE_Y;
public const GLenum GL_TEXTURE_CUBE_MAP_NEGATIVE_Y;
public const GLenum GL_TEXTURE_CUBE_MAP_POSITIVE_Z;
public const GLenum GL_TEXTURE_CUBE_MAP_NEGATIVE_Z;
public const GLenum GL_MAX_CUBE_MAP_TEXTURE_SIZE;
/* TextureUnit */
public const GLenum GL_TEXTURE0;
public const GLenum GL_TEXTURE1;
public const GLenum GL_TEXTURE2;
public const GLenum GL_TEXTURE3;
public const GLenum GL_TEXTURE4;
public const GLenum GL_TEXTURE5;
public const GLenum GL_TEXTURE6;
public const GLenum GL_TEXTURE7;
public const GLenum GL_TEXTURE8;
public const GLenum GL_TEXTURE9;
public const GLenum GL_TEXTURE10;
public const GLenum GL_TEXTURE11;
public const GLenum GL_TEXTURE12;
public const GLenum GL_TEXTURE13;
public const GLenum GL_TEXTURE14;
public const GLenum GL_TEXTURE15;
public const GLenum GL_TEXTURE16;
public const GLenum GL_TEXTURE17;
public const GLenum GL_TEXTURE18;
public const GLenum GL_TEXTURE19;
public const GLenum GL_TEXTURE20;
public const GLenum GL_TEXTURE21;
public const GLenum GL_TEXTURE22;
public const GLenum GL_TEXTURE23;
public const GLenum GL_TEXTURE24;
public const GLenum GL_TEXTURE25;
public const GLenum GL_TEXTURE26;
public const GLenum GL_TEXTURE27;
public const GLenum GL_TEXTURE28;
public const GLenum GL_TEXTURE29;
public const GLenum GL_TEXTURE30;
public const GLenum GL_TEXTURE31;
public const GLenum GL_ACTIVE_TEXTURE;
/* TextureWrapMode */
public const GLenum GL_REPEAT;
public const GLenum GL_CLAMP_TO_EDGE;
public const GLenum GL_MIRRORED_REPEAT;
/* Uniform Types */
public const GLenum GL_FLOAT_VEC2;
public const GLenum GL_FLOAT_VEC3;
public const GLenum GL_FLOAT_VEC4;
public const GLenum GL_INT_VEC2;
public const GLenum GL_INT_VEC3;
public const GLenum GL_INT_VEC4;
public const GLenum GL_BOOL;
public const GLenum GL_BOOL_VEC2;
public const GLenum GL_BOOL_VEC3;
public const GLenum GL_BOOL_VEC4;
public const GLenum GL_FLOAT_MAT2;
public const GLenum GL_FLOAT_MAT3;
public const GLenum GL_FLOAT_MAT4;
public const GLenum GL_SAMPLER_2D;
public const GLenum GL_SAMPLER_CUBE;
/* Vertex Arrays */
public const GLenum GL_VERTEX_ATTRIB_ARRAY_ENABLED;
public const GLenum GL_VERTEX_ATTRIB_ARRAY_SIZE;
public const GLenum GL_VERTEX_ATTRIB_ARRAY_STRIDE;
public const GLenum GL_VERTEX_ATTRIB_ARRAY_TYPE;
public const GLenum GL_VERTEX_ATTRIB_ARRAY_NORMALIZED;
public const GLenum GL_VERTEX_ATTRIB_ARRAY_POINTER;
public const GLenum GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING;
/* Read Format */
public const GLenum GL_IMPLEMENTATION_COLOR_READ_TYPE;
public const GLenum GL_IMPLEMENTATION_COLOR_READ_FORMAT;
/* Shader Source */
public const GLenum GL_COMPILE_STATUS;
public const GLenum GL_INFO_LOG_LENGTH;
public const GLenum GL_SHADER_SOURCE_LENGTH;
public const GLenum GL_SHADER_COMPILER;
/* Shader Binary */
public const GLenum GL_SHADER_BINARY_FORMATS;
public const GLenum GL_NUM_SHADER_BINARY_FORMATS;
/* Shader Precision-Specified Types */
public const GLenum GL_LOW_FLOAT;
public const GLenum GL_MEDIUM_FLOAT;
public const GLenum GL_HIGH_FLOAT;
public const GLenum GL_LOW_INT;
public const GLenum GL_MEDIUM_INT;
public const GLenum GL_HIGH_INT;
/* Framebuffer Object. */
public const GLenum GL_FRAMEBUFFER;
public const GLenum GL_RENDERBUFFER;
public const GLenum GL_RGBA4;
public const GLenum GL_RGB5_A1;
public const GLenum GL_RGB565;
public const GLenum GL_DEPTH_COMPONENT16;
public const GLenum GL_STENCIL_INDEX8;
public const GLenum GL_RENDERBUFFER_WIDTH;
public const GLenum GL_RENDERBUFFER_HEIGHT;
public const GLenum GL_RENDERBUFFER_INTERNAL_FORMAT;
public const GLenum GL_RENDERBUFFER_RED_SIZE;
public const GLenum GL_RENDERBUFFER_GREEN_SIZE;
public const GLenum GL_RENDERBUFFER_BLUE_SIZE;
public const GLenum GL_RENDERBUFFER_ALPHA_SIZE;
public const GLenum GL_RENDERBUFFER_DEPTH_SIZE;
public const GLenum GL_RENDERBUFFER_STENCIL_SIZE;
public const GLenum GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE;
public const GLenum GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME;
public const GLenum GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL;
public const GLenum GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE;
public const GLenum GL_COLOR_ATTACHMENT0;
public const GLenum GL_DEPTH_ATTACHMENT;
public const GLenum GL_STENCIL_ATTACHMENT;
public const GLenum GL_NONE;
public const GLenum GL_FRAMEBUFFER_COMPLETE;
public const GLenum GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT;
public const GLenum GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT;
public const GLenum GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS;
public const GLenum GL_FRAMEBUFFER_UNSUPPORTED;
public const GLenum GL_FRAMEBUFFER_BINDING;
public const GLenum GL_RENDERBUFFER_BINDING;
public const GLenum GL_MAX_RENDERBUFFER_SIZE;
public const GLenum GL_INVALID_FRAMEBUFFER_OPERATION;
/*-------------------------------------------------------------------------
* GL core functions.
*-----------------------------------------------------------------------*/
public void glActiveTexture (GLenum texture);
public void glAttachShader (GLuint program, GLuint shader);
public void glBindAttribLocation (GLuint program, GLuint index, string name);
public void glBindBuffer (GLenum target, GLuint buffer);
public void glBindFramebuffer (GLenum target, GLuint framebuffer);
public void glBindRenderbuffer (GLenum target, GLuint renderbuffer);
public void glBindTexture (GLenum target, GLuint texture);
public void glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
public void glBlendEquation ( GLenum mode );
public void glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
public void glBlendFunc (GLenum sfactor, GLenum dfactor);
public void glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
public void glBufferData (GLenum target, GLsizeiptr size, GLvoid* data, GLenum usage);
public void glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid* data);
public GLenum glCheckFramebufferStatus (GLenum target);
public void glClear (GLbitfield mask);
public void glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
public void glClearDepthf (GLclampf depth);
public void glClearStencil (GLint s);
public void glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
public void glCompileShader (GLuint shader);
public void glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, GLvoid* data);
public void glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, GLvoid* data);
public void glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
public void glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
public GLuint glCreateProgram ();
public GLuint glCreateShader (GLenum type);
public void glCullFace (GLenum mode);
public void glDeleteBuffers (GLsizei n, GLuint* buffers);
public void glDeleteFramebuffers (GLsizei n, GLuint* framebuffers);
public void glDeleteProgram (GLuint program);
public void glDeleteRenderbuffers (GLsizei n, GLuint* renderbuffers);
public void glDeleteShader (GLuint shader);
public void glDeleteTextures (GLsizei n, GLuint* textures);
public void glDepthFunc (GLenum func);
public void glDepthMask (GLboolean flag);
public void glDepthRangef (GLclampf zNear, GLclampf zFar);
public void glDetachShader (GLuint program, GLuint shader);
public void glDisable (GLenum cap);
public void glDisableVertexAttribArray (GLuint index);
public void glDrawArrays (GLenum mode, GLint first, GLsizei count);
public void glDrawElements (GLenum mode, GLsizei count, GLenum type, GLvoid* indices);
public void glEnable (GLenum cap);
public void glEnableVertexAttribArray (GLuint index);
public void glFinish ();
public void glFlush ();
public void glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
public void glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
public void glFrontFace (GLenum mode);
public void glGenBuffers (GLsizei n, GLuint* buffers);
public void glGenerateMipmap (GLenum target);
public void glGenFramebuffers (GLsizei n, GLuint* framebuffers);
public void glGenRenderbuffers (GLsizei n, GLuint* renderbuffers);
public void glGenTextures (GLsizei n, GLuint* textures);
public void glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name);
public void glGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name);
public void glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders);
public int glGetAttribLocation (GLuint program, string name);
public void glGetBooleanv (GLenum pname, GLboolean* params);
public void glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params);
public GLenum glGetError ();
public void glGetFloatv (GLenum pname, GLfloat* params);
public void glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params);
public void glGetIntegerv (GLenum pname, GLint* params);
public void glGetProgramiv (GLuint program, GLenum pname, GLint* params);
public void glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog);
public void glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params);
public void glGetShaderiv (GLuint shader, GLenum pname, GLint* params);
public void glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog);
public void glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision);
public void glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source);
public string glGetString (GLenum name);
public void glGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params);
public void glGetTexParameteriv (GLenum target, GLenum pname, GLint* params);
public void glGetUniformfv (GLuint program, GLint location, GLfloat* params);
public void glGetUniformiv (GLuint program, GLint location, GLint* params);
public int glGetUniformLocation (GLuint program, string name);
public void glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params);
public void glGetVertexAttribiv (GLuint index, GLenum pname, GLint* params);
public void glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid** pointer);
public void glHint (GLenum target, GLenum mode);
public GLboolean glIsBuffer (GLuint buffer);
public GLboolean glIsEnabled (GLenum cap);
public GLboolean glIsFramebuffer (GLuint framebuffer);
public GLboolean glIsProgram (GLuint program);
public GLboolean glIsRenderbuffer (GLuint renderbuffer);
public GLboolean glIsShader (GLuint shader);
public GLboolean glIsTexture (GLuint texture);
public void glLineWidth (GLfloat width);
public void glLinkProgram (GLuint program);
public void glPixelStorei (GLenum pname, GLint param);
public void glPolygonOffset (GLfloat factor, GLfloat units);
public void glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void* pixels);
public void glReleaseShaderCompiler ();
public void glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
public void glSampleCoverage (GLclampf value, GLboolean invert);
public void glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
public void glShaderBinary (GLsizei n, GLuint* shaders, GLenum binaryformat, GLvoid* binary, GLsizei length);
public void glShaderSource (GLuint shader, GLsizei count, out string source, GLint* length);
public void glStencilFunc (GLenum func, GLint @ref, GLuint mask);
public void glStencilFuncSeparate (GLenum face, GLenum func, GLint @ref, GLuint mask);
public void glStencilMask (GLuint mask);
public void glStencilMaskSeparate (GLenum face, GLuint mask);
public void glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
public void glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass);
public void glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, GLvoid* pixels);
public void glTexParameterf (GLenum target, GLenum pname, GLfloat param);
public void glTexParameterfv (GLenum target, GLenum pname, GLfloat* params);
public void glTexParameteri (GLenum target, GLenum pname, GLint param);
public void glTexParameteriv (GLenum target, GLenum pname, GLint* params);
public void glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels);
public void glUniform1f (GLint location, GLfloat x);
public void glUniform1fv (GLint location, GLsizei count, GLfloat* v);
public void glUniform1i (GLint location, GLint x);
public void glUniform1iv (GLint location, GLsizei count, GLint* v);
public void glUniform2f (GLint location, GLfloat x, GLfloat y);
public void glUniform2fv (GLint location, GLsizei count, GLfloat* v);
public void glUniform2i (GLint location, GLint x, GLint y);
public void glUniform2iv (GLint location, GLsizei count, GLint* v);
public void glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z);
public void glUniform3fv (GLint location, GLsizei count, GLfloat* v);
public void glUniform3i (GLint location, GLint x, GLint y, GLint z);
public void glUniform3iv (GLint location, GLsizei count, GLint* v);
public void glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
public void glUniform4fv (GLint location, GLsizei count, GLfloat* v);
public void glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w);
public void glUniform4iv (GLint location, GLsizei count, GLint* v);
public void glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, GLfloat* value);
public void glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, GLfloat* value);
public void glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, GLfloat* value);
public void glUseProgram (GLuint program);
public void glValidateProgram (GLuint program);
public void glVertexAttrib1f (GLuint indx, GLfloat x);
public void glVertexAttrib1fv (GLuint indx, GLfloat* values);
public void glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y);
public void glVertexAttrib2fv (GLuint indx, GLfloat* values);
public void glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z);
public void glVertexAttrib3fv (GLuint indx, GLfloat* values);
public void glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
public void glVertexAttrib4fv (GLuint indx, GLfloat* values);
public void glVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, void* ptr);
public void glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
}