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