GLES20.java revision be6eac828f5af8b608c3fa6749330f1dcd6b6206
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    public static final int GL_STENCIL_INDEX                           = 0x1901;
300    public static final int GL_STENCIL_INDEX8                          = 0x8D48;
301    public static final int GL_RENDERBUFFER_WIDTH                      = 0x8D42;
302    public static final int GL_RENDERBUFFER_HEIGHT                     = 0x8D43;
303    public static final int GL_RENDERBUFFER_INTERNAL_FORMAT            = 0x8D44;
304    public static final int GL_RENDERBUFFER_RED_SIZE                   = 0x8D50;
305    public static final int GL_RENDERBUFFER_GREEN_SIZE                 = 0x8D51;
306    public static final int GL_RENDERBUFFER_BLUE_SIZE                  = 0x8D52;
307    public static final int GL_RENDERBUFFER_ALPHA_SIZE                 = 0x8D53;
308    public static final int GL_RENDERBUFFER_DEPTH_SIZE                 = 0x8D54;
309    public static final int GL_RENDERBUFFER_STENCIL_SIZE               = 0x8D55;
310    public static final int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE      = 0x8CD0;
311    public static final int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME      = 0x8CD1;
312    public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL    = 0x8CD2;
313    public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3;
314    public static final int GL_COLOR_ATTACHMENT0                       = 0x8CE0;
315    public static final int GL_DEPTH_ATTACHMENT                        = 0x8D00;
316    public static final int GL_STENCIL_ATTACHMENT                      = 0x8D20;
317    public static final int GL_NONE                                    = 0;
318    public static final int GL_FRAMEBUFFER_COMPLETE                    = 0x8CD5;
319    public static final int GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT       = 0x8CD6;
320    public static final int GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT          = 0x8CD7;
321    public static final int GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS       = 0x8CD9;
322    public static final int GL_FRAMEBUFFER_UNSUPPORTED                 = 0x8CDD;
323    public static final int GL_FRAMEBUFFER_BINDING                     = 0x8CA6;
324    public static final int GL_RENDERBUFFER_BINDING                    = 0x8CA7;
325    public static final int GL_MAX_RENDERBUFFER_SIZE                   = 0x84E8;
326    public static final int GL_INVALID_FRAMEBUFFER_OPERATION           = 0x0506;
327
328    native private static void _nativeClassInit();
329    static {
330	    _nativeClassInit();
331    }
332    // C function void glActiveTexture ( GLenum texture )
333
334    public static native void glActiveTexture(
335        int texture
336    );
337
338    // C function void glAttachShader ( GLuint program, GLuint shader )
339
340    public static native void glAttachShader(
341        int program,
342        int shader
343    );
344
345    // C function void glBindAttribLocation ( GLuint program, GLuint index, const char *name )
346
347    public static native void glBindAttribLocation(
348        int program,
349        int index,
350        String name
351    );
352
353    // C function void glBindBuffer ( GLenum target, GLuint buffer )
354
355    public static native void glBindBuffer(
356        int target,
357        int buffer
358    );
359
360    // C function void glBindFramebuffer ( GLenum target, GLuint framebuffer )
361
362    public static native void glBindFramebuffer(
363        int target,
364        int framebuffer
365    );
366
367    // C function void glBindRenderbuffer ( GLenum target, GLuint renderbuffer )
368
369    public static native void glBindRenderbuffer(
370        int target,
371        int renderbuffer
372    );
373
374    // C function void glBindTexture ( GLenum target, GLuint texture )
375
376    public static native void glBindTexture(
377        int target,
378        int texture
379    );
380
381    // C function void glBlendColor ( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha )
382
383    public static native void glBlendColor(
384        float red,
385        float green,
386        float blue,
387        float alpha
388    );
389
390    // C function void glBlendEquation ( GLenum mode )
391
392    public static native void glBlendEquation(
393        int mode
394    );
395
396    // C function void glBlendEquationSeparate ( GLenum modeRGB, GLenum modeAlpha )
397
398    public static native void glBlendEquationSeparate(
399        int modeRGB,
400        int modeAlpha
401    );
402
403    // C function void glBlendFunc ( GLenum sfactor, GLenum dfactor )
404
405    public static native void glBlendFunc(
406        int sfactor,
407        int dfactor
408    );
409
410    // C function void glBlendFuncSeparate ( GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha )
411
412    public static native void glBlendFuncSeparate(
413        int srcRGB,
414        int dstRGB,
415        int srcAlpha,
416        int dstAlpha
417    );
418
419    // C function void glBufferData ( GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage )
420
421    public static native void glBufferData(
422        int target,
423        int size,
424        java.nio.Buffer data,
425        int usage
426    );
427
428    // C function void glBufferSubData ( GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data )
429
430    public static native void glBufferSubData(
431        int target,
432        int offset,
433        int size,
434        java.nio.Buffer data
435    );
436
437    // C function GLenum glCheckFramebufferStatus ( GLenum target )
438
439    public static native int glCheckFramebufferStatus(
440        int target
441    );
442
443    // C function void glClear ( GLbitfield mask )
444
445    public static native void glClear(
446        int mask
447    );
448
449    // C function void glClearColor ( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha )
450
451    public static native void glClearColor(
452        float red,
453        float green,
454        float blue,
455        float alpha
456    );
457
458    // C function void glClearDepthf ( GLclampf depth )
459
460    public static native void glClearDepthf(
461        float depth
462    );
463
464    // C function void glClearStencil ( GLint s )
465
466    public static native void glClearStencil(
467        int s
468    );
469
470    // C function void glColorMask ( GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha )
471
472    public static native void glColorMask(
473        boolean red,
474        boolean green,
475        boolean blue,
476        boolean alpha
477    );
478
479    // C function void glCompileShader ( GLuint shader )
480
481    public static native void glCompileShader(
482        int shader
483    );
484
485    // C function void glCompressedTexImage2D ( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data )
486
487    public static native void glCompressedTexImage2D(
488        int target,
489        int level,
490        int internalformat,
491        int width,
492        int height,
493        int border,
494        int imageSize,
495        java.nio.Buffer data
496    );
497
498    // C function void glCompressedTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data )
499
500    public static native void glCompressedTexSubImage2D(
501        int target,
502        int level,
503        int xoffset,
504        int yoffset,
505        int width,
506        int height,
507        int format,
508        int imageSize,
509        java.nio.Buffer data
510    );
511
512    // C function void glCopyTexImage2D ( GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border )
513
514    public static native void glCopyTexImage2D(
515        int target,
516        int level,
517        int internalformat,
518        int x,
519        int y,
520        int width,
521        int height,
522        int border
523    );
524
525    // C function void glCopyTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height )
526
527    public static native void glCopyTexSubImage2D(
528        int target,
529        int level,
530        int xoffset,
531        int yoffset,
532        int x,
533        int y,
534        int width,
535        int height
536    );
537
538    // C function GLuint glCreateProgram ( void )
539
540    public static native int glCreateProgram(
541    );
542
543    // C function GLuint glCreateShader ( GLenum type )
544
545    public static native int glCreateShader(
546        int type
547    );
548
549    // C function void glCullFace ( GLenum mode )
550
551    public static native void glCullFace(
552        int mode
553    );
554
555    // C function void glDeleteBuffers ( GLsizei n, const GLuint *buffers )
556
557    public static native void glDeleteBuffers(
558        int n,
559        int[] buffers,
560        int offset
561    );
562
563    // C function void glDeleteBuffers ( GLsizei n, const GLuint *buffers )
564
565    public static native void glDeleteBuffers(
566        int n,
567        java.nio.IntBuffer buffers
568    );
569
570    // C function void glDeleteFramebuffers ( GLsizei n, const GLuint *framebuffers )
571
572    public static native void glDeleteFramebuffers(
573        int n,
574        int[] framebuffers,
575        int offset
576    );
577
578    // C function void glDeleteFramebuffers ( GLsizei n, const GLuint *framebuffers )
579
580    public static native void glDeleteFramebuffers(
581        int n,
582        java.nio.IntBuffer framebuffers
583    );
584
585    // C function void glDeleteProgram ( GLuint program )
586
587    public static native void glDeleteProgram(
588        int program
589    );
590
591    // C function void glDeleteRenderbuffers ( GLsizei n, const GLuint *renderbuffers )
592
593    public static native void glDeleteRenderbuffers(
594        int n,
595        int[] renderbuffers,
596        int offset
597    );
598
599    // C function void glDeleteRenderbuffers ( GLsizei n, const GLuint *renderbuffers )
600
601    public static native void glDeleteRenderbuffers(
602        int n,
603        java.nio.IntBuffer renderbuffers
604    );
605
606    // C function void glDeleteShader ( GLuint shader )
607
608    public static native void glDeleteShader(
609        int shader
610    );
611
612    // C function void glDeleteTextures ( GLsizei n, const GLuint *textures )
613
614    public static native void glDeleteTextures(
615        int n,
616        int[] textures,
617        int offset
618    );
619
620    // C function void glDeleteTextures ( GLsizei n, const GLuint *textures )
621
622    public static native void glDeleteTextures(
623        int n,
624        java.nio.IntBuffer textures
625    );
626
627    // C function void glDepthFunc ( GLenum func )
628
629    public static native void glDepthFunc(
630        int func
631    );
632
633    // C function void glDepthMask ( GLboolean flag )
634
635    public static native void glDepthMask(
636        boolean flag
637    );
638
639    // C function void glDepthRangef ( GLclampf zNear, GLclampf zFar )
640
641    public static native void glDepthRangef(
642        float zNear,
643        float zFar
644    );
645
646    // C function void glDetachShader ( GLuint program, GLuint shader )
647
648    public static native void glDetachShader(
649        int program,
650        int shader
651    );
652
653    // C function void glDisable ( GLenum cap )
654
655    public static native void glDisable(
656        int cap
657    );
658
659    // C function void glDisableVertexAttribArray ( GLuint index )
660
661    public static native void glDisableVertexAttribArray(
662        int index
663    );
664
665    // C function void glDrawArrays ( GLenum mode, GLint first, GLsizei count )
666
667    public static native void glDrawArrays(
668        int mode,
669        int first,
670        int count
671    );
672
673    // C function void glDrawElements ( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices )
674
675    public static native void glDrawElements(
676        int mode,
677        int count,
678        int type,
679        java.nio.Buffer indices
680    );
681
682    // C function void glEnable ( GLenum cap )
683
684    public static native void glEnable(
685        int cap
686    );
687
688    // C function void glEnableVertexAttribArray ( GLuint index )
689
690    public static native void glEnableVertexAttribArray(
691        int index
692    );
693
694    // C function void glFinish ( void )
695
696    public static native void glFinish(
697    );
698
699    // C function void glFlush ( void )
700
701    public static native void glFlush(
702    );
703
704    // C function void glFramebufferRenderbuffer ( GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer )
705
706    public static native void glFramebufferRenderbuffer(
707        int target,
708        int attachment,
709        int renderbuffertarget,
710        int renderbuffer
711    );
712
713    // C function void glFramebufferTexture2D ( GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level )
714
715    public static native void glFramebufferTexture2D(
716        int target,
717        int attachment,
718        int textarget,
719        int texture,
720        int level
721    );
722
723    // C function void glFrontFace ( GLenum mode )
724
725    public static native void glFrontFace(
726        int mode
727    );
728
729    // C function void glGenBuffers ( GLsizei n, GLuint *buffers )
730
731    public static native void glGenBuffers(
732        int n,
733        int[] buffers,
734        int offset
735    );
736
737    // C function void glGenBuffers ( GLsizei n, GLuint *buffers )
738
739    public static native void glGenBuffers(
740        int n,
741        java.nio.IntBuffer buffers
742    );
743
744    // C function void glGenerateMipmap ( GLenum target )
745
746    public static native void glGenerateMipmap(
747        int target
748    );
749
750    // C function void glGenFramebuffers ( GLsizei n, GLuint *framebuffers )
751
752    public static native void glGenFramebuffers(
753        int n,
754        int[] framebuffers,
755        int offset
756    );
757
758    // C function void glGenFramebuffers ( GLsizei n, GLuint *framebuffers )
759
760    public static native void glGenFramebuffers(
761        int n,
762        java.nio.IntBuffer framebuffers
763    );
764
765    // C function void glGenRenderbuffers ( GLsizei n, GLuint *renderbuffers )
766
767    public static native void glGenRenderbuffers(
768        int n,
769        int[] renderbuffers,
770        int offset
771    );
772
773    // C function void glGenRenderbuffers ( GLsizei n, GLuint *renderbuffers )
774
775    public static native void glGenRenderbuffers(
776        int n,
777        java.nio.IntBuffer renderbuffers
778    );
779
780    // C function void glGenTextures ( GLsizei n, GLuint *textures )
781
782    public static native void glGenTextures(
783        int n,
784        int[] textures,
785        int offset
786    );
787
788    // C function void glGenTextures ( GLsizei n, GLuint *textures )
789
790    public static native void glGenTextures(
791        int n,
792        java.nio.IntBuffer textures
793    );
794
795    // C function void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
796
797    public static native void glGetActiveAttrib(
798        int program,
799        int index,
800        int bufsize,
801        int[] length,
802        int lengthOffset,
803        int[] size,
804        int sizeOffset,
805        int[] type,
806        int typeOffset,
807        byte[] name,
808        int nameOffset
809    );
810
811    // C function void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
812
813    public static native void glGetActiveAttrib(
814        int program,
815        int index,
816        int bufsize,
817        java.nio.IntBuffer length,
818        java.nio.IntBuffer size,
819        java.nio.IntBuffer type,
820        byte name
821    );
822
823    // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
824
825    public static native void glGetActiveUniform(
826        int program,
827        int index,
828        int bufsize,
829        int[] length,
830        int lengthOffset,
831        int[] size,
832        int sizeOffset,
833        int[] type,
834        int typeOffset,
835        byte[] name,
836        int nameOffset
837    );
838
839    // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
840
841    public static native void glGetActiveUniform(
842        int program,
843        int index,
844        int bufsize,
845        java.nio.IntBuffer length,
846        java.nio.IntBuffer size,
847        java.nio.IntBuffer type,
848        byte name
849    );
850
851    // C function void glGetAttachedShaders ( GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders )
852
853    public static native void glGetAttachedShaders(
854        int program,
855        int maxcount,
856        int[] count,
857        int countOffset,
858        int[] shaders,
859        int shadersOffset
860    );
861
862    // C function void glGetAttachedShaders ( GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders )
863
864    public static native void glGetAttachedShaders(
865        int program,
866        int maxcount,
867        java.nio.IntBuffer count,
868        java.nio.IntBuffer shaders
869    );
870
871    // C function int glGetAttribLocation ( GLuint program, const char *name )
872
873    public static native int glGetAttribLocation(
874        int program,
875        String name
876    );
877
878    // C function void glGetBooleanv ( GLenum pname, GLboolean *params )
879
880    public static native void glGetBooleanv(
881        int pname,
882        boolean[] params,
883        int offset
884    );
885
886    // C function void glGetBooleanv ( GLenum pname, GLboolean *params )
887
888    public static native void glGetBooleanv(
889        int pname,
890        java.nio.IntBuffer params
891    );
892
893    // C function void glGetBufferParameteriv ( GLenum target, GLenum pname, GLint *params )
894
895    public static native void glGetBufferParameteriv(
896        int target,
897        int pname,
898        int[] params,
899        int offset
900    );
901
902    // C function void glGetBufferParameteriv ( GLenum target, GLenum pname, GLint *params )
903
904    public static native void glGetBufferParameteriv(
905        int target,
906        int pname,
907        java.nio.IntBuffer params
908    );
909
910    // C function GLenum glGetError ( void )
911
912    public static native int glGetError(
913    );
914
915    // C function void glGetFloatv ( GLenum pname, GLfloat *params )
916
917    public static native void glGetFloatv(
918        int pname,
919        float[] params,
920        int offset
921    );
922
923    // C function void glGetFloatv ( GLenum pname, GLfloat *params )
924
925    public static native void glGetFloatv(
926        int pname,
927        java.nio.FloatBuffer params
928    );
929
930    // C function void glGetFramebufferAttachmentParameteriv ( GLenum target, GLenum attachment, GLenum pname, GLint *params )
931
932    public static native void glGetFramebufferAttachmentParameteriv(
933        int target,
934        int attachment,
935        int pname,
936        int[] params,
937        int offset
938    );
939
940    // C function void glGetFramebufferAttachmentParameteriv ( GLenum target, GLenum attachment, GLenum pname, GLint *params )
941
942    public static native void glGetFramebufferAttachmentParameteriv(
943        int target,
944        int attachment,
945        int pname,
946        java.nio.IntBuffer params
947    );
948
949    // C function void glGetIntegerv ( GLenum pname, GLint *params )
950
951    public static native void glGetIntegerv(
952        int pname,
953        int[] params,
954        int offset
955    );
956
957    // C function void glGetIntegerv ( GLenum pname, GLint *params )
958
959    public static native void glGetIntegerv(
960        int pname,
961        java.nio.IntBuffer params
962    );
963
964    // C function void glGetProgramiv ( GLuint program, GLenum pname, GLint *params )
965
966    public static native void glGetProgramiv(
967        int program,
968        int pname,
969        int[] params,
970        int offset
971    );
972
973    // C function void glGetProgramiv ( GLuint program, GLenum pname, GLint *params )
974
975    public static native void glGetProgramiv(
976        int program,
977        int pname,
978        java.nio.IntBuffer params
979    );
980
981    // C function void glGetProgramInfoLog( GLuint program, GLsizei maxLength, GLsizei * length,
982 	//     GLchar * infoLog);
983
984    public static native String glGetProgramInfoLog(
985        int program
986    );
987    // C function void glGetRenderbufferParameteriv ( GLenum target, GLenum pname, GLint *params )
988
989    public static native void glGetRenderbufferParameteriv(
990        int target,
991        int pname,
992        int[] params,
993        int offset
994    );
995
996    // C function void glGetRenderbufferParameteriv ( GLenum target, GLenum pname, GLint *params )
997
998    public static native void glGetRenderbufferParameteriv(
999        int target,
1000        int pname,
1001        java.nio.IntBuffer params
1002    );
1003
1004    // C function void glGetShaderiv ( GLuint shader, GLenum pname, GLint *params )
1005
1006    public static native void glGetShaderiv(
1007        int shader,
1008        int pname,
1009        int[] params,
1010        int offset
1011    );
1012
1013    // C function void glGetShaderiv ( GLuint shader, GLenum pname, GLint *params )
1014
1015    public static native void glGetShaderiv(
1016        int shader,
1017        int pname,
1018        java.nio.IntBuffer params
1019    );
1020
1021    // C function void glGetShaderInfoLog( GLuint shader, GLsizei maxLength, GLsizei * length,
1022 	//     GLchar * infoLog);
1023
1024    public static native String glGetShaderInfoLog(
1025        int shader
1026    );
1027    // C function void glGetShaderPrecisionFormat ( GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision )
1028
1029    public static native void glGetShaderPrecisionFormat(
1030        int shadertype,
1031        int precisiontype,
1032        int[] range,
1033        int rangeOffset,
1034        int[] precision,
1035        int precisionOffset
1036    );
1037
1038    // C function void glGetShaderPrecisionFormat ( GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision )
1039
1040    public static native void glGetShaderPrecisionFormat(
1041        int shadertype,
1042        int precisiontype,
1043        java.nio.IntBuffer range,
1044        java.nio.IntBuffer precision
1045    );
1046
1047    // C function void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source )
1048
1049    public static native void glGetShaderSource(
1050        int shader,
1051        int bufsize,
1052        int[] length,
1053        int lengthOffset,
1054        byte[] source,
1055        int sourceOffset
1056    );
1057
1058    // C function void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source )
1059
1060    public static native void glGetShaderSource(
1061        int shader,
1062        int bufsize,
1063        java.nio.IntBuffer length,
1064        byte source
1065    );
1066
1067    // C function const GLubyte * glGetString ( GLenum name )
1068
1069    public static native String glGetString(
1070        int name
1071    );
1072    // C function void glGetTexParameterfv ( GLenum target, GLenum pname, GLfloat *params )
1073
1074    public static native void glGetTexParameterfv(
1075        int target,
1076        int pname,
1077        float[] params,
1078        int offset
1079    );
1080
1081    // C function void glGetTexParameterfv ( GLenum target, GLenum pname, GLfloat *params )
1082
1083    public static native void glGetTexParameterfv(
1084        int target,
1085        int pname,
1086        java.nio.FloatBuffer params
1087    );
1088
1089    // C function void glGetTexParameteriv ( GLenum target, GLenum pname, GLint *params )
1090
1091    public static native void glGetTexParameteriv(
1092        int target,
1093        int pname,
1094        int[] params,
1095        int offset
1096    );
1097
1098    // C function void glGetTexParameteriv ( GLenum target, GLenum pname, GLint *params )
1099
1100    public static native void glGetTexParameteriv(
1101        int target,
1102        int pname,
1103        java.nio.IntBuffer params
1104    );
1105
1106    // C function void glGetUniformfv ( GLuint program, GLint location, GLfloat *params )
1107
1108    public static native void glGetUniformfv(
1109        int program,
1110        int location,
1111        float[] params,
1112        int offset
1113    );
1114
1115    // C function void glGetUniformfv ( GLuint program, GLint location, GLfloat *params )
1116
1117    public static native void glGetUniformfv(
1118        int program,
1119        int location,
1120        java.nio.FloatBuffer params
1121    );
1122
1123    // C function void glGetUniformiv ( GLuint program, GLint location, GLint *params )
1124
1125    public static native void glGetUniformiv(
1126        int program,
1127        int location,
1128        int[] params,
1129        int offset
1130    );
1131
1132    // C function void glGetUniformiv ( GLuint program, GLint location, GLint *params )
1133
1134    public static native void glGetUniformiv(
1135        int program,
1136        int location,
1137        java.nio.IntBuffer params
1138    );
1139
1140    // C function int glGetUniformLocation ( GLuint program, const char *name )
1141
1142    public static native int glGetUniformLocation(
1143        int program,
1144        String name
1145    );
1146
1147    // C function void glGetVertexAttribfv ( GLuint index, GLenum pname, GLfloat *params )
1148
1149    public static native void glGetVertexAttribfv(
1150        int index,
1151        int pname,
1152        float[] params,
1153        int offset
1154    );
1155
1156    // C function void glGetVertexAttribfv ( GLuint index, GLenum pname, GLfloat *params )
1157
1158    public static native void glGetVertexAttribfv(
1159        int index,
1160        int pname,
1161        java.nio.FloatBuffer params
1162    );
1163
1164    // C function void glGetVertexAttribiv ( GLuint index, GLenum pname, GLint *params )
1165
1166    public static native void glGetVertexAttribiv(
1167        int index,
1168        int pname,
1169        int[] params,
1170        int offset
1171    );
1172
1173    // C function void glGetVertexAttribiv ( GLuint index, GLenum pname, GLint *params )
1174
1175    public static native void glGetVertexAttribiv(
1176        int index,
1177        int pname,
1178        java.nio.IntBuffer params
1179    );
1180
1181    // C function void glHint ( GLenum target, GLenum mode )
1182
1183    public static native void glHint(
1184        int target,
1185        int mode
1186    );
1187
1188    // C function GLboolean glIsBuffer ( GLuint buffer )
1189
1190    public static native boolean glIsBuffer(
1191        int buffer
1192    );
1193
1194    // C function GLboolean glIsEnabled ( GLenum cap )
1195
1196    public static native boolean glIsEnabled(
1197        int cap
1198    );
1199
1200    // C function GLboolean glIsFramebuffer ( GLuint framebuffer )
1201
1202    public static native boolean glIsFramebuffer(
1203        int framebuffer
1204    );
1205
1206    // C function GLboolean glIsProgram ( GLuint program )
1207
1208    public static native boolean glIsProgram(
1209        int program
1210    );
1211
1212    // C function GLboolean glIsRenderbuffer ( GLuint renderbuffer )
1213
1214    public static native boolean glIsRenderbuffer(
1215        int renderbuffer
1216    );
1217
1218    // C function GLboolean glIsShader ( GLuint shader )
1219
1220    public static native boolean glIsShader(
1221        int shader
1222    );
1223
1224    // C function GLboolean glIsTexture ( GLuint texture )
1225
1226    public static native boolean glIsTexture(
1227        int texture
1228    );
1229
1230    // C function void glLineWidth ( GLfloat width )
1231
1232    public static native void glLineWidth(
1233        float width
1234    );
1235
1236    // C function void glLinkProgram ( GLuint program )
1237
1238    public static native void glLinkProgram(
1239        int program
1240    );
1241
1242    // C function void glPixelStorei ( GLenum pname, GLint param )
1243
1244    public static native void glPixelStorei(
1245        int pname,
1246        int param
1247    );
1248
1249    // C function void glPolygonOffset ( GLfloat factor, GLfloat units )
1250
1251    public static native void glPolygonOffset(
1252        float factor,
1253        float units
1254    );
1255
1256    // C function void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels )
1257
1258    public static native void glReadPixels(
1259        int x,
1260        int y,
1261        int width,
1262        int height,
1263        int format,
1264        int type,
1265        java.nio.Buffer pixels
1266    );
1267
1268    // C function void glReleaseShaderCompiler ( void )
1269
1270    public static native void glReleaseShaderCompiler(
1271    );
1272
1273    // C function void glRenderbufferStorage ( GLenum target, GLenum internalformat, GLsizei width, GLsizei height )
1274
1275    public static native void glRenderbufferStorage(
1276        int target,
1277        int internalformat,
1278        int width,
1279        int height
1280    );
1281
1282    // C function void glSampleCoverage ( GLclampf value, GLboolean invert )
1283
1284    public static native void glSampleCoverage(
1285        float value,
1286        boolean invert
1287    );
1288
1289    // C function void glScissor ( GLint x, GLint y, GLsizei width, GLsizei height )
1290
1291    public static native void glScissor(
1292        int x,
1293        int y,
1294        int width,
1295        int height
1296    );
1297
1298    // C function void glShaderBinary ( GLsizei n, const GLuint *shaders, GLenum binaryformat, const GLvoid *binary, GLsizei length )
1299
1300    public static native void glShaderBinary(
1301        int n,
1302        int[] shaders,
1303        int offset,
1304        int binaryformat,
1305        java.nio.Buffer binary,
1306        int length
1307    );
1308
1309    // C function void glShaderBinary ( GLsizei n, const GLuint *shaders, GLenum binaryformat, const GLvoid *binary, GLsizei length )
1310
1311    public static native void glShaderBinary(
1312        int n,
1313        java.nio.IntBuffer shaders,
1314        int binaryformat,
1315        java.nio.Buffer binary,
1316        int length
1317    );
1318
1319    // C function void glShaderSource ( GLuint shader, GLsizei count, const GLchar ** string, const GLint* length )
1320
1321    public static native void glShaderSource(
1322        int shader,
1323        String string
1324    );
1325    // C function void glStencilFunc ( GLenum func, GLint ref, GLuint mask )
1326
1327    public static native void glStencilFunc(
1328        int func,
1329        int ref,
1330        int mask
1331    );
1332
1333    // C function void glStencilFuncSeparate ( GLenum face, GLenum func, GLint ref, GLuint mask )
1334
1335    public static native void glStencilFuncSeparate(
1336        int face,
1337        int func,
1338        int ref,
1339        int mask
1340    );
1341
1342    // C function void glStencilMask ( GLuint mask )
1343
1344    public static native void glStencilMask(
1345        int mask
1346    );
1347
1348    // C function void glStencilMaskSeparate ( GLenum face, GLuint mask )
1349
1350    public static native void glStencilMaskSeparate(
1351        int face,
1352        int mask
1353    );
1354
1355    // C function void glStencilOp ( GLenum fail, GLenum zfail, GLenum zpass )
1356
1357    public static native void glStencilOp(
1358        int fail,
1359        int zfail,
1360        int zpass
1361    );
1362
1363    // C function void glStencilOpSeparate ( GLenum face, GLenum fail, GLenum zfail, GLenum zpass )
1364
1365    public static native void glStencilOpSeparate(
1366        int face,
1367        int fail,
1368        int zfail,
1369        int zpass
1370    );
1371
1372    // C function void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels )
1373
1374    public static native void glTexImage2D(
1375        int target,
1376        int level,
1377        int internalformat,
1378        int width,
1379        int height,
1380        int border,
1381        int format,
1382        int type,
1383        java.nio.Buffer pixels
1384    );
1385
1386    // C function void glTexParameterf ( GLenum target, GLenum pname, GLfloat param )
1387
1388    public static native void glTexParameterf(
1389        int target,
1390        int pname,
1391        float param
1392    );
1393
1394    // C function void glTexParameterfv ( GLenum target, GLenum pname, const GLfloat *params )
1395
1396    public static native void glTexParameterfv(
1397        int target,
1398        int pname,
1399        float[] params,
1400        int offset
1401    );
1402
1403    // C function void glTexParameterfv ( GLenum target, GLenum pname, const GLfloat *params )
1404
1405    public static native void glTexParameterfv(
1406        int target,
1407        int pname,
1408        java.nio.FloatBuffer params
1409    );
1410
1411    // C function void glTexParameteri ( GLenum target, GLenum pname, GLint param )
1412
1413    public static native void glTexParameteri(
1414        int target,
1415        int pname,
1416        int param
1417    );
1418
1419    // C function void glTexParameteriv ( GLenum target, GLenum pname, const GLint *params )
1420
1421    public static native void glTexParameteriv(
1422        int target,
1423        int pname,
1424        int[] params,
1425        int offset
1426    );
1427
1428    // C function void glTexParameteriv ( GLenum target, GLenum pname, const GLint *params )
1429
1430    public static native void glTexParameteriv(
1431        int target,
1432        int pname,
1433        java.nio.IntBuffer params
1434    );
1435
1436    // C function void glTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels )
1437
1438    public static native void glTexSubImage2D(
1439        int target,
1440        int level,
1441        int xoffset,
1442        int yoffset,
1443        int width,
1444        int height,
1445        int format,
1446        int type,
1447        java.nio.Buffer pixels
1448    );
1449
1450    // C function void glUniform1f ( GLint location, GLfloat x )
1451
1452    public static native void glUniform1f(
1453        int location,
1454        float x
1455    );
1456
1457    // C function void glUniform1fv ( GLint location, GLsizei count, const GLfloat *v )
1458
1459    public static native void glUniform1fv(
1460        int location,
1461        int count,
1462        float[] v,
1463        int offset
1464    );
1465
1466    // C function void glUniform1fv ( GLint location, GLsizei count, const GLfloat *v )
1467
1468    public static native void glUniform1fv(
1469        int location,
1470        int count,
1471        java.nio.FloatBuffer v
1472    );
1473
1474    // C function void glUniform1i ( GLint location, GLint x )
1475
1476    public static native void glUniform1i(
1477        int location,
1478        int x
1479    );
1480
1481    // C function void glUniform1iv ( GLint location, GLsizei count, const GLint *v )
1482
1483    public static native void glUniform1iv(
1484        int location,
1485        int count,
1486        int[] v,
1487        int offset
1488    );
1489
1490    // C function void glUniform1iv ( GLint location, GLsizei count, const GLint *v )
1491
1492    public static native void glUniform1iv(
1493        int location,
1494        int count,
1495        java.nio.IntBuffer v
1496    );
1497
1498    // C function void glUniform2f ( GLint location, GLfloat x, GLfloat y )
1499
1500    public static native void glUniform2f(
1501        int location,
1502        float x,
1503        float y
1504    );
1505
1506    // C function void glUniform2fv ( GLint location, GLsizei count, const GLfloat *v )
1507
1508    public static native void glUniform2fv(
1509        int location,
1510        int count,
1511        float[] v,
1512        int offset
1513    );
1514
1515    // C function void glUniform2fv ( GLint location, GLsizei count, const GLfloat *v )
1516
1517    public static native void glUniform2fv(
1518        int location,
1519        int count,
1520        java.nio.FloatBuffer v
1521    );
1522
1523    // C function void glUniform2i ( GLint location, GLint x, GLint y )
1524
1525    public static native void glUniform2i(
1526        int location,
1527        int x,
1528        int y
1529    );
1530
1531    // C function void glUniform2iv ( GLint location, GLsizei count, const GLint *v )
1532
1533    public static native void glUniform2iv(
1534        int location,
1535        int count,
1536        int[] v,
1537        int offset
1538    );
1539
1540    // C function void glUniform2iv ( GLint location, GLsizei count, const GLint *v )
1541
1542    public static native void glUniform2iv(
1543        int location,
1544        int count,
1545        java.nio.IntBuffer v
1546    );
1547
1548    // C function void glUniform3f ( GLint location, GLfloat x, GLfloat y, GLfloat z )
1549
1550    public static native void glUniform3f(
1551        int location,
1552        float x,
1553        float y,
1554        float z
1555    );
1556
1557    // C function void glUniform3fv ( GLint location, GLsizei count, const GLfloat *v )
1558
1559    public static native void glUniform3fv(
1560        int location,
1561        int count,
1562        float[] v,
1563        int offset
1564    );
1565
1566    // C function void glUniform3fv ( GLint location, GLsizei count, const GLfloat *v )
1567
1568    public static native void glUniform3fv(
1569        int location,
1570        int count,
1571        java.nio.FloatBuffer v
1572    );
1573
1574    // C function void glUniform3i ( GLint location, GLint x, GLint y, GLint z )
1575
1576    public static native void glUniform3i(
1577        int location,
1578        int x,
1579        int y,
1580        int z
1581    );
1582
1583    // C function void glUniform3iv ( GLint location, GLsizei count, const GLint *v )
1584
1585    public static native void glUniform3iv(
1586        int location,
1587        int count,
1588        int[] v,
1589        int offset
1590    );
1591
1592    // C function void glUniform3iv ( GLint location, GLsizei count, const GLint *v )
1593
1594    public static native void glUniform3iv(
1595        int location,
1596        int count,
1597        java.nio.IntBuffer v
1598    );
1599
1600    // C function void glUniform4f ( GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w )
1601
1602    public static native void glUniform4f(
1603        int location,
1604        float x,
1605        float y,
1606        float z,
1607        float w
1608    );
1609
1610    // C function void glUniform4fv ( GLint location, GLsizei count, const GLfloat *v )
1611
1612    public static native void glUniform4fv(
1613        int location,
1614        int count,
1615        float[] v,
1616        int offset
1617    );
1618
1619    // C function void glUniform4fv ( GLint location, GLsizei count, const GLfloat *v )
1620
1621    public static native void glUniform4fv(
1622        int location,
1623        int count,
1624        java.nio.FloatBuffer v
1625    );
1626
1627    // C function void glUniform4i ( GLint location, GLint x, GLint y, GLint z, GLint w )
1628
1629    public static native void glUniform4i(
1630        int location,
1631        int x,
1632        int y,
1633        int z,
1634        int w
1635    );
1636
1637    // C function void glUniform4iv ( GLint location, GLsizei count, const GLint *v )
1638
1639    public static native void glUniform4iv(
1640        int location,
1641        int count,
1642        int[] v,
1643        int offset
1644    );
1645
1646    // C function void glUniform4iv ( GLint location, GLsizei count, const GLint *v )
1647
1648    public static native void glUniform4iv(
1649        int location,
1650        int count,
1651        java.nio.IntBuffer v
1652    );
1653
1654    // C function void glUniformMatrix2fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
1655
1656    public static native void glUniformMatrix2fv(
1657        int location,
1658        int count,
1659        boolean transpose,
1660        float[] value,
1661        int offset
1662    );
1663
1664    // C function void glUniformMatrix2fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
1665
1666    public static native void glUniformMatrix2fv(
1667        int location,
1668        int count,
1669        boolean transpose,
1670        java.nio.FloatBuffer value
1671    );
1672
1673    // C function void glUniformMatrix3fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
1674
1675    public static native void glUniformMatrix3fv(
1676        int location,
1677        int count,
1678        boolean transpose,
1679        float[] value,
1680        int offset
1681    );
1682
1683    // C function void glUniformMatrix3fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
1684
1685    public static native void glUniformMatrix3fv(
1686        int location,
1687        int count,
1688        boolean transpose,
1689        java.nio.FloatBuffer value
1690    );
1691
1692    // C function void glUniformMatrix4fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
1693
1694    public static native void glUniformMatrix4fv(
1695        int location,
1696        int count,
1697        boolean transpose,
1698        float[] value,
1699        int offset
1700    );
1701
1702    // C function void glUniformMatrix4fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
1703
1704    public static native void glUniformMatrix4fv(
1705        int location,
1706        int count,
1707        boolean transpose,
1708        java.nio.FloatBuffer value
1709    );
1710
1711    // C function void glUseProgram ( GLuint program )
1712
1713    public static native void glUseProgram(
1714        int program
1715    );
1716
1717    // C function void glValidateProgram ( GLuint program )
1718
1719    public static native void glValidateProgram(
1720        int program
1721    );
1722
1723    // C function void glVertexAttrib1f ( GLuint indx, GLfloat x )
1724
1725    public static native void glVertexAttrib1f(
1726        int indx,
1727        float x
1728    );
1729
1730    // C function void glVertexAttrib1fv ( GLuint indx, const GLfloat *values )
1731
1732    public static native void glVertexAttrib1fv(
1733        int indx,
1734        float[] values,
1735        int offset
1736    );
1737
1738    // C function void glVertexAttrib1fv ( GLuint indx, const GLfloat *values )
1739
1740    public static native void glVertexAttrib1fv(
1741        int indx,
1742        java.nio.FloatBuffer values
1743    );
1744
1745    // C function void glVertexAttrib2f ( GLuint indx, GLfloat x, GLfloat y )
1746
1747    public static native void glVertexAttrib2f(
1748        int indx,
1749        float x,
1750        float y
1751    );
1752
1753    // C function void glVertexAttrib2fv ( GLuint indx, const GLfloat *values )
1754
1755    public static native void glVertexAttrib2fv(
1756        int indx,
1757        float[] values,
1758        int offset
1759    );
1760
1761    // C function void glVertexAttrib2fv ( GLuint indx, const GLfloat *values )
1762
1763    public static native void glVertexAttrib2fv(
1764        int indx,
1765        java.nio.FloatBuffer values
1766    );
1767
1768    // C function void glVertexAttrib3f ( GLuint indx, GLfloat x, GLfloat y, GLfloat z )
1769
1770    public static native void glVertexAttrib3f(
1771        int indx,
1772        float x,
1773        float y,
1774        float z
1775    );
1776
1777    // C function void glVertexAttrib3fv ( GLuint indx, const GLfloat *values )
1778
1779    public static native void glVertexAttrib3fv(
1780        int indx,
1781        float[] values,
1782        int offset
1783    );
1784
1785    // C function void glVertexAttrib3fv ( GLuint indx, const GLfloat *values )
1786
1787    public static native void glVertexAttrib3fv(
1788        int indx,
1789        java.nio.FloatBuffer values
1790    );
1791
1792    // C function void glVertexAttrib4f ( GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w )
1793
1794    public static native void glVertexAttrib4f(
1795        int indx,
1796        float x,
1797        float y,
1798        float z,
1799        float w
1800    );
1801
1802    // C function void glVertexAttrib4fv ( GLuint indx, const GLfloat *values )
1803
1804    public static native void glVertexAttrib4fv(
1805        int indx,
1806        float[] values,
1807        int offset
1808    );
1809
1810    // C function void glVertexAttrib4fv ( GLuint indx, const GLfloat *values )
1811
1812    public static native void glVertexAttrib4fv(
1813        int indx,
1814        java.nio.FloatBuffer values
1815    );
1816
1817    // C function void glVertexAttribPointer ( GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *ptr )
1818
1819    private static native void glVertexAttribPointerBounds(
1820        int indx,
1821        int size,
1822        int type,
1823        boolean normalized,
1824        int stride,
1825        java.nio.Buffer ptr,
1826        int remaining
1827    );
1828
1829    public static void glVertexAttribPointer(
1830        int indx,
1831        int size,
1832        int type,
1833        boolean normalized,
1834        int stride,
1835        java.nio.Buffer ptr
1836    ) {
1837        glVertexAttribPointerBounds(
1838            indx,
1839            size,
1840            type,
1841            normalized,
1842            stride,
1843            ptr,
1844            ptr.remaining()
1845        );
1846    }
1847
1848    // C function void glViewport ( GLint x, GLint y, GLsizei width, GLsizei height )
1849
1850    public static native void glViewport(
1851        int x,
1852        int y,
1853        int width,
1854        int height
1855    );
1856
1857}
1858