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