GLES20.java revision 58d80c53c0aa2716b9bb6efa64111e1528cef2f8
1/*
2**
3** Copyright 2009, The Android Open Source Project
4**
5** Licensed under the Apache License, Version 2.0 (the "License");
6** you may not use this file except in compliance with the License.
7** You may obtain a copy of the License at
8**
9**     http://www.apache.org/licenses/LICENSE-2.0
10**
11** Unless required by applicable law or agreed to in writing, software
12** distributed under the License is distributed on an "AS IS" BASIS,
13** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14** See the License for the specific language governing permissions and
15** limitations under the License.
16*/
17
18// This source file is automatically generated
19
20package android.opengl;
21
22/** OpenGL ES 2.0
23 */
24public class GLES20 {
25    public static final int GL_ACTIVE_TEXTURE                          = 0x84E0;
26    public static final int GL_DEPTH_BUFFER_BIT                        = 0x00000100;
27    public static final int GL_STENCIL_BUFFER_BIT                      = 0x00000400;
28    public static final int GL_COLOR_BUFFER_BIT                        = 0x00004000;
29    public static final int GL_FALSE                                   = 0;
30    public static final int GL_TRUE                                    = 1;
31    public static final int GL_POINTS                                  = 0x0000;
32    public static final int GL_LINES                                   = 0x0001;
33    public static final int GL_LINE_LOOP                               = 0x0002;
34    public static final int GL_LINE_STRIP                              = 0x0003;
35    public static final int GL_TRIANGLES                               = 0x0004;
36    public static final int GL_TRIANGLE_STRIP                          = 0x0005;
37    public static final int GL_TRIANGLE_FAN                            = 0x0006;
38    public static final int GL_ZERO                                    = 0;
39    public static final int GL_ONE                                     = 1;
40    public static final int GL_SRC_COLOR                               = 0x0300;
41    public static final int GL_ONE_MINUS_SRC_COLOR                     = 0x0301;
42    public static final int GL_SRC_ALPHA                               = 0x0302;
43    public static final int GL_ONE_MINUS_SRC_ALPHA                     = 0x0303;
44    public static final int GL_DST_ALPHA                               = 0x0304;
45    public static final int GL_ONE_MINUS_DST_ALPHA                     = 0x0305;
46    public static final int GL_DST_COLOR                               = 0x0306;
47    public static final int GL_ONE_MINUS_DST_COLOR                     = 0x0307;
48    public static final int GL_SRC_ALPHA_SATURATE                      = 0x0308;
49    public static final int GL_FUNC_ADD                                = 0x8006;
50    public static final int GL_BLEND_EQUATION                          = 0x8009;
51    public static final int GL_BLEND_EQUATION_RGB                      = 0x8009;   /* same as BLEND_EQUATION */
52    public static final int GL_BLEND_EQUATION_ALPHA                    = 0x883D;
53    public static final int GL_FUNC_SUBTRACT                           = 0x800A;
54    public static final int GL_FUNC_REVERSE_SUBTRACT                   = 0x800B;
55    public static final int GL_BLEND_DST_RGB                           = 0x80C8;
56    public static final int GL_BLEND_SRC_RGB                           = 0x80C9;
57    public static final int GL_BLEND_DST_ALPHA                         = 0x80CA;
58    public static final int GL_BLEND_SRC_ALPHA                         = 0x80CB;
59    public static final int GL_CONSTANT_COLOR                          = 0x8001;
60    public static final int GL_ONE_MINUS_CONSTANT_COLOR                = 0x8002;
61    public static final int GL_CONSTANT_ALPHA                          = 0x8003;
62    public static final int GL_ONE_MINUS_CONSTANT_ALPHA                = 0x8004;
63    public static final int GL_BLEND_COLOR                             = 0x8005;
64    public static final int GL_ARRAY_BUFFER                            = 0x8892;
65    public static final int GL_ELEMENT_ARRAY_BUFFER                    = 0x8893;
66    public static final int GL_ARRAY_BUFFER_BINDING                    = 0x8894;
67    public static final int GL_ELEMENT_ARRAY_BUFFER_BINDING            = 0x8895;
68    public static final int GL_STREAM_DRAW                             = 0x88E0;
69    public static final int GL_STATIC_DRAW                             = 0x88E4;
70    public static final int GL_DYNAMIC_DRAW                            = 0x88E8;
71    public static final int GL_BUFFER_SIZE                             = 0x8764;
72    public static final int GL_BUFFER_USAGE                            = 0x8765;
73    public static final int GL_CURRENT_VERTEX_ATTRIB                   = 0x8626;
74    public static final int GL_FRONT                                   = 0x0404;
75    public static final int GL_BACK                                    = 0x0405;
76    public static final int GL_FRONT_AND_BACK                          = 0x0408;
77    public static final int GL_TEXTURE_2D                              = 0x0DE1;
78    public static final int GL_CULL_FACE                               = 0x0B44;
79    public static final int GL_BLEND                                   = 0x0BE2;
80    public static final int GL_DITHER                                  = 0x0BD0;
81    public static final int GL_STENCIL_TEST                            = 0x0B90;
82    public static final int GL_DEPTH_TEST                              = 0x0B71;
83    public static final int GL_SCISSOR_TEST                            = 0x0C11;
84    public static final int GL_POLYGON_OFFSET_FILL                     = 0x8037;
85    public static final int GL_SAMPLE_ALPHA_TO_COVERAGE                = 0x809E;
86    public static final int GL_SAMPLE_COVERAGE                         = 0x80A0;
87    public static final int GL_NO_ERROR                                = 0;
88    public static final int GL_INVALID_ENUM                            = 0x0500;
89    public static final int GL_INVALID_VALUE                           = 0x0501;
90    public static final int GL_INVALID_OPERATION                       = 0x0502;
91    public static final int GL_OUT_OF_MEMORY                           = 0x0505;
92    public static final int GL_CW                                      = 0x0900;
93    public static final int GL_CCW                                     = 0x0901;
94    public static final int GL_LINE_WIDTH                              = 0x0B21;
95    public static final int GL_ALIASED_POINT_SIZE_RANGE                = 0x846D;
96    public static final int GL_ALIASED_LINE_WIDTH_RANGE                = 0x846E;
97    public static final int GL_CULL_FACE_MODE                          = 0x0B45;
98    public static final int GL_FRONT_FACE                              = 0x0B46;
99    public static final int GL_DEPTH_RANGE                             = 0x0B70;
100    public static final int GL_DEPTH_WRITEMASK                         = 0x0B72;
101    public static final int GL_DEPTH_CLEAR_VALUE                       = 0x0B73;
102    public static final int GL_DEPTH_FUNC                              = 0x0B74;
103    public static final int GL_STENCIL_CLEAR_VALUE                     = 0x0B91;
104    public static final int GL_STENCIL_FUNC                            = 0x0B92;
105    public static final int GL_STENCIL_FAIL                            = 0x0B94;
106    public static final int GL_STENCIL_PASS_DEPTH_FAIL                 = 0x0B95;
107    public static final int GL_STENCIL_PASS_DEPTH_PASS                 = 0x0B96;
108    public static final int GL_STENCIL_REF                             = 0x0B97;
109    public static final int GL_STENCIL_VALUE_MASK                      = 0x0B93;
110    public static final int GL_STENCIL_WRITEMASK                       = 0x0B98;
111    public static final int GL_STENCIL_BACK_FUNC                       = 0x8800;
112    public static final int GL_STENCIL_BACK_FAIL                       = 0x8801;
113    public static final int GL_STENCIL_BACK_PASS_DEPTH_FAIL            = 0x8802;
114    public static final int GL_STENCIL_BACK_PASS_DEPTH_PASS            = 0x8803;
115    public static final int GL_STENCIL_BACK_REF                        = 0x8CA3;
116    public static final int GL_STENCIL_BACK_VALUE_MASK                 = 0x8CA4;
117    public static final int GL_STENCIL_BACK_WRITEMASK                  = 0x8CA5;
118    public static final int GL_VIEWPORT                                = 0x0BA2;
119    public static final int GL_SCISSOR_BOX                             = 0x0C10;
120    public static final int GL_COLOR_CLEAR_VALUE                       = 0x0C22;
121    public static final int GL_COLOR_WRITEMASK                         = 0x0C23;
122    public static final int GL_UNPACK_ALIGNMENT                        = 0x0CF5;
123    public static final int GL_PACK_ALIGNMENT                          = 0x0D05;
124    public static final int GL_MAX_TEXTURE_SIZE                        = 0x0D33;
125    public static final int GL_MAX_VIEWPORT_DIMS                       = 0x0D3A;
126    public static final int GL_SUBPIXEL_BITS                           = 0x0D50;
127    public static final int GL_RED_BITS                                = 0x0D52;
128    public static final int GL_GREEN_BITS                              = 0x0D53;
129    public static final int GL_BLUE_BITS                               = 0x0D54;
130    public static final int GL_ALPHA_BITS                              = 0x0D55;
131    public static final int GL_DEPTH_BITS                              = 0x0D56;
132    public static final int GL_STENCIL_BITS                            = 0x0D57;
133    public static final int GL_POLYGON_OFFSET_UNITS                    = 0x2A00;
134    public static final int GL_POLYGON_OFFSET_FACTOR                   = 0x8038;
135    public static final int GL_TEXTURE_BINDING_2D                      = 0x8069;
136    public static final int GL_SAMPLE_BUFFERS                          = 0x80A8;
137    public static final int GL_SAMPLES                                 = 0x80A9;
138    public static final int GL_SAMPLE_COVERAGE_VALUE                   = 0x80AA;
139    public static final int GL_SAMPLE_COVERAGE_INVERT                  = 0x80AB;
140    public static final int GL_NUM_COMPRESSED_TEXTURE_FORMATS          = 0x86A2;
141    public static final int GL_COMPRESSED_TEXTURE_FORMATS              = 0x86A3;
142    public static final int GL_DONT_CARE                               = 0x1100;
143    public static final int GL_FASTEST                                 = 0x1101;
144    public static final int GL_NICEST                                  = 0x1102;
145    public static final int GL_GENERATE_MIPMAP_HINT                    = 0x8192;
146    public static final int GL_BYTE                                    = 0x1400;
147    public static final int GL_UNSIGNED_BYTE                           = 0x1401;
148    public static final int GL_SHORT                                   = 0x1402;
149    public static final int GL_UNSIGNED_SHORT                          = 0x1403;
150    public static final int GL_INT                                     = 0x1404;
151    public static final int GL_UNSIGNED_INT                            = 0x1405;
152    public static final int GL_FLOAT                                   = 0x1406;
153    public static final int GL_FIXED                                   = 0x140C;
154    public static final int GL_DEPTH_COMPONENT                         = 0x1902;
155    public static final int GL_ALPHA                                   = 0x1906;
156    public static final int GL_RGB                                     = 0x1907;
157    public static final int GL_RGBA                                    = 0x1908;
158    public static final int GL_LUMINANCE                               = 0x1909;
159    public static final int GL_LUMINANCE_ALPHA                         = 0x190A;
160    public static final int GL_UNSIGNED_SHORT_4_4_4_4                  = 0x8033;
161    public static final int GL_UNSIGNED_SHORT_5_5_5_1                  = 0x8034;
162    public static final int GL_UNSIGNED_SHORT_5_6_5                    = 0x8363;
163    public static final int GL_FRAGMENT_SHADER                           = 0x8B30;
164    public static final int GL_VERTEX_SHADER                             = 0x8B31;
165    public static final int GL_MAX_VERTEX_ATTRIBS                        = 0x8869;
166    public static final int GL_MAX_VERTEX_UNIFORM_VECTORS                = 0x8DFB;
167    public static final int GL_MAX_VARYING_VECTORS                       = 0x8DFC;
168    public static final int GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS          = 0x8B4D;
169    public static final int GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS            = 0x8B4C;
170    public static final int GL_MAX_TEXTURE_IMAGE_UNITS                   = 0x8872;
171    public static final int GL_MAX_FRAGMENT_UNIFORM_VECTORS              = 0x8DFD;
172    public static final int GL_SHADER_TYPE                               = 0x8B4F;
173    public static final int GL_DELETE_STATUS                             = 0x8B80;
174    public static final int GL_LINK_STATUS                               = 0x8B82;
175    public static final int GL_VALIDATE_STATUS                           = 0x8B83;
176    public static final int GL_ATTACHED_SHADERS                          = 0x8B85;
177    public static final int GL_ACTIVE_UNIFORMS                           = 0x8B86;
178    public static final int GL_ACTIVE_UNIFORM_MAX_LENGTH                 = 0x8B87;
179    public static final int GL_ACTIVE_ATTRIBUTES                         = 0x8B89;
180    public static final int GL_ACTIVE_ATTRIBUTE_MAX_LENGTH               = 0x8B8A;
181    public static final int GL_SHADING_LANGUAGE_VERSION                  = 0x8B8C;
182    public static final int GL_CURRENT_PROGRAM                           = 0x8B8D;
183    public static final int GL_NEVER                                   = 0x0200;
184    public static final int GL_LESS                                    = 0x0201;
185    public static final int GL_EQUAL                                   = 0x0202;
186    public static final int GL_LEQUAL                                  = 0x0203;
187    public static final int GL_GREATER                                 = 0x0204;
188    public static final int GL_NOTEQUAL                                = 0x0205;
189    public static final int GL_GEQUAL                                  = 0x0206;
190    public static final int GL_ALWAYS                                  = 0x0207;
191    public static final int GL_KEEP                                    = 0x1E00;
192    public static final int GL_REPLACE                                 = 0x1E01;
193    public static final int GL_INCR                                    = 0x1E02;
194    public static final int GL_DECR                                    = 0x1E03;
195    public static final int GL_INVERT                                  = 0x150A;
196    public static final int GL_INCR_WRAP                               = 0x8507;
197    public static final int GL_DECR_WRAP                               = 0x8508;
198    public static final int GL_VENDOR                                  = 0x1F00;
199    public static final int GL_RENDERER                                = 0x1F01;
200    public static final int GL_VERSION                                 = 0x1F02;
201    public static final int GL_EXTENSIONS                              = 0x1F03;
202    public static final int GL_NEAREST                                 = 0x2600;
203    public static final int GL_LINEAR                                  = 0x2601;
204    public static final int GL_NEAREST_MIPMAP_NEAREST                  = 0x2700;
205    public static final int GL_LINEAR_MIPMAP_NEAREST                   = 0x2701;
206    public static final int GL_NEAREST_MIPMAP_LINEAR                   = 0x2702;
207    public static final int GL_LINEAR_MIPMAP_LINEAR                    = 0x2703;
208    public static final int GL_TEXTURE_MAG_FILTER                      = 0x2800;
209    public static final int GL_TEXTURE_MIN_FILTER                      = 0x2801;
210    public static final int GL_TEXTURE_WRAP_S                          = 0x2802;
211    public static final int GL_TEXTURE_WRAP_T                          = 0x2803;
212    public static final int GL_TEXTURE                                 = 0x1702;
213    public static final int GL_TEXTURE_CUBE_MAP                        = 0x8513;
214    public static final int GL_TEXTURE_BINDING_CUBE_MAP                = 0x8514;
215    public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_X             = 0x8515;
216    public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_X             = 0x8516;
217    public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Y             = 0x8517;
218    public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y             = 0x8518;
219    public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Z             = 0x8519;
220    public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z             = 0x851A;
221    public static final int GL_MAX_CUBE_MAP_TEXTURE_SIZE               = 0x851C;
222    public static final int GL_TEXTURE0                                = 0x84C0;
223    public static final int GL_TEXTURE1                                = 0x84C1;
224    public static final int GL_TEXTURE2                                = 0x84C2;
225    public static final int GL_TEXTURE3                                = 0x84C3;
226    public static final int GL_TEXTURE4                                = 0x84C4;
227    public static final int GL_TEXTURE5                                = 0x84C5;
228    public static final int GL_TEXTURE6                                = 0x84C6;
229    public static final int GL_TEXTURE7                                = 0x84C7;
230    public static final int GL_TEXTURE8                                = 0x84C8;
231    public static final int GL_TEXTURE9                                = 0x84C9;
232    public static final int GL_TEXTURE10                               = 0x84CA;
233    public static final int GL_TEXTURE11                               = 0x84CB;
234    public static final int GL_TEXTURE12                               = 0x84CC;
235    public static final int GL_TEXTURE13                               = 0x84CD;
236    public static final int GL_TEXTURE14                               = 0x84CE;
237    public static final int GL_TEXTURE15                               = 0x84CF;
238    public static final int GL_TEXTURE16                               = 0x84D0;
239    public static final int GL_TEXTURE17                               = 0x84D1;
240    public static final int GL_TEXTURE18                               = 0x84D2;
241    public static final int GL_TEXTURE19                               = 0x84D3;
242    public static final int GL_TEXTURE20                               = 0x84D4;
243    public static final int GL_TEXTURE21                               = 0x84D5;
244    public static final int GL_TEXTURE22                               = 0x84D6;
245    public static final int GL_TEXTURE23                               = 0x84D7;
246    public static final int GL_TEXTURE24                               = 0x84D8;
247    public static final int GL_TEXTURE25                               = 0x84D9;
248    public static final int GL_TEXTURE26                               = 0x84DA;
249    public static final int GL_TEXTURE27                               = 0x84DB;
250    public static final int GL_TEXTURE28                               = 0x84DC;
251    public static final int GL_TEXTURE29                               = 0x84DD;
252    public static final int GL_TEXTURE30                               = 0x84DE;
253    public static final int GL_TEXTURE31                               = 0x84DF;
254    public static final int GL_REPEAT                                  = 0x2901;
255    public static final int GL_CLAMP_TO_EDGE                           = 0x812F;
256    public static final int GL_MIRRORED_REPEAT                         = 0x8370;
257    public static final int GL_FLOAT_VEC2                              = 0x8B50;
258    public static final int GL_FLOAT_VEC3                              = 0x8B51;
259    public static final int GL_FLOAT_VEC4                              = 0x8B52;
260    public static final int GL_INT_VEC2                                = 0x8B53;
261    public static final int GL_INT_VEC3                                = 0x8B54;
262    public static final int GL_INT_VEC4                                = 0x8B55;
263    public static final int GL_BOOL                                    = 0x8B56;
264    public static final int GL_BOOL_VEC2                               = 0x8B57;
265    public static final int GL_BOOL_VEC3                               = 0x8B58;
266    public static final int GL_BOOL_VEC4                               = 0x8B59;
267    public static final int GL_FLOAT_MAT2                              = 0x8B5A;
268    public static final int GL_FLOAT_MAT3                              = 0x8B5B;
269    public static final int GL_FLOAT_MAT4                              = 0x8B5C;
270    public static final int GL_SAMPLER_2D                              = 0x8B5E;
271    public static final int GL_SAMPLER_CUBE                            = 0x8B60;
272    public static final int GL_VERTEX_ATTRIB_ARRAY_ENABLED                 = 0x8622;
273    public static final int GL_VERTEX_ATTRIB_ARRAY_SIZE                    = 0x8623;
274    public static final int GL_VERTEX_ATTRIB_ARRAY_STRIDE                  = 0x8624;
275    public static final int GL_VERTEX_ATTRIB_ARRAY_TYPE                    = 0x8625;
276    public static final int GL_VERTEX_ATTRIB_ARRAY_NORMALIZED              = 0x886A;
277    public static final int GL_VERTEX_ATTRIB_ARRAY_POINTER                 = 0x8645;
278    public static final int GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING          = 0x889F;
279    public static final int GL_IMPLEMENTATION_COLOR_READ_TYPE            = 0x8B9A;
280    public static final int GL_IMPLEMENTATION_COLOR_READ_FORMAT          = 0x8B9B;
281    public static final int GL_COMPILE_STATUS                          = 0x8B81;
282    public static final int GL_INFO_LOG_LENGTH                         = 0x8B84;
283    public static final int GL_SHADER_SOURCE_LENGTH                    = 0x8B88;
284    public static final int GL_SHADER_COMPILER                         = 0x8DFA;
285    public static final int GL_SHADER_BINARY_FORMATS                   = 0x8DF8;
286    public static final int GL_NUM_SHADER_BINARY_FORMATS               = 0x8DF9;
287    public static final int GL_LOW_FLOAT                               = 0x8DF0;
288    public static final int GL_MEDIUM_FLOAT                            = 0x8DF1;
289    public static final int GL_HIGH_FLOAT                              = 0x8DF2;
290    public static final int GL_LOW_INT                                 = 0x8DF3;
291    public static final int GL_MEDIUM_INT                              = 0x8DF4;
292    public static final int GL_HIGH_INT                                = 0x8DF5;
293    public static final int GL_FRAMEBUFFER                             = 0x8D40;
294    public static final int GL_RENDERBUFFER                            = 0x8D41;
295    public static final int GL_RGBA4                                   = 0x8056;
296    public static final int GL_RGB5_A1                                 = 0x8057;
297    public static final int GL_RGB565                                  = 0x8D62;
298    public static final int GL_DEPTH_COMPONENT16                       = 0x81A5;
299    // GL_STENCIL_INDEX does not appear in gl2.h or gl2ext.h, and there is no
300    // token with value 0x1901.
301    //
302    @Deprecated
303    public static final int GL_STENCIL_INDEX                           = 0x1901;
304    public static final int GL_STENCIL_INDEX8                          = 0x8D48;
305    public static final int GL_RENDERBUFFER_WIDTH                      = 0x8D42;
306    public static final int GL_RENDERBUFFER_HEIGHT                     = 0x8D43;
307    public static final int GL_RENDERBUFFER_INTERNAL_FORMAT            = 0x8D44;
308    public static final int GL_RENDERBUFFER_RED_SIZE                   = 0x8D50;
309    public static final int GL_RENDERBUFFER_GREEN_SIZE                 = 0x8D51;
310    public static final int GL_RENDERBUFFER_BLUE_SIZE                  = 0x8D52;
311    public static final int GL_RENDERBUFFER_ALPHA_SIZE                 = 0x8D53;
312    public static final int GL_RENDERBUFFER_DEPTH_SIZE                 = 0x8D54;
313    public static final int GL_RENDERBUFFER_STENCIL_SIZE               = 0x8D55;
314    public static final int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE      = 0x8CD0;
315    public static final int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME      = 0x8CD1;
316    public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL    = 0x8CD2;
317    public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3;
318    public static final int GL_COLOR_ATTACHMENT0                       = 0x8CE0;
319    public static final int GL_DEPTH_ATTACHMENT                        = 0x8D00;
320    public static final int GL_STENCIL_ATTACHMENT                      = 0x8D20;
321    public static final int GL_NONE                                    = 0;
322    public static final int GL_FRAMEBUFFER_COMPLETE                    = 0x8CD5;
323    public static final int GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT       = 0x8CD6;
324    public static final int GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT          = 0x8CD7;
325    public static final int GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS       = 0x8CD9;
326    public static final int GL_FRAMEBUFFER_UNSUPPORTED                 = 0x8CDD;
327    public static final int GL_FRAMEBUFFER_BINDING                     = 0x8CA6;
328    public static final int GL_RENDERBUFFER_BINDING                    = 0x8CA7;
329    public static final int GL_MAX_RENDERBUFFER_SIZE                   = 0x84E8;
330    public static final int GL_INVALID_FRAMEBUFFER_OPERATION           = 0x0506;
331
332    native private static void _nativeClassInit();
333    static {
334        _nativeClassInit();
335    }
336    // C function void glActiveTexture ( GLenum texture )
337
338    public static native void glActiveTexture(
339        int texture
340    );
341
342    // C function void glAttachShader ( GLuint program, GLuint shader )
343
344    public static native void glAttachShader(
345        int program,
346        int shader
347    );
348
349    // C function void glBindAttribLocation ( GLuint program, GLuint index, const char *name )
350
351    public static native void glBindAttribLocation(
352        int program,
353        int index,
354        String name
355    );
356
357    // C function void glBindBuffer ( GLenum target, GLuint buffer )
358
359    public static native void glBindBuffer(
360        int target,
361        int buffer
362    );
363
364    // C function void glBindFramebuffer ( GLenum target, GLuint framebuffer )
365
366    public static native void glBindFramebuffer(
367        int target,
368        int framebuffer
369    );
370
371    // C function void glBindRenderbuffer ( GLenum target, GLuint renderbuffer )
372
373    public static native void glBindRenderbuffer(
374        int target,
375        int renderbuffer
376    );
377
378    // C function void glBindTexture ( GLenum target, GLuint texture )
379
380    public static native void glBindTexture(
381        int target,
382        int texture
383    );
384
385    // C function void glBlendColor ( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha )
386
387    public static native void glBlendColor(
388        float red,
389        float green,
390        float blue,
391        float alpha
392    );
393
394    // C function void glBlendEquation ( GLenum mode )
395
396    public static native void glBlendEquation(
397        int mode
398    );
399
400    // C function void glBlendEquationSeparate ( GLenum modeRGB, GLenum modeAlpha )
401
402    public static native void glBlendEquationSeparate(
403        int modeRGB,
404        int modeAlpha
405    );
406
407    // C function void glBlendFunc ( GLenum sfactor, GLenum dfactor )
408
409    public static native void glBlendFunc(
410        int sfactor,
411        int dfactor
412    );
413
414    // C function void glBlendFuncSeparate ( GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha )
415
416    public static native void glBlendFuncSeparate(
417        int srcRGB,
418        int dstRGB,
419        int srcAlpha,
420        int dstAlpha
421    );
422
423    // C function void glBufferData ( GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage )
424
425    public static native void glBufferData(
426        int target,
427        int size,
428        java.nio.Buffer data,
429        int usage
430    );
431
432    // C function void glBufferSubData ( GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data )
433
434    public static native void glBufferSubData(
435        int target,
436        int offset,
437        int size,
438        java.nio.Buffer data
439    );
440
441    // C function GLenum glCheckFramebufferStatus ( GLenum target )
442
443    public static native int glCheckFramebufferStatus(
444        int target
445    );
446
447    // C function void glClear ( GLbitfield mask )
448
449    public static native void glClear(
450        int mask
451    );
452
453    // C function void glClearColor ( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha )
454
455    public static native void glClearColor(
456        float red,
457        float green,
458        float blue,
459        float alpha
460    );
461
462    // C function void glClearDepthf ( GLclampf depth )
463
464    public static native void glClearDepthf(
465        float depth
466    );
467
468    // C function void glClearStencil ( GLint s )
469
470    public static native void glClearStencil(
471        int s
472    );
473
474    // C function void glColorMask ( GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha )
475
476    public static native void glColorMask(
477        boolean red,
478        boolean green,
479        boolean blue,
480        boolean alpha
481    );
482
483    // C function void glCompileShader ( GLuint shader )
484
485    public static native void glCompileShader(
486        int shader
487    );
488
489    // C function void glCompressedTexImage2D ( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data )
490
491    public static native void glCompressedTexImage2D(
492        int target,
493        int level,
494        int internalformat,
495        int width,
496        int height,
497        int border,
498        int imageSize,
499        java.nio.Buffer data
500    );
501
502    // C function void glCompressedTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data )
503
504    public static native void glCompressedTexSubImage2D(
505        int target,
506        int level,
507        int xoffset,
508        int yoffset,
509        int width,
510        int height,
511        int format,
512        int imageSize,
513        java.nio.Buffer data
514    );
515
516    // C function void glCopyTexImage2D ( GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border )
517
518    public static native void glCopyTexImage2D(
519        int target,
520        int level,
521        int internalformat,
522        int x,
523        int y,
524        int width,
525        int height,
526        int border
527    );
528
529    // C function void glCopyTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height )
530
531    public static native void glCopyTexSubImage2D(
532        int target,
533        int level,
534        int xoffset,
535        int yoffset,
536        int x,
537        int y,
538        int width,
539        int height
540    );
541
542    // C function GLuint glCreateProgram ( void )
543
544    public static native int glCreateProgram(
545    );
546
547    // C function GLuint glCreateShader ( GLenum type )
548
549    public static native int glCreateShader(
550        int type
551    );
552
553    // C function void glCullFace ( GLenum mode )
554
555    public static native void glCullFace(
556        int mode
557    );
558
559    // C function void glDeleteBuffers ( GLsizei n, const GLuint *buffers )
560
561    public static native void glDeleteBuffers(
562        int n,
563        int[] buffers,
564        int offset
565    );
566
567    // C function void glDeleteBuffers ( GLsizei n, const GLuint *buffers )
568
569    public static native void glDeleteBuffers(
570        int n,
571        java.nio.IntBuffer buffers
572    );
573
574    // C function void glDeleteFramebuffers ( GLsizei n, const GLuint *framebuffers )
575
576    public static native void glDeleteFramebuffers(
577        int n,
578        int[] framebuffers,
579        int offset
580    );
581
582    // C function void glDeleteFramebuffers ( GLsizei n, const GLuint *framebuffers )
583
584    public static native void glDeleteFramebuffers(
585        int n,
586        java.nio.IntBuffer framebuffers
587    );
588
589    // C function void glDeleteProgram ( GLuint program )
590
591    public static native void glDeleteProgram(
592        int program
593    );
594
595    // C function void glDeleteRenderbuffers ( GLsizei n, const GLuint *renderbuffers )
596
597    public static native void glDeleteRenderbuffers(
598        int n,
599        int[] renderbuffers,
600        int offset
601    );
602
603    // C function void glDeleteRenderbuffers ( GLsizei n, const GLuint *renderbuffers )
604
605    public static native void glDeleteRenderbuffers(
606        int n,
607        java.nio.IntBuffer renderbuffers
608    );
609
610    // C function void glDeleteShader ( GLuint shader )
611
612    public static native void glDeleteShader(
613        int shader
614    );
615
616    // C function void glDeleteTextures ( GLsizei n, const GLuint *textures )
617
618    public static native void glDeleteTextures(
619        int n,
620        int[] textures,
621        int offset
622    );
623
624    // C function void glDeleteTextures ( GLsizei n, const GLuint *textures )
625
626    public static native void glDeleteTextures(
627        int n,
628        java.nio.IntBuffer textures
629    );
630
631    // C function void glDepthFunc ( GLenum func )
632
633    public static native void glDepthFunc(
634        int func
635    );
636
637    // C function void glDepthMask ( GLboolean flag )
638
639    public static native void glDepthMask(
640        boolean flag
641    );
642
643    // C function void glDepthRangef ( GLclampf zNear, GLclampf zFar )
644
645    public static native void glDepthRangef(
646        float zNear,
647        float zFar
648    );
649
650    // C function void glDetachShader ( GLuint program, GLuint shader )
651
652    public static native void glDetachShader(
653        int program,
654        int shader
655    );
656
657    // C function void glDisable ( GLenum cap )
658
659    public static native void glDisable(
660        int cap
661    );
662
663    // C function void glDisableVertexAttribArray ( GLuint index )
664
665    public static native void glDisableVertexAttribArray(
666        int index
667    );
668
669    // C function void glDrawArrays ( GLenum mode, GLint first, GLsizei count )
670
671    public static native void glDrawArrays(
672        int mode,
673        int first,
674        int count
675    );
676
677    // C function void glDrawElements ( GLenum mode, GLsizei count, GLenum type, GLint offset )
678
679    public static native void glDrawElements(
680        int mode,
681        int count,
682        int type,
683        int offset
684    );
685
686    // C function void glDrawElements ( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices )
687
688    public static native void glDrawElements(
689        int mode,
690        int count,
691        int type,
692        java.nio.Buffer indices
693    );
694
695    // C function void glEnable ( GLenum cap )
696
697    public static native void glEnable(
698        int cap
699    );
700
701    // C function void glEnableVertexAttribArray ( GLuint index )
702
703    public static native void glEnableVertexAttribArray(
704        int index
705    );
706
707    // C function void glFinish ( void )
708
709    public static native void glFinish(
710    );
711
712    // C function void glFlush ( void )
713
714    public static native void glFlush(
715    );
716
717    // C function void glFramebufferRenderbuffer ( GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer )
718
719    public static native void glFramebufferRenderbuffer(
720        int target,
721        int attachment,
722        int renderbuffertarget,
723        int renderbuffer
724    );
725
726    // C function void glFramebufferTexture2D ( GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level )
727
728    public static native void glFramebufferTexture2D(
729        int target,
730        int attachment,
731        int textarget,
732        int texture,
733        int level
734    );
735
736    // C function void glFrontFace ( GLenum mode )
737
738    public static native void glFrontFace(
739        int mode
740    );
741
742    // C function void glGenBuffers ( GLsizei n, GLuint *buffers )
743
744    public static native void glGenBuffers(
745        int n,
746        int[] buffers,
747        int offset
748    );
749
750    // C function void glGenBuffers ( GLsizei n, GLuint *buffers )
751
752    public static native void glGenBuffers(
753        int n,
754        java.nio.IntBuffer buffers
755    );
756
757    // C function void glGenerateMipmap ( GLenum target )
758
759    public static native void glGenerateMipmap(
760        int target
761    );
762
763    // C function void glGenFramebuffers ( GLsizei n, GLuint *framebuffers )
764
765    public static native void glGenFramebuffers(
766        int n,
767        int[] framebuffers,
768        int offset
769    );
770
771    // C function void glGenFramebuffers ( GLsizei n, GLuint *framebuffers )
772
773    public static native void glGenFramebuffers(
774        int n,
775        java.nio.IntBuffer framebuffers
776    );
777
778    // C function void glGenRenderbuffers ( GLsizei n, GLuint *renderbuffers )
779
780    public static native void glGenRenderbuffers(
781        int n,
782        int[] renderbuffers,
783        int offset
784    );
785
786    // C function void glGenRenderbuffers ( GLsizei n, GLuint *renderbuffers )
787
788    public static native void glGenRenderbuffers(
789        int n,
790        java.nio.IntBuffer renderbuffers
791    );
792
793    // C function void glGenTextures ( GLsizei n, GLuint *textures )
794
795    public static native void glGenTextures(
796        int n,
797        int[] textures,
798        int offset
799    );
800
801    // C function void glGenTextures ( GLsizei n, GLuint *textures )
802
803    public static native void glGenTextures(
804        int n,
805        java.nio.IntBuffer textures
806    );
807
808    // C function void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
809
810    public static native void glGetActiveAttrib(
811        int program,
812        int index,
813        int bufsize,
814        int[] length,
815        int lengthOffset,
816        int[] size,
817        int sizeOffset,
818        int[] type,
819        int typeOffset,
820        byte[] name,
821        int nameOffset
822    );
823
824    // C function void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
825
826    public static native void glGetActiveAttrib(
827        int program,
828        int index,
829        int bufsize,
830        java.nio.IntBuffer length,
831        java.nio.IntBuffer size,
832        java.nio.IntBuffer type,
833        byte name
834    );
835
836    // C function void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
837
838    public static native String glGetActiveAttrib(
839        int program,
840        int index,
841        int[] size,
842        int sizeOffset,
843        int[] type,
844        int typeOffset
845    );
846
847    // C function void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
848
849    public static native String glGetActiveAttrib(
850        int program,
851        int index,
852        java.nio.IntBuffer size,
853        java.nio.IntBuffer type
854    );
855    // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
856
857    public static native void glGetActiveUniform(
858        int program,
859        int index,
860        int bufsize,
861        int[] length,
862        int lengthOffset,
863        int[] size,
864        int sizeOffset,
865        int[] type,
866        int typeOffset,
867        byte[] name,
868        int nameOffset
869    );
870
871    // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
872
873    public static native void glGetActiveUniform(
874        int program,
875        int index,
876        int bufsize,
877        java.nio.IntBuffer length,
878        java.nio.IntBuffer size,
879        java.nio.IntBuffer type,
880        byte name
881    );
882    // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
883
884    public static native String glGetActiveUniform(
885        int program,
886        int index,
887        int[] size,
888        int sizeOffset,
889        int[] type,
890        int typeOffset
891    );
892
893    // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
894
895    public static native String glGetActiveUniform(
896        int program,
897        int index,
898        java.nio.IntBuffer size,
899        java.nio.IntBuffer type
900    );
901    // C function void glGetAttachedShaders ( GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders )
902
903    public static native void glGetAttachedShaders(
904        int program,
905        int maxcount,
906        int[] count,
907        int countOffset,
908        int[] shaders,
909        int shadersOffset
910    );
911
912    // C function void glGetAttachedShaders ( GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders )
913
914    public static native void glGetAttachedShaders(
915        int program,
916        int maxcount,
917        java.nio.IntBuffer count,
918        java.nio.IntBuffer shaders
919    );
920
921    // C function GLint glGetAttribLocation ( GLuint program, const char *name )
922
923    public static native int glGetAttribLocation(
924        int program,
925        String name
926    );
927
928    // C function void glGetBooleanv ( GLenum pname, GLboolean *params )
929
930    public static native void glGetBooleanv(
931        int pname,
932        boolean[] params,
933        int offset
934    );
935
936    // C function void glGetBooleanv ( GLenum pname, GLboolean *params )
937
938    public static native void glGetBooleanv(
939        int pname,
940        java.nio.IntBuffer params
941    );
942
943    // C function void glGetBufferParameteriv ( GLenum target, GLenum pname, GLint *params )
944
945    public static native void glGetBufferParameteriv(
946        int target,
947        int pname,
948        int[] params,
949        int offset
950    );
951
952    // C function void glGetBufferParameteriv ( GLenum target, GLenum pname, GLint *params )
953
954    public static native void glGetBufferParameteriv(
955        int target,
956        int pname,
957        java.nio.IntBuffer params
958    );
959
960    // C function GLenum glGetError ( void )
961
962    public static native int glGetError(
963    );
964
965    // C function void glGetFloatv ( GLenum pname, GLfloat *params )
966
967    public static native void glGetFloatv(
968        int pname,
969        float[] params,
970        int offset
971    );
972
973    // C function void glGetFloatv ( GLenum pname, GLfloat *params )
974
975    public static native void glGetFloatv(
976        int pname,
977        java.nio.FloatBuffer params
978    );
979
980    // C function void glGetFramebufferAttachmentParameteriv ( GLenum target, GLenum attachment, GLenum pname, GLint *params )
981
982    public static native void glGetFramebufferAttachmentParameteriv(
983        int target,
984        int attachment,
985        int pname,
986        int[] params,
987        int offset
988    );
989
990    // C function void glGetFramebufferAttachmentParameteriv ( GLenum target, GLenum attachment, GLenum pname, GLint *params )
991
992    public static native void glGetFramebufferAttachmentParameteriv(
993        int target,
994        int attachment,
995        int pname,
996        java.nio.IntBuffer params
997    );
998
999    // C function void glGetIntegerv ( GLenum pname, GLint *params )
1000
1001    public static native void glGetIntegerv(
1002        int pname,
1003        int[] params,
1004        int offset
1005    );
1006
1007    // C function void glGetIntegerv ( GLenum pname, GLint *params )
1008
1009    public static native void glGetIntegerv(
1010        int pname,
1011        java.nio.IntBuffer params
1012    );
1013
1014    // C function void glGetProgramiv ( GLuint program, GLenum pname, GLint *params )
1015
1016    public static native void glGetProgramiv(
1017        int program,
1018        int pname,
1019        int[] params,
1020        int offset
1021    );
1022
1023    // C function void glGetProgramiv ( GLuint program, GLenum pname, GLint *params )
1024
1025    public static native void glGetProgramiv(
1026        int program,
1027        int pname,
1028        java.nio.IntBuffer params
1029    );
1030
1031    // C function void glGetProgramInfoLog( GLuint program, GLsizei maxLength, GLsizei * length,
1032    //     GLchar * infoLog);
1033
1034    public static native String glGetProgramInfoLog(
1035        int program
1036    );
1037    // C function void glGetRenderbufferParameteriv ( GLenum target, GLenum pname, GLint *params )
1038
1039    public static native void glGetRenderbufferParameteriv(
1040        int target,
1041        int pname,
1042        int[] params,
1043        int offset
1044    );
1045
1046    // C function void glGetRenderbufferParameteriv ( GLenum target, GLenum pname, GLint *params )
1047
1048    public static native void glGetRenderbufferParameteriv(
1049        int target,
1050        int pname,
1051        java.nio.IntBuffer params
1052    );
1053
1054    // C function void glGetShaderiv ( GLuint shader, GLenum pname, GLint *params )
1055
1056    public static native void glGetShaderiv(
1057        int shader,
1058        int pname,
1059        int[] params,
1060        int offset
1061    );
1062
1063    // C function void glGetShaderiv ( GLuint shader, GLenum pname, GLint *params )
1064
1065    public static native void glGetShaderiv(
1066        int shader,
1067        int pname,
1068        java.nio.IntBuffer params
1069    );
1070
1071    // C function void glGetShaderInfoLog( GLuint shader, GLsizei maxLength, GLsizei * length,
1072    //     GLchar * infoLog);
1073
1074    public static native String glGetShaderInfoLog(
1075        int shader
1076    );
1077    // C function void glGetShaderPrecisionFormat ( GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision )
1078
1079    public static native void glGetShaderPrecisionFormat(
1080        int shadertype,
1081        int precisiontype,
1082        int[] range,
1083        int rangeOffset,
1084        int[] precision,
1085        int precisionOffset
1086    );
1087
1088    // C function void glGetShaderPrecisionFormat ( GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision )
1089
1090    public static native void glGetShaderPrecisionFormat(
1091        int shadertype,
1092        int precisiontype,
1093        java.nio.IntBuffer range,
1094        java.nio.IntBuffer precision
1095    );
1096
1097    // C function void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source )
1098
1099    public static native void glGetShaderSource(
1100        int shader,
1101        int bufsize,
1102        int[] length,
1103        int lengthOffset,
1104        byte[] source,
1105        int sourceOffset
1106    );
1107
1108    // C function void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source )
1109
1110    public static native void glGetShaderSource(
1111        int shader,
1112        int bufsize,
1113        java.nio.IntBuffer length,
1114        byte source
1115    );
1116
1117    // C function void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source )
1118
1119    public static native String glGetShaderSource(
1120        int shader
1121    );
1122    // C function const GLubyte * glGetString ( GLenum name )
1123
1124    public static native String glGetString(
1125        int name
1126    );
1127    // C function void glGetTexParameterfv ( GLenum target, GLenum pname, GLfloat *params )
1128
1129    public static native void glGetTexParameterfv(
1130        int target,
1131        int pname,
1132        float[] params,
1133        int offset
1134    );
1135
1136    // C function void glGetTexParameterfv ( GLenum target, GLenum pname, GLfloat *params )
1137
1138    public static native void glGetTexParameterfv(
1139        int target,
1140        int pname,
1141        java.nio.FloatBuffer params
1142    );
1143
1144    // C function void glGetTexParameteriv ( GLenum target, GLenum pname, GLint *params )
1145
1146    public static native void glGetTexParameteriv(
1147        int target,
1148        int pname,
1149        int[] params,
1150        int offset
1151    );
1152
1153    // C function void glGetTexParameteriv ( GLenum target, GLenum pname, GLint *params )
1154
1155    public static native void glGetTexParameteriv(
1156        int target,
1157        int pname,
1158        java.nio.IntBuffer params
1159    );
1160
1161    // C function void glGetUniformfv ( GLuint program, GLint location, GLfloat *params )
1162
1163    public static native void glGetUniformfv(
1164        int program,
1165        int location,
1166        float[] params,
1167        int offset
1168    );
1169
1170    // C function void glGetUniformfv ( GLuint program, GLint location, GLfloat *params )
1171
1172    public static native void glGetUniformfv(
1173        int program,
1174        int location,
1175        java.nio.FloatBuffer params
1176    );
1177
1178    // C function void glGetUniformiv ( GLuint program, GLint location, GLint *params )
1179
1180    public static native void glGetUniformiv(
1181        int program,
1182        int location,
1183        int[] params,
1184        int offset
1185    );
1186
1187    // C function void glGetUniformiv ( GLuint program, GLint location, GLint *params )
1188
1189    public static native void glGetUniformiv(
1190        int program,
1191        int location,
1192        java.nio.IntBuffer params
1193    );
1194
1195    // C function GLint glGetUniformLocation ( GLuint program, const char *name )
1196
1197    public static native int glGetUniformLocation(
1198        int program,
1199        String name
1200    );
1201
1202    // C function void glGetVertexAttribfv ( GLuint index, GLenum pname, GLfloat *params )
1203
1204    public static native void glGetVertexAttribfv(
1205        int index,
1206        int pname,
1207        float[] params,
1208        int offset
1209    );
1210
1211    // C function void glGetVertexAttribfv ( GLuint index, GLenum pname, GLfloat *params )
1212
1213    public static native void glGetVertexAttribfv(
1214        int index,
1215        int pname,
1216        java.nio.FloatBuffer params
1217    );
1218
1219    // C function void glGetVertexAttribiv ( GLuint index, GLenum pname, GLint *params )
1220
1221    public static native void glGetVertexAttribiv(
1222        int index,
1223        int pname,
1224        int[] params,
1225        int offset
1226    );
1227
1228    // C function void glGetVertexAttribiv ( GLuint index, GLenum pname, GLint *params )
1229
1230    public static native void glGetVertexAttribiv(
1231        int index,
1232        int pname,
1233        java.nio.IntBuffer params
1234    );
1235
1236    // C function void glHint ( GLenum target, GLenum mode )
1237
1238    public static native void glHint(
1239        int target,
1240        int mode
1241    );
1242
1243    // C function GLboolean glIsBuffer ( GLuint buffer )
1244
1245    public static native boolean glIsBuffer(
1246        int buffer
1247    );
1248
1249    // C function GLboolean glIsEnabled ( GLenum cap )
1250
1251    public static native boolean glIsEnabled(
1252        int cap
1253    );
1254
1255    // C function GLboolean glIsFramebuffer ( GLuint framebuffer )
1256
1257    public static native boolean glIsFramebuffer(
1258        int framebuffer
1259    );
1260
1261    // C function GLboolean glIsProgram ( GLuint program )
1262
1263    public static native boolean glIsProgram(
1264        int program
1265    );
1266
1267    // C function GLboolean glIsRenderbuffer ( GLuint renderbuffer )
1268
1269    public static native boolean glIsRenderbuffer(
1270        int renderbuffer
1271    );
1272
1273    // C function GLboolean glIsShader ( GLuint shader )
1274
1275    public static native boolean glIsShader(
1276        int shader
1277    );
1278
1279    // C function GLboolean glIsTexture ( GLuint texture )
1280
1281    public static native boolean glIsTexture(
1282        int texture
1283    );
1284
1285    // C function void glLineWidth ( GLfloat width )
1286
1287    public static native void glLineWidth(
1288        float width
1289    );
1290
1291    // C function void glLinkProgram ( GLuint program )
1292
1293    public static native void glLinkProgram(
1294        int program
1295    );
1296
1297    // C function void glPixelStorei ( GLenum pname, GLint param )
1298
1299    public static native void glPixelStorei(
1300        int pname,
1301        int param
1302    );
1303
1304    // C function void glPolygonOffset ( GLfloat factor, GLfloat units )
1305
1306    public static native void glPolygonOffset(
1307        float factor,
1308        float units
1309    );
1310
1311    // C function void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels )
1312
1313    public static native void glReadPixels(
1314        int x,
1315        int y,
1316        int width,
1317        int height,
1318        int format,
1319        int type,
1320        java.nio.Buffer pixels
1321    );
1322
1323    // C function void glReleaseShaderCompiler ( void )
1324
1325    public static native void glReleaseShaderCompiler(
1326    );
1327
1328    // C function void glRenderbufferStorage ( GLenum target, GLenum internalformat, GLsizei width, GLsizei height )
1329
1330    public static native void glRenderbufferStorage(
1331        int target,
1332        int internalformat,
1333        int width,
1334        int height
1335    );
1336
1337    // C function void glSampleCoverage ( GLclampf value, GLboolean invert )
1338
1339    public static native void glSampleCoverage(
1340        float value,
1341        boolean invert
1342    );
1343
1344    // C function void glScissor ( GLint x, GLint y, GLsizei width, GLsizei height )
1345
1346    public static native void glScissor(
1347        int x,
1348        int y,
1349        int width,
1350        int height
1351    );
1352
1353    // C function void glShaderBinary ( GLsizei n, const GLuint *shaders, GLenum binaryformat, const GLvoid *binary, GLsizei length )
1354
1355    public static native void glShaderBinary(
1356        int n,
1357        int[] shaders,
1358        int offset,
1359        int binaryformat,
1360        java.nio.Buffer binary,
1361        int length
1362    );
1363
1364    // C function void glShaderBinary ( GLsizei n, const GLuint *shaders, GLenum binaryformat, const GLvoid *binary, GLsizei length )
1365
1366    public static native void glShaderBinary(
1367        int n,
1368        java.nio.IntBuffer shaders,
1369        int binaryformat,
1370        java.nio.Buffer binary,
1371        int length
1372    );
1373
1374    // C function void glShaderSource ( GLuint shader, GLsizei count, const GLchar ** string, const GLint* length )
1375
1376    public static native void glShaderSource(
1377        int shader,
1378        String string
1379    );
1380    // C function void glStencilFunc ( GLenum func, GLint ref, GLuint mask )
1381
1382    public static native void glStencilFunc(
1383        int func,
1384        int ref,
1385        int mask
1386    );
1387
1388    // C function void glStencilFuncSeparate ( GLenum face, GLenum func, GLint ref, GLuint mask )
1389
1390    public static native void glStencilFuncSeparate(
1391        int face,
1392        int func,
1393        int ref,
1394        int mask
1395    );
1396
1397    // C function void glStencilMask ( GLuint mask )
1398
1399    public static native void glStencilMask(
1400        int mask
1401    );
1402
1403    // C function void glStencilMaskSeparate ( GLenum face, GLuint mask )
1404
1405    public static native void glStencilMaskSeparate(
1406        int face,
1407        int mask
1408    );
1409
1410    // C function void glStencilOp ( GLenum fail, GLenum zfail, GLenum zpass )
1411
1412    public static native void glStencilOp(
1413        int fail,
1414        int zfail,
1415        int zpass
1416    );
1417
1418    // C function void glStencilOpSeparate ( GLenum face, GLenum fail, GLenum zfail, GLenum zpass )
1419
1420    public static native void glStencilOpSeparate(
1421        int face,
1422        int fail,
1423        int zfail,
1424        int zpass
1425    );
1426
1427    // C function void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels )
1428
1429    public static native void glTexImage2D(
1430        int target,
1431        int level,
1432        int internalformat,
1433        int width,
1434        int height,
1435        int border,
1436        int format,
1437        int type,
1438        java.nio.Buffer pixels
1439    );
1440
1441    // C function void glTexParameterf ( GLenum target, GLenum pname, GLfloat param )
1442
1443    public static native void glTexParameterf(
1444        int target,
1445        int pname,
1446        float param
1447    );
1448
1449    // C function void glTexParameterfv ( GLenum target, GLenum pname, const GLfloat *params )
1450
1451    public static native void glTexParameterfv(
1452        int target,
1453        int pname,
1454        float[] params,
1455        int offset
1456    );
1457
1458    // C function void glTexParameterfv ( GLenum target, GLenum pname, const GLfloat *params )
1459
1460    public static native void glTexParameterfv(
1461        int target,
1462        int pname,
1463        java.nio.FloatBuffer params
1464    );
1465
1466    // C function void glTexParameteri ( GLenum target, GLenum pname, GLint param )
1467
1468    public static native void glTexParameteri(
1469        int target,
1470        int pname,
1471        int param
1472    );
1473
1474    // C function void glTexParameteriv ( GLenum target, GLenum pname, const GLint *params )
1475
1476    public static native void glTexParameteriv(
1477        int target,
1478        int pname,
1479        int[] params,
1480        int offset
1481    );
1482
1483    // C function void glTexParameteriv ( GLenum target, GLenum pname, const GLint *params )
1484
1485    public static native void glTexParameteriv(
1486        int target,
1487        int pname,
1488        java.nio.IntBuffer params
1489    );
1490
1491    // C function void glTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels )
1492
1493    public static native void glTexSubImage2D(
1494        int target,
1495        int level,
1496        int xoffset,
1497        int yoffset,
1498        int width,
1499        int height,
1500        int format,
1501        int type,
1502        java.nio.Buffer pixels
1503    );
1504
1505    // C function void glUniform1f ( GLint location, GLfloat x )
1506
1507    public static native void glUniform1f(
1508        int location,
1509        float x
1510    );
1511
1512    // C function void glUniform1fv ( GLint location, GLsizei count, const GLfloat *v )
1513
1514    public static native void glUniform1fv(
1515        int location,
1516        int count,
1517        float[] v,
1518        int offset
1519    );
1520
1521    // C function void glUniform1fv ( GLint location, GLsizei count, const GLfloat *v )
1522
1523    public static native void glUniform1fv(
1524        int location,
1525        int count,
1526        java.nio.FloatBuffer v
1527    );
1528
1529    // C function void glUniform1i ( GLint location, GLint x )
1530
1531    public static native void glUniform1i(
1532        int location,
1533        int x
1534    );
1535
1536    // C function void glUniform1iv ( GLint location, GLsizei count, const GLint *v )
1537
1538    public static native void glUniform1iv(
1539        int location,
1540        int count,
1541        int[] v,
1542        int offset
1543    );
1544
1545    // C function void glUniform1iv ( GLint location, GLsizei count, const GLint *v )
1546
1547    public static native void glUniform1iv(
1548        int location,
1549        int count,
1550        java.nio.IntBuffer v
1551    );
1552
1553    // C function void glUniform2f ( GLint location, GLfloat x, GLfloat y )
1554
1555    public static native void glUniform2f(
1556        int location,
1557        float x,
1558        float y
1559    );
1560
1561    // C function void glUniform2fv ( GLint location, GLsizei count, const GLfloat *v )
1562
1563    public static native void glUniform2fv(
1564        int location,
1565        int count,
1566        float[] v,
1567        int offset
1568    );
1569
1570    // C function void glUniform2fv ( GLint location, GLsizei count, const GLfloat *v )
1571
1572    public static native void glUniform2fv(
1573        int location,
1574        int count,
1575        java.nio.FloatBuffer v
1576    );
1577
1578    // C function void glUniform2i ( GLint location, GLint x, GLint y )
1579
1580    public static native void glUniform2i(
1581        int location,
1582        int x,
1583        int y
1584    );
1585
1586    // C function void glUniform2iv ( GLint location, GLsizei count, const GLint *v )
1587
1588    public static native void glUniform2iv(
1589        int location,
1590        int count,
1591        int[] v,
1592        int offset
1593    );
1594
1595    // C function void glUniform2iv ( GLint location, GLsizei count, const GLint *v )
1596
1597    public static native void glUniform2iv(
1598        int location,
1599        int count,
1600        java.nio.IntBuffer v
1601    );
1602
1603    // C function void glUniform3f ( GLint location, GLfloat x, GLfloat y, GLfloat z )
1604
1605    public static native void glUniform3f(
1606        int location,
1607        float x,
1608        float y,
1609        float z
1610    );
1611
1612    // C function void glUniform3fv ( GLint location, GLsizei count, const GLfloat *v )
1613
1614    public static native void glUniform3fv(
1615        int location,
1616        int count,
1617        float[] v,
1618        int offset
1619    );
1620
1621    // C function void glUniform3fv ( GLint location, GLsizei count, const GLfloat *v )
1622
1623    public static native void glUniform3fv(
1624        int location,
1625        int count,
1626        java.nio.FloatBuffer v
1627    );
1628
1629    // C function void glUniform3i ( GLint location, GLint x, GLint y, GLint z )
1630
1631    public static native void glUniform3i(
1632        int location,
1633        int x,
1634        int y,
1635        int z
1636    );
1637
1638    // C function void glUniform3iv ( GLint location, GLsizei count, const GLint *v )
1639
1640    public static native void glUniform3iv(
1641        int location,
1642        int count,
1643        int[] v,
1644        int offset
1645    );
1646
1647    // C function void glUniform3iv ( GLint location, GLsizei count, const GLint *v )
1648
1649    public static native void glUniform3iv(
1650        int location,
1651        int count,
1652        java.nio.IntBuffer v
1653    );
1654
1655    // C function void glUniform4f ( GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w )
1656
1657    public static native void glUniform4f(
1658        int location,
1659        float x,
1660        float y,
1661        float z,
1662        float w
1663    );
1664
1665    // C function void glUniform4fv ( GLint location, GLsizei count, const GLfloat *v )
1666
1667    public static native void glUniform4fv(
1668        int location,
1669        int count,
1670        float[] v,
1671        int offset
1672    );
1673
1674    // C function void glUniform4fv ( GLint location, GLsizei count, const GLfloat *v )
1675
1676    public static native void glUniform4fv(
1677        int location,
1678        int count,
1679        java.nio.FloatBuffer v
1680    );
1681
1682    // C function void glUniform4i ( GLint location, GLint x, GLint y, GLint z, GLint w )
1683
1684    public static native void glUniform4i(
1685        int location,
1686        int x,
1687        int y,
1688        int z,
1689        int w
1690    );
1691
1692    // C function void glUniform4iv ( GLint location, GLsizei count, const GLint *v )
1693
1694    public static native void glUniform4iv(
1695        int location,
1696        int count,
1697        int[] v,
1698        int offset
1699    );
1700
1701    // C function void glUniform4iv ( GLint location, GLsizei count, const GLint *v )
1702
1703    public static native void glUniform4iv(
1704        int location,
1705        int count,
1706        java.nio.IntBuffer v
1707    );
1708
1709    // C function void glUniformMatrix2fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
1710
1711    public static native void glUniformMatrix2fv(
1712        int location,
1713        int count,
1714        boolean transpose,
1715        float[] value,
1716        int offset
1717    );
1718
1719    // C function void glUniformMatrix2fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
1720
1721    public static native void glUniformMatrix2fv(
1722        int location,
1723        int count,
1724        boolean transpose,
1725        java.nio.FloatBuffer value
1726    );
1727
1728    // C function void glUniformMatrix3fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
1729
1730    public static native void glUniformMatrix3fv(
1731        int location,
1732        int count,
1733        boolean transpose,
1734        float[] value,
1735        int offset
1736    );
1737
1738    // C function void glUniformMatrix3fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
1739
1740    public static native void glUniformMatrix3fv(
1741        int location,
1742        int count,
1743        boolean transpose,
1744        java.nio.FloatBuffer value
1745    );
1746
1747    // C function void glUniformMatrix4fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
1748
1749    public static native void glUniformMatrix4fv(
1750        int location,
1751        int count,
1752        boolean transpose,
1753        float[] value,
1754        int offset
1755    );
1756
1757    // C function void glUniformMatrix4fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
1758
1759    public static native void glUniformMatrix4fv(
1760        int location,
1761        int count,
1762        boolean transpose,
1763        java.nio.FloatBuffer value
1764    );
1765
1766    // C function void glUseProgram ( GLuint program )
1767
1768    public static native void glUseProgram(
1769        int program
1770    );
1771
1772    // C function void glValidateProgram ( GLuint program )
1773
1774    public static native void glValidateProgram(
1775        int program
1776    );
1777
1778    // C function void glVertexAttrib1f ( GLuint indx, GLfloat x )
1779
1780    public static native void glVertexAttrib1f(
1781        int indx,
1782        float x
1783    );
1784
1785    // C function void glVertexAttrib1fv ( GLuint indx, const GLfloat *values )
1786
1787    public static native void glVertexAttrib1fv(
1788        int indx,
1789        float[] values,
1790        int offset
1791    );
1792
1793    // C function void glVertexAttrib1fv ( GLuint indx, const GLfloat *values )
1794
1795    public static native void glVertexAttrib1fv(
1796        int indx,
1797        java.nio.FloatBuffer values
1798    );
1799
1800    // C function void glVertexAttrib2f ( GLuint indx, GLfloat x, GLfloat y )
1801
1802    public static native void glVertexAttrib2f(
1803        int indx,
1804        float x,
1805        float y
1806    );
1807
1808    // C function void glVertexAttrib2fv ( GLuint indx, const GLfloat *values )
1809
1810    public static native void glVertexAttrib2fv(
1811        int indx,
1812        float[] values,
1813        int offset
1814    );
1815
1816    // C function void glVertexAttrib2fv ( GLuint indx, const GLfloat *values )
1817
1818    public static native void glVertexAttrib2fv(
1819        int indx,
1820        java.nio.FloatBuffer values
1821    );
1822
1823    // C function void glVertexAttrib3f ( GLuint indx, GLfloat x, GLfloat y, GLfloat z )
1824
1825    public static native void glVertexAttrib3f(
1826        int indx,
1827        float x,
1828        float y,
1829        float z
1830    );
1831
1832    // C function void glVertexAttrib3fv ( GLuint indx, const GLfloat *values )
1833
1834    public static native void glVertexAttrib3fv(
1835        int indx,
1836        float[] values,
1837        int offset
1838    );
1839
1840    // C function void glVertexAttrib3fv ( GLuint indx, const GLfloat *values )
1841
1842    public static native void glVertexAttrib3fv(
1843        int indx,
1844        java.nio.FloatBuffer values
1845    );
1846
1847    // C function void glVertexAttrib4f ( GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w )
1848
1849    public static native void glVertexAttrib4f(
1850        int indx,
1851        float x,
1852        float y,
1853        float z,
1854        float w
1855    );
1856
1857    // C function void glVertexAttrib4fv ( GLuint indx, const GLfloat *values )
1858
1859    public static native void glVertexAttrib4fv(
1860        int indx,
1861        float[] values,
1862        int offset
1863    );
1864
1865    // C function void glVertexAttrib4fv ( GLuint indx, const GLfloat *values )
1866
1867    public static native void glVertexAttrib4fv(
1868        int indx,
1869        java.nio.FloatBuffer values
1870    );
1871
1872    // C function void glVertexAttribPointer ( GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLint offset )
1873
1874    public static native void glVertexAttribPointer(
1875        int indx,
1876        int size,
1877        int type,
1878        boolean normalized,
1879        int stride,
1880        int offset
1881    );
1882
1883    // C function void glVertexAttribPointer ( GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *ptr )
1884
1885    private static native void glVertexAttribPointerBounds(
1886        int indx,
1887        int size,
1888        int type,
1889        boolean normalized,
1890        int stride,
1891        java.nio.Buffer ptr,
1892        int remaining
1893    );
1894
1895    public static void glVertexAttribPointer(
1896        int indx,
1897        int size,
1898        int type,
1899        boolean normalized,
1900        int stride,
1901        java.nio.Buffer ptr
1902    ) {
1903        glVertexAttribPointerBounds(
1904            indx,
1905            size,
1906            type,
1907            normalized,
1908            stride,
1909            ptr,
1910            ptr.remaining()
1911        );
1912    }
1913
1914    // C function void glViewport ( GLint x, GLint y, GLsizei width, GLsizei height )
1915
1916    public static native void glViewport(
1917        int x,
1918        int y,
1919        int width,
1920        int height
1921    );
1922
1923}
1924