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