• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
20 package android.opengl;
21 
22 /** OpenGL ES 2.0
23  */
24 public 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 
_nativeClassInit()328     native private static void _nativeClassInit();
329     static {
_nativeClassInit()330 	    _nativeClassInit();
331     }
332     // C function void glActiveTexture ( GLenum texture )
333 
glActiveTexture( int texture )334     public static native void glActiveTexture(
335         int texture
336     );
337 
338     // C function void glAttachShader ( GLuint program, GLuint shader )
339 
glAttachShader( int program, int shader )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 
glBindAttribLocation( int program, int index, String name )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 
glBindBuffer( int target, int buffer )355     public static native void glBindBuffer(
356         int target,
357         int buffer
358     );
359 
360     // C function void glBindFramebuffer ( GLenum target, GLuint framebuffer )
361 
glBindFramebuffer( int target, int framebuffer )362     public static native void glBindFramebuffer(
363         int target,
364         int framebuffer
365     );
366 
367     // C function void glBindRenderbuffer ( GLenum target, GLuint renderbuffer )
368 
glBindRenderbuffer( int target, int renderbuffer )369     public static native void glBindRenderbuffer(
370         int target,
371         int renderbuffer
372     );
373 
374     // C function void glBindTexture ( GLenum target, GLuint texture )
375 
glBindTexture( int target, int texture )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 
glBlendColor( float red, float green, float blue, float alpha )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 
glBlendEquation( int mode )392     public static native void glBlendEquation(
393         int mode
394     );
395 
396     // C function void glBlendEquationSeparate ( GLenum modeRGB, GLenum modeAlpha )
397 
glBlendEquationSeparate( int modeRGB, int modeAlpha )398     public static native void glBlendEquationSeparate(
399         int modeRGB,
400         int modeAlpha
401     );
402 
403     // C function void glBlendFunc ( GLenum sfactor, GLenum dfactor )
404 
glBlendFunc( int sfactor, int dfactor )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 
glBlendFuncSeparate( int srcRGB, int dstRGB, int srcAlpha, int dstAlpha )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 
glBufferData( int target, int size, java.nio.Buffer data, int usage )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 
glBufferSubData( int target, int offset, int size, java.nio.Buffer data )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 
glCheckFramebufferStatus( int target )439     public static native int glCheckFramebufferStatus(
440         int target
441     );
442 
443     // C function void glClear ( GLbitfield mask )
444 
glClear( int mask )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 
glClearColor( float red, float green, float blue, float alpha )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 
glClearDepthf( float depth )460     public static native void glClearDepthf(
461         float depth
462     );
463 
464     // C function void glClearStencil ( GLint s )
465 
glClearStencil( int s )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 
glColorMask( boolean red, boolean green, boolean blue, boolean alpha )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 
glCompileShader( int shader )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 
glCompressedTexImage2D( int target, int level, int internalformat, int width, int height, int border, int imageSize, java.nio.Buffer data )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 
glCompressedTexSubImage2D( int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, java.nio.Buffer data )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 
glCopyTexImage2D( int target, int level, int internalformat, int x, int y, int width, int height, int border )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 
glCopyTexSubImage2D( int target, int level, int xoffset, int yoffset, int x, int y, int width, int height )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 
glCreateProgram( )540     public static native int glCreateProgram(
541     );
542 
543     // C function GLuint glCreateShader ( GLenum type )
544 
glCreateShader( int type )545     public static native int glCreateShader(
546         int type
547     );
548 
549     // C function void glCullFace ( GLenum mode )
550 
glCullFace( int mode )551     public static native void glCullFace(
552         int mode
553     );
554 
555     // C function void glDeleteBuffers ( GLsizei n, const GLuint *buffers )
556 
glDeleteBuffers( int n, int[] buffers, int offset )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 
glDeleteBuffers( int n, java.nio.IntBuffer buffers )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 
glDeleteFramebuffers( int n, int[] framebuffers, int offset )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 
glDeleteFramebuffers( int n, java.nio.IntBuffer framebuffers )580     public static native void glDeleteFramebuffers(
581         int n,
582         java.nio.IntBuffer framebuffers
583     );
584 
585     // C function void glDeleteProgram ( GLuint program )
586 
glDeleteProgram( int program )587     public static native void glDeleteProgram(
588         int program
589     );
590 
591     // C function void glDeleteRenderbuffers ( GLsizei n, const GLuint *renderbuffers )
592 
glDeleteRenderbuffers( int n, int[] renderbuffers, int offset )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 
glDeleteRenderbuffers( int n, java.nio.IntBuffer renderbuffers )601     public static native void glDeleteRenderbuffers(
602         int n,
603         java.nio.IntBuffer renderbuffers
604     );
605 
606     // C function void glDeleteShader ( GLuint shader )
607 
glDeleteShader( int shader )608     public static native void glDeleteShader(
609         int shader
610     );
611 
612     // C function void glDeleteTextures ( GLsizei n, const GLuint *textures )
613 
glDeleteTextures( int n, int[] textures, int offset )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 
glDeleteTextures( int n, java.nio.IntBuffer textures )622     public static native void glDeleteTextures(
623         int n,
624         java.nio.IntBuffer textures
625     );
626 
627     // C function void glDepthFunc ( GLenum func )
628 
glDepthFunc( int func )629     public static native void glDepthFunc(
630         int func
631     );
632 
633     // C function void glDepthMask ( GLboolean flag )
634 
glDepthMask( boolean flag )635     public static native void glDepthMask(
636         boolean flag
637     );
638 
639     // C function void glDepthRangef ( GLclampf zNear, GLclampf zFar )
640 
glDepthRangef( float zNear, float zFar )641     public static native void glDepthRangef(
642         float zNear,
643         float zFar
644     );
645 
646     // C function void glDetachShader ( GLuint program, GLuint shader )
647 
glDetachShader( int program, int shader )648     public static native void glDetachShader(
649         int program,
650         int shader
651     );
652 
653     // C function void glDisable ( GLenum cap )
654 
glDisable( int cap )655     public static native void glDisable(
656         int cap
657     );
658 
659     // C function void glDisableVertexAttribArray ( GLuint index )
660 
glDisableVertexAttribArray( int index )661     public static native void glDisableVertexAttribArray(
662         int index
663     );
664 
665     // C function void glDrawArrays ( GLenum mode, GLint first, GLsizei count )
666 
glDrawArrays( int mode, int first, int count )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 
glDrawElements( int mode, int count, int type, int offset )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 
glDrawElements( int mode, int count, int type, java.nio.Buffer indices )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 
glEnable( int cap )693     public static native void glEnable(
694         int cap
695     );
696 
697     // C function void glEnableVertexAttribArray ( GLuint index )
698 
glEnableVertexAttribArray( int index )699     public static native void glEnableVertexAttribArray(
700         int index
701     );
702 
703     // C function void glFinish ( void )
704 
glFinish( )705     public static native void glFinish(
706     );
707 
708     // C function void glFlush ( void )
709 
glFlush( )710     public static native void glFlush(
711     );
712 
713     // C function void glFramebufferRenderbuffer ( GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer )
714 
glFramebufferRenderbuffer( int target, int attachment, int renderbuffertarget, int renderbuffer )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 
glFramebufferTexture2D( int target, int attachment, int textarget, int texture, int level )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 
glFrontFace( int mode )734     public static native void glFrontFace(
735         int mode
736     );
737 
738     // C function void glGenBuffers ( GLsizei n, GLuint *buffers )
739 
glGenBuffers( int n, int[] buffers, int offset )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 
glGenBuffers( int n, java.nio.IntBuffer buffers )748     public static native void glGenBuffers(
749         int n,
750         java.nio.IntBuffer buffers
751     );
752 
753     // C function void glGenerateMipmap ( GLenum target )
754 
glGenerateMipmap( int target )755     public static native void glGenerateMipmap(
756         int target
757     );
758 
759     // C function void glGenFramebuffers ( GLsizei n, GLuint *framebuffers )
760 
glGenFramebuffers( int n, int[] framebuffers, int offset )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 
glGenFramebuffers( int n, java.nio.IntBuffer framebuffers )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 
glGenRenderbuffers( int n, int[] renderbuffers, int offset )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 
glGenRenderbuffers( int n, java.nio.IntBuffer renderbuffers )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 
glGenTextures( int n, int[] textures, int offset )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 
glGenTextures( int n, java.nio.IntBuffer textures )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 
glGetActiveAttrib( int program, int index, int bufsize, int[] length, int lengthOffset, int[] size, int sizeOffset, int[] type, int typeOffset, byte[] name, int nameOffset )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 
glGetActiveAttrib( int program, int index, int bufsize, java.nio.IntBuffer length, java.nio.IntBuffer size, java.nio.IntBuffer type, byte name )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 glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
833 
glGetActiveUniform( int program, int index, int bufsize, int[] length, int lengthOffset, int[] size, int sizeOffset, int[] type, int typeOffset, byte[] name, int nameOffset )834     public static native void glGetActiveUniform(
835         int program,
836         int index,
837         int bufsize,
838         int[] length,
839         int lengthOffset,
840         int[] size,
841         int sizeOffset,
842         int[] type,
843         int typeOffset,
844         byte[] name,
845         int nameOffset
846     );
847 
848     // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
849 
glGetActiveUniform( int program, int index, int bufsize, java.nio.IntBuffer length, java.nio.IntBuffer size, java.nio.IntBuffer type, byte name )850     public static native void glGetActiveUniform(
851         int program,
852         int index,
853         int bufsize,
854         java.nio.IntBuffer length,
855         java.nio.IntBuffer size,
856         java.nio.IntBuffer type,
857         byte name
858     );
859 
860     // C function void glGetAttachedShaders ( GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders )
861 
glGetAttachedShaders( int program, int maxcount, int[] count, int countOffset, int[] shaders, int shadersOffset )862     public static native void glGetAttachedShaders(
863         int program,
864         int maxcount,
865         int[] count,
866         int countOffset,
867         int[] shaders,
868         int shadersOffset
869     );
870 
871     // C function void glGetAttachedShaders ( GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders )
872 
glGetAttachedShaders( int program, int maxcount, java.nio.IntBuffer count, java.nio.IntBuffer shaders )873     public static native void glGetAttachedShaders(
874         int program,
875         int maxcount,
876         java.nio.IntBuffer count,
877         java.nio.IntBuffer shaders
878     );
879 
880     // C function int glGetAttribLocation ( GLuint program, const char *name )
881 
glGetAttribLocation( int program, String name )882     public static native int glGetAttribLocation(
883         int program,
884         String name
885     );
886 
887     // C function void glGetBooleanv ( GLenum pname, GLboolean *params )
888 
glGetBooleanv( int pname, boolean[] params, int offset )889     public static native void glGetBooleanv(
890         int pname,
891         boolean[] params,
892         int offset
893     );
894 
895     // C function void glGetBooleanv ( GLenum pname, GLboolean *params )
896 
glGetBooleanv( int pname, java.nio.IntBuffer params )897     public static native void glGetBooleanv(
898         int pname,
899         java.nio.IntBuffer params
900     );
901 
902     // C function void glGetBufferParameteriv ( GLenum target, GLenum pname, GLint *params )
903 
glGetBufferParameteriv( int target, int pname, int[] params, int offset )904     public static native void glGetBufferParameteriv(
905         int target,
906         int pname,
907         int[] params,
908         int offset
909     );
910 
911     // C function void glGetBufferParameteriv ( GLenum target, GLenum pname, GLint *params )
912 
glGetBufferParameteriv( int target, int pname, java.nio.IntBuffer params )913     public static native void glGetBufferParameteriv(
914         int target,
915         int pname,
916         java.nio.IntBuffer params
917     );
918 
919     // C function GLenum glGetError ( void )
920 
glGetError( )921     public static native int glGetError(
922     );
923 
924     // C function void glGetFloatv ( GLenum pname, GLfloat *params )
925 
glGetFloatv( int pname, float[] params, int offset )926     public static native void glGetFloatv(
927         int pname,
928         float[] params,
929         int offset
930     );
931 
932     // C function void glGetFloatv ( GLenum pname, GLfloat *params )
933 
glGetFloatv( int pname, java.nio.FloatBuffer params )934     public static native void glGetFloatv(
935         int pname,
936         java.nio.FloatBuffer params
937     );
938 
939     // C function void glGetFramebufferAttachmentParameteriv ( GLenum target, GLenum attachment, GLenum pname, GLint *params )
940 
glGetFramebufferAttachmentParameteriv( int target, int attachment, int pname, int[] params, int offset )941     public static native void glGetFramebufferAttachmentParameteriv(
942         int target,
943         int attachment,
944         int pname,
945         int[] params,
946         int offset
947     );
948 
949     // C function void glGetFramebufferAttachmentParameteriv ( GLenum target, GLenum attachment, GLenum pname, GLint *params )
950 
glGetFramebufferAttachmentParameteriv( int target, int attachment, int pname, java.nio.IntBuffer params )951     public static native void glGetFramebufferAttachmentParameteriv(
952         int target,
953         int attachment,
954         int pname,
955         java.nio.IntBuffer params
956     );
957 
958     // C function void glGetIntegerv ( GLenum pname, GLint *params )
959 
glGetIntegerv( int pname, int[] params, int offset )960     public static native void glGetIntegerv(
961         int pname,
962         int[] params,
963         int offset
964     );
965 
966     // C function void glGetIntegerv ( GLenum pname, GLint *params )
967 
glGetIntegerv( int pname, java.nio.IntBuffer params )968     public static native void glGetIntegerv(
969         int pname,
970         java.nio.IntBuffer params
971     );
972 
973     // C function void glGetProgramiv ( GLuint program, GLenum pname, GLint *params )
974 
glGetProgramiv( int program, int pname, int[] params, int offset )975     public static native void glGetProgramiv(
976         int program,
977         int pname,
978         int[] params,
979         int offset
980     );
981 
982     // C function void glGetProgramiv ( GLuint program, GLenum pname, GLint *params )
983 
glGetProgramiv( int program, int pname, java.nio.IntBuffer params )984     public static native void glGetProgramiv(
985         int program,
986         int pname,
987         java.nio.IntBuffer params
988     );
989 
990 /*
991  * Copyright (C) 2009 The Android Open Source Project
992  *
993  * Licensed under the Apache License, Version 2.0 (the "License");
994  * you may not use this file except in compliance with the License.
995  * You may obtain a copy of the License at
996  *
997  *      http://www.apache.org/licenses/LICENSE-2.0
998  *
999  * Unless required by applicable law or agreed to in writing, software
1000  * distributed under the License is distributed on an "AS IS" BASIS,
1001  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1002  * See the License for the specific language governing permissions and
1003  * limitations under the License.
1004  */
1005 
1006     // C function void glGetProgramInfoLog( GLuint program, GLsizei maxLength, GLsizei * length,
1007  	//     GLchar * infoLog);
1008 
glGetProgramInfoLog( int program )1009     public static native String glGetProgramInfoLog(
1010         int program
1011     );
1012     // C function void glGetRenderbufferParameteriv ( GLenum target, GLenum pname, GLint *params )
1013 
glGetRenderbufferParameteriv( int target, int pname, int[] params, int offset )1014     public static native void glGetRenderbufferParameteriv(
1015         int target,
1016         int pname,
1017         int[] params,
1018         int offset
1019     );
1020 
1021     // C function void glGetRenderbufferParameteriv ( GLenum target, GLenum pname, GLint *params )
1022 
glGetRenderbufferParameteriv( int target, int pname, java.nio.IntBuffer params )1023     public static native void glGetRenderbufferParameteriv(
1024         int target,
1025         int pname,
1026         java.nio.IntBuffer params
1027     );
1028 
1029     // C function void glGetShaderiv ( GLuint shader, GLenum pname, GLint *params )
1030 
glGetShaderiv( int shader, int pname, int[] params, int offset )1031     public static native void glGetShaderiv(
1032         int shader,
1033         int pname,
1034         int[] params,
1035         int offset
1036     );
1037 
1038     // C function void glGetShaderiv ( GLuint shader, GLenum pname, GLint *params )
1039 
glGetShaderiv( int shader, int pname, java.nio.IntBuffer params )1040     public static native void glGetShaderiv(
1041         int shader,
1042         int pname,
1043         java.nio.IntBuffer params
1044     );
1045 
1046 /*
1047  * Copyright (C) 2009 The Android Open Source Project
1048  *
1049  * Licensed under the Apache License, Version 2.0 (the "License");
1050  * you may not use this file except in compliance with the License.
1051  * You may obtain a copy of the License at
1052  *
1053  *      http://www.apache.org/licenses/LICENSE-2.0
1054  *
1055  * Unless required by applicable law or agreed to in writing, software
1056  * distributed under the License is distributed on an "AS IS" BASIS,
1057  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1058  * See the License for the specific language governing permissions and
1059  * limitations under the License.
1060  */
1061 
1062     // C function void glGetShaderInfoLog( GLuint shader, GLsizei maxLength, GLsizei * length,
1063  	//     GLchar * infoLog);
1064 
glGetShaderInfoLog( int shader )1065     public static native String glGetShaderInfoLog(
1066         int shader
1067     );
1068     // C function void glGetShaderPrecisionFormat ( GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision )
1069 
glGetShaderPrecisionFormat( int shadertype, int precisiontype, int[] range, int rangeOffset, int[] precision, int precisionOffset )1070     public static native void glGetShaderPrecisionFormat(
1071         int shadertype,
1072         int precisiontype,
1073         int[] range,
1074         int rangeOffset,
1075         int[] precision,
1076         int precisionOffset
1077     );
1078 
1079     // C function void glGetShaderPrecisionFormat ( GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision )
1080 
glGetShaderPrecisionFormat( int shadertype, int precisiontype, java.nio.IntBuffer range, java.nio.IntBuffer precision )1081     public static native void glGetShaderPrecisionFormat(
1082         int shadertype,
1083         int precisiontype,
1084         java.nio.IntBuffer range,
1085         java.nio.IntBuffer precision
1086     );
1087 
1088     // C function void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source )
1089 
glGetShaderSource( int shader, int bufsize, int[] length, int lengthOffset, byte[] source, int sourceOffset )1090     public static native void glGetShaderSource(
1091         int shader,
1092         int bufsize,
1093         int[] length,
1094         int lengthOffset,
1095         byte[] source,
1096         int sourceOffset
1097     );
1098 
1099     // C function void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source )
1100 
glGetShaderSource( int shader, int bufsize, java.nio.IntBuffer length, byte source )1101     public static native void glGetShaderSource(
1102         int shader,
1103         int bufsize,
1104         java.nio.IntBuffer length,
1105         byte source
1106     );
1107 
1108 /*
1109  * Copyright (C) 2009 The Android Open Source Project
1110  *
1111  * Licensed under the Apache License, Version 2.0 (the "License");
1112  * you may not use this file except in compliance with the License.
1113  * You may obtain a copy of the License at
1114  *
1115  *      http://www.apache.org/licenses/LICENSE-2.0
1116  *
1117  * Unless required by applicable law or agreed to in writing, software
1118  * distributed under the License is distributed on an "AS IS" BASIS,
1119  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1120  * See the License for the specific language governing permissions and
1121  * limitations under the License.
1122  */
1123 
1124     // C function const GLubyte * glGetString ( GLenum name )
1125 
glGetString( int name )1126     public static native String glGetString(
1127         int name
1128     );
1129     // C function void glGetTexParameterfv ( GLenum target, GLenum pname, GLfloat *params )
1130 
glGetTexParameterfv( int target, int pname, float[] params, int offset )1131     public static native void glGetTexParameterfv(
1132         int target,
1133         int pname,
1134         float[] params,
1135         int offset
1136     );
1137 
1138     // C function void glGetTexParameterfv ( GLenum target, GLenum pname, GLfloat *params )
1139 
glGetTexParameterfv( int target, int pname, java.nio.FloatBuffer params )1140     public static native void glGetTexParameterfv(
1141         int target,
1142         int pname,
1143         java.nio.FloatBuffer params
1144     );
1145 
1146     // C function void glGetTexParameteriv ( GLenum target, GLenum pname, GLint *params )
1147 
glGetTexParameteriv( int target, int pname, int[] params, int offset )1148     public static native void glGetTexParameteriv(
1149         int target,
1150         int pname,
1151         int[] params,
1152         int offset
1153     );
1154 
1155     // C function void glGetTexParameteriv ( GLenum target, GLenum pname, GLint *params )
1156 
glGetTexParameteriv( int target, int pname, java.nio.IntBuffer params )1157     public static native void glGetTexParameteriv(
1158         int target,
1159         int pname,
1160         java.nio.IntBuffer params
1161     );
1162 
1163     // C function void glGetUniformfv ( GLuint program, GLint location, GLfloat *params )
1164 
glGetUniformfv( int program, int location, float[] params, int offset )1165     public static native void glGetUniformfv(
1166         int program,
1167         int location,
1168         float[] params,
1169         int offset
1170     );
1171 
1172     // C function void glGetUniformfv ( GLuint program, GLint location, GLfloat *params )
1173 
glGetUniformfv( int program, int location, java.nio.FloatBuffer params )1174     public static native void glGetUniformfv(
1175         int program,
1176         int location,
1177         java.nio.FloatBuffer params
1178     );
1179 
1180     // C function void glGetUniformiv ( GLuint program, GLint location, GLint *params )
1181 
glGetUniformiv( int program, int location, int[] params, int offset )1182     public static native void glGetUniformiv(
1183         int program,
1184         int location,
1185         int[] params,
1186         int offset
1187     );
1188 
1189     // C function void glGetUniformiv ( GLuint program, GLint location, GLint *params )
1190 
glGetUniformiv( int program, int location, java.nio.IntBuffer params )1191     public static native void glGetUniformiv(
1192         int program,
1193         int location,
1194         java.nio.IntBuffer params
1195     );
1196 
1197     // C function int glGetUniformLocation ( GLuint program, const char *name )
1198 
glGetUniformLocation( int program, String name )1199     public static native int glGetUniformLocation(
1200         int program,
1201         String name
1202     );
1203 
1204     // C function void glGetVertexAttribfv ( GLuint index, GLenum pname, GLfloat *params )
1205 
glGetVertexAttribfv( int index, int pname, float[] params, int offset )1206     public static native void glGetVertexAttribfv(
1207         int index,
1208         int pname,
1209         float[] params,
1210         int offset
1211     );
1212 
1213     // C function void glGetVertexAttribfv ( GLuint index, GLenum pname, GLfloat *params )
1214 
glGetVertexAttribfv( int index, int pname, java.nio.FloatBuffer params )1215     public static native void glGetVertexAttribfv(
1216         int index,
1217         int pname,
1218         java.nio.FloatBuffer params
1219     );
1220 
1221     // C function void glGetVertexAttribiv ( GLuint index, GLenum pname, GLint *params )
1222 
glGetVertexAttribiv( int index, int pname, int[] params, int offset )1223     public static native void glGetVertexAttribiv(
1224         int index,
1225         int pname,
1226         int[] params,
1227         int offset
1228     );
1229 
1230     // C function void glGetVertexAttribiv ( GLuint index, GLenum pname, GLint *params )
1231 
glGetVertexAttribiv( int index, int pname, java.nio.IntBuffer params )1232     public static native void glGetVertexAttribiv(
1233         int index,
1234         int pname,
1235         java.nio.IntBuffer params
1236     );
1237 
1238     // C function void glHint ( GLenum target, GLenum mode )
1239 
glHint( int target, int mode )1240     public static native void glHint(
1241         int target,
1242         int mode
1243     );
1244 
1245     // C function GLboolean glIsBuffer ( GLuint buffer )
1246 
glIsBuffer( int buffer )1247     public static native boolean glIsBuffer(
1248         int buffer
1249     );
1250 
1251     // C function GLboolean glIsEnabled ( GLenum cap )
1252 
glIsEnabled( int cap )1253     public static native boolean glIsEnabled(
1254         int cap
1255     );
1256 
1257     // C function GLboolean glIsFramebuffer ( GLuint framebuffer )
1258 
glIsFramebuffer( int framebuffer )1259     public static native boolean glIsFramebuffer(
1260         int framebuffer
1261     );
1262 
1263     // C function GLboolean glIsProgram ( GLuint program )
1264 
glIsProgram( int program )1265     public static native boolean glIsProgram(
1266         int program
1267     );
1268 
1269     // C function GLboolean glIsRenderbuffer ( GLuint renderbuffer )
1270 
glIsRenderbuffer( int renderbuffer )1271     public static native boolean glIsRenderbuffer(
1272         int renderbuffer
1273     );
1274 
1275     // C function GLboolean glIsShader ( GLuint shader )
1276 
glIsShader( int shader )1277     public static native boolean glIsShader(
1278         int shader
1279     );
1280 
1281     // C function GLboolean glIsTexture ( GLuint texture )
1282 
glIsTexture( int texture )1283     public static native boolean glIsTexture(
1284         int texture
1285     );
1286 
1287     // C function void glLineWidth ( GLfloat width )
1288 
glLineWidth( float width )1289     public static native void glLineWidth(
1290         float width
1291     );
1292 
1293     // C function void glLinkProgram ( GLuint program )
1294 
glLinkProgram( int program )1295     public static native void glLinkProgram(
1296         int program
1297     );
1298 
1299     // C function void glPixelStorei ( GLenum pname, GLint param )
1300 
glPixelStorei( int pname, int param )1301     public static native void glPixelStorei(
1302         int pname,
1303         int param
1304     );
1305 
1306     // C function void glPolygonOffset ( GLfloat factor, GLfloat units )
1307 
glPolygonOffset( float factor, float units )1308     public static native void glPolygonOffset(
1309         float factor,
1310         float units
1311     );
1312 
1313     // C function void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels )
1314 
glReadPixels( int x, int y, int width, int height, int format, int type, java.nio.Buffer pixels )1315     public static native void glReadPixels(
1316         int x,
1317         int y,
1318         int width,
1319         int height,
1320         int format,
1321         int type,
1322         java.nio.Buffer pixels
1323     );
1324 
1325     // C function void glReleaseShaderCompiler ( void )
1326 
glReleaseShaderCompiler( )1327     public static native void glReleaseShaderCompiler(
1328     );
1329 
1330     // C function void glRenderbufferStorage ( GLenum target, GLenum internalformat, GLsizei width, GLsizei height )
1331 
glRenderbufferStorage( int target, int internalformat, int width, int height )1332     public static native void glRenderbufferStorage(
1333         int target,
1334         int internalformat,
1335         int width,
1336         int height
1337     );
1338 
1339     // C function void glSampleCoverage ( GLclampf value, GLboolean invert )
1340 
glSampleCoverage( float value, boolean invert )1341     public static native void glSampleCoverage(
1342         float value,
1343         boolean invert
1344     );
1345 
1346     // C function void glScissor ( GLint x, GLint y, GLsizei width, GLsizei height )
1347 
glScissor( int x, int y, int width, int height )1348     public static native void glScissor(
1349         int x,
1350         int y,
1351         int width,
1352         int height
1353     );
1354 
1355     // C function void glShaderBinary ( GLsizei n, const GLuint *shaders, GLenum binaryformat, const GLvoid *binary, GLsizei length )
1356 
glShaderBinary( int n, int[] shaders, int offset, int binaryformat, java.nio.Buffer binary, int length )1357     public static native void glShaderBinary(
1358         int n,
1359         int[] shaders,
1360         int offset,
1361         int binaryformat,
1362         java.nio.Buffer binary,
1363         int length
1364     );
1365 
1366     // C function void glShaderBinary ( GLsizei n, const GLuint *shaders, GLenum binaryformat, const GLvoid *binary, GLsizei length )
1367 
glShaderBinary( int n, java.nio.IntBuffer shaders, int binaryformat, java.nio.Buffer binary, int length )1368     public static native void glShaderBinary(
1369         int n,
1370         java.nio.IntBuffer shaders,
1371         int binaryformat,
1372         java.nio.Buffer binary,
1373         int length
1374     );
1375 
1376 /*
1377  * Copyright (C) 2009 The Android Open Source Project
1378  *
1379  * Licensed under the Apache License, Version 2.0 (the "License");
1380  * you may not use this file except in compliance with the License.
1381  * You may obtain a copy of the License at
1382  *
1383  *      http://www.apache.org/licenses/LICENSE-2.0
1384  *
1385  * Unless required by applicable law or agreed to in writing, software
1386  * distributed under the License is distributed on an "AS IS" BASIS,
1387  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1388  * See the License for the specific language governing permissions and
1389  * limitations under the License.
1390  */
1391 
1392     // C function void glShaderSource ( GLuint shader, GLsizei count, const GLchar ** string, const GLint* length )
1393 
glShaderSource( int shader, String string )1394     public static native void glShaderSource(
1395         int shader,
1396         String string
1397     );
1398     // C function void glStencilFunc ( GLenum func, GLint ref, GLuint mask )
1399 
glStencilFunc( int func, int ref, int mask )1400     public static native void glStencilFunc(
1401         int func,
1402         int ref,
1403         int mask
1404     );
1405 
1406     // C function void glStencilFuncSeparate ( GLenum face, GLenum func, GLint ref, GLuint mask )
1407 
glStencilFuncSeparate( int face, int func, int ref, int mask )1408     public static native void glStencilFuncSeparate(
1409         int face,
1410         int func,
1411         int ref,
1412         int mask
1413     );
1414 
1415     // C function void glStencilMask ( GLuint mask )
1416 
glStencilMask( int mask )1417     public static native void glStencilMask(
1418         int mask
1419     );
1420 
1421     // C function void glStencilMaskSeparate ( GLenum face, GLuint mask )
1422 
glStencilMaskSeparate( int face, int mask )1423     public static native void glStencilMaskSeparate(
1424         int face,
1425         int mask
1426     );
1427 
1428     // C function void glStencilOp ( GLenum fail, GLenum zfail, GLenum zpass )
1429 
glStencilOp( int fail, int zfail, int zpass )1430     public static native void glStencilOp(
1431         int fail,
1432         int zfail,
1433         int zpass
1434     );
1435 
1436     // C function void glStencilOpSeparate ( GLenum face, GLenum fail, GLenum zfail, GLenum zpass )
1437 
glStencilOpSeparate( int face, int fail, int zfail, int zpass )1438     public static native void glStencilOpSeparate(
1439         int face,
1440         int fail,
1441         int zfail,
1442         int zpass
1443     );
1444 
1445     // C function void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels )
1446 
glTexImage2D( int target, int level, int internalformat, int width, int height, int border, int format, int type, java.nio.Buffer pixels )1447     public static native void glTexImage2D(
1448         int target,
1449         int level,
1450         int internalformat,
1451         int width,
1452         int height,
1453         int border,
1454         int format,
1455         int type,
1456         java.nio.Buffer pixels
1457     );
1458 
1459     // C function void glTexParameterf ( GLenum target, GLenum pname, GLfloat param )
1460 
glTexParameterf( int target, int pname, float param )1461     public static native void glTexParameterf(
1462         int target,
1463         int pname,
1464         float param
1465     );
1466 
1467     // C function void glTexParameterfv ( GLenum target, GLenum pname, const GLfloat *params )
1468 
glTexParameterfv( int target, int pname, float[] params, int offset )1469     public static native void glTexParameterfv(
1470         int target,
1471         int pname,
1472         float[] params,
1473         int offset
1474     );
1475 
1476     // C function void glTexParameterfv ( GLenum target, GLenum pname, const GLfloat *params )
1477 
glTexParameterfv( int target, int pname, java.nio.FloatBuffer params )1478     public static native void glTexParameterfv(
1479         int target,
1480         int pname,
1481         java.nio.FloatBuffer params
1482     );
1483 
1484     // C function void glTexParameteri ( GLenum target, GLenum pname, GLint param )
1485 
glTexParameteri( int target, int pname, int param )1486     public static native void glTexParameteri(
1487         int target,
1488         int pname,
1489         int param
1490     );
1491 
1492     // C function void glTexParameteriv ( GLenum target, GLenum pname, const GLint *params )
1493 
glTexParameteriv( int target, int pname, int[] params, int offset )1494     public static native void glTexParameteriv(
1495         int target,
1496         int pname,
1497         int[] params,
1498         int offset
1499     );
1500 
1501     // C function void glTexParameteriv ( GLenum target, GLenum pname, const GLint *params )
1502 
glTexParameteriv( int target, int pname, java.nio.IntBuffer params )1503     public static native void glTexParameteriv(
1504         int target,
1505         int pname,
1506         java.nio.IntBuffer params
1507     );
1508 
1509     // C function void glTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels )
1510 
glTexSubImage2D( int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, java.nio.Buffer pixels )1511     public static native void glTexSubImage2D(
1512         int target,
1513         int level,
1514         int xoffset,
1515         int yoffset,
1516         int width,
1517         int height,
1518         int format,
1519         int type,
1520         java.nio.Buffer pixels
1521     );
1522 
1523     // C function void glUniform1f ( GLint location, GLfloat x )
1524 
glUniform1f( int location, float x )1525     public static native void glUniform1f(
1526         int location,
1527         float x
1528     );
1529 
1530     // C function void glUniform1fv ( GLint location, GLsizei count, const GLfloat *v )
1531 
glUniform1fv( int location, int count, float[] v, int offset )1532     public static native void glUniform1fv(
1533         int location,
1534         int count,
1535         float[] v,
1536         int offset
1537     );
1538 
1539     // C function void glUniform1fv ( GLint location, GLsizei count, const GLfloat *v )
1540 
glUniform1fv( int location, int count, java.nio.FloatBuffer v )1541     public static native void glUniform1fv(
1542         int location,
1543         int count,
1544         java.nio.FloatBuffer v
1545     );
1546 
1547     // C function void glUniform1i ( GLint location, GLint x )
1548 
glUniform1i( int location, int x )1549     public static native void glUniform1i(
1550         int location,
1551         int x
1552     );
1553 
1554     // C function void glUniform1iv ( GLint location, GLsizei count, const GLint *v )
1555 
glUniform1iv( int location, int count, int[] v, int offset )1556     public static native void glUniform1iv(
1557         int location,
1558         int count,
1559         int[] v,
1560         int offset
1561     );
1562 
1563     // C function void glUniform1iv ( GLint location, GLsizei count, const GLint *v )
1564 
glUniform1iv( int location, int count, java.nio.IntBuffer v )1565     public static native void glUniform1iv(
1566         int location,
1567         int count,
1568         java.nio.IntBuffer v
1569     );
1570 
1571     // C function void glUniform2f ( GLint location, GLfloat x, GLfloat y )
1572 
glUniform2f( int location, float x, float y )1573     public static native void glUniform2f(
1574         int location,
1575         float x,
1576         float y
1577     );
1578 
1579     // C function void glUniform2fv ( GLint location, GLsizei count, const GLfloat *v )
1580 
glUniform2fv( int location, int count, float[] v, int offset )1581     public static native void glUniform2fv(
1582         int location,
1583         int count,
1584         float[] v,
1585         int offset
1586     );
1587 
1588     // C function void glUniform2fv ( GLint location, GLsizei count, const GLfloat *v )
1589 
glUniform2fv( int location, int count, java.nio.FloatBuffer v )1590     public static native void glUniform2fv(
1591         int location,
1592         int count,
1593         java.nio.FloatBuffer v
1594     );
1595 
1596     // C function void glUniform2i ( GLint location, GLint x, GLint y )
1597 
glUniform2i( int location, int x, int y )1598     public static native void glUniform2i(
1599         int location,
1600         int x,
1601         int y
1602     );
1603 
1604     // C function void glUniform2iv ( GLint location, GLsizei count, const GLint *v )
1605 
glUniform2iv( int location, int count, int[] v, int offset )1606     public static native void glUniform2iv(
1607         int location,
1608         int count,
1609         int[] v,
1610         int offset
1611     );
1612 
1613     // C function void glUniform2iv ( GLint location, GLsizei count, const GLint *v )
1614 
glUniform2iv( int location, int count, java.nio.IntBuffer v )1615     public static native void glUniform2iv(
1616         int location,
1617         int count,
1618         java.nio.IntBuffer v
1619     );
1620 
1621     // C function void glUniform3f ( GLint location, GLfloat x, GLfloat y, GLfloat z )
1622 
glUniform3f( int location, float x, float y, float z )1623     public static native void glUniform3f(
1624         int location,
1625         float x,
1626         float y,
1627         float z
1628     );
1629 
1630     // C function void glUniform3fv ( GLint location, GLsizei count, const GLfloat *v )
1631 
glUniform3fv( int location, int count, float[] v, int offset )1632     public static native void glUniform3fv(
1633         int location,
1634         int count,
1635         float[] v,
1636         int offset
1637     );
1638 
1639     // C function void glUniform3fv ( GLint location, GLsizei count, const GLfloat *v )
1640 
glUniform3fv( int location, int count, java.nio.FloatBuffer v )1641     public static native void glUniform3fv(
1642         int location,
1643         int count,
1644         java.nio.FloatBuffer v
1645     );
1646 
1647     // C function void glUniform3i ( GLint location, GLint x, GLint y, GLint z )
1648 
glUniform3i( int location, int x, int y, int z )1649     public static native void glUniform3i(
1650         int location,
1651         int x,
1652         int y,
1653         int z
1654     );
1655 
1656     // C function void glUniform3iv ( GLint location, GLsizei count, const GLint *v )
1657 
glUniform3iv( int location, int count, int[] v, int offset )1658     public static native void glUniform3iv(
1659         int location,
1660         int count,
1661         int[] v,
1662         int offset
1663     );
1664 
1665     // C function void glUniform3iv ( GLint location, GLsizei count, const GLint *v )
1666 
glUniform3iv( int location, int count, java.nio.IntBuffer v )1667     public static native void glUniform3iv(
1668         int location,
1669         int count,
1670         java.nio.IntBuffer v
1671     );
1672 
1673     // C function void glUniform4f ( GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w )
1674 
glUniform4f( int location, float x, float y, float z, float w )1675     public static native void glUniform4f(
1676         int location,
1677         float x,
1678         float y,
1679         float z,
1680         float w
1681     );
1682 
1683     // C function void glUniform4fv ( GLint location, GLsizei count, const GLfloat *v )
1684 
glUniform4fv( int location, int count, float[] v, int offset )1685     public static native void glUniform4fv(
1686         int location,
1687         int count,
1688         float[] v,
1689         int offset
1690     );
1691 
1692     // C function void glUniform4fv ( GLint location, GLsizei count, const GLfloat *v )
1693 
glUniform4fv( int location, int count, java.nio.FloatBuffer v )1694     public static native void glUniform4fv(
1695         int location,
1696         int count,
1697         java.nio.FloatBuffer v
1698     );
1699 
1700     // C function void glUniform4i ( GLint location, GLint x, GLint y, GLint z, GLint w )
1701 
glUniform4i( int location, int x, int y, int z, int w )1702     public static native void glUniform4i(
1703         int location,
1704         int x,
1705         int y,
1706         int z,
1707         int w
1708     );
1709 
1710     // C function void glUniform4iv ( GLint location, GLsizei count, const GLint *v )
1711 
glUniform4iv( int location, int count, int[] v, int offset )1712     public static native void glUniform4iv(
1713         int location,
1714         int count,
1715         int[] v,
1716         int offset
1717     );
1718 
1719     // C function void glUniform4iv ( GLint location, GLsizei count, const GLint *v )
1720 
glUniform4iv( int location, int count, java.nio.IntBuffer v )1721     public static native void glUniform4iv(
1722         int location,
1723         int count,
1724         java.nio.IntBuffer v
1725     );
1726 
1727     // C function void glUniformMatrix2fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
1728 
glUniformMatrix2fv( int location, int count, boolean transpose, float[] value, int offset )1729     public static native void glUniformMatrix2fv(
1730         int location,
1731         int count,
1732         boolean transpose,
1733         float[] value,
1734         int offset
1735     );
1736 
1737     // C function void glUniformMatrix2fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
1738 
glUniformMatrix2fv( int location, int count, boolean transpose, java.nio.FloatBuffer value )1739     public static native void glUniformMatrix2fv(
1740         int location,
1741         int count,
1742         boolean transpose,
1743         java.nio.FloatBuffer value
1744     );
1745 
1746     // C function void glUniformMatrix3fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
1747 
glUniformMatrix3fv( int location, int count, boolean transpose, float[] value, int offset )1748     public static native void glUniformMatrix3fv(
1749         int location,
1750         int count,
1751         boolean transpose,
1752         float[] value,
1753         int offset
1754     );
1755 
1756     // C function void glUniformMatrix3fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
1757 
glUniformMatrix3fv( int location, int count, boolean transpose, java.nio.FloatBuffer value )1758     public static native void glUniformMatrix3fv(
1759         int location,
1760         int count,
1761         boolean transpose,
1762         java.nio.FloatBuffer value
1763     );
1764 
1765     // C function void glUniformMatrix4fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
1766 
glUniformMatrix4fv( int location, int count, boolean transpose, float[] value, int offset )1767     public static native void glUniformMatrix4fv(
1768         int location,
1769         int count,
1770         boolean transpose,
1771         float[] value,
1772         int offset
1773     );
1774 
1775     // C function void glUniformMatrix4fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
1776 
glUniformMatrix4fv( int location, int count, boolean transpose, java.nio.FloatBuffer value )1777     public static native void glUniformMatrix4fv(
1778         int location,
1779         int count,
1780         boolean transpose,
1781         java.nio.FloatBuffer value
1782     );
1783 
1784     // C function void glUseProgram ( GLuint program )
1785 
glUseProgram( int program )1786     public static native void glUseProgram(
1787         int program
1788     );
1789 
1790     // C function void glValidateProgram ( GLuint program )
1791 
glValidateProgram( int program )1792     public static native void glValidateProgram(
1793         int program
1794     );
1795 
1796     // C function void glVertexAttrib1f ( GLuint indx, GLfloat x )
1797 
glVertexAttrib1f( int indx, float x )1798     public static native void glVertexAttrib1f(
1799         int indx,
1800         float x
1801     );
1802 
1803     // C function void glVertexAttrib1fv ( GLuint indx, const GLfloat *values )
1804 
glVertexAttrib1fv( int indx, float[] values, int offset )1805     public static native void glVertexAttrib1fv(
1806         int indx,
1807         float[] values,
1808         int offset
1809     );
1810 
1811     // C function void glVertexAttrib1fv ( GLuint indx, const GLfloat *values )
1812 
glVertexAttrib1fv( int indx, java.nio.FloatBuffer values )1813     public static native void glVertexAttrib1fv(
1814         int indx,
1815         java.nio.FloatBuffer values
1816     );
1817 
1818     // C function void glVertexAttrib2f ( GLuint indx, GLfloat x, GLfloat y )
1819 
glVertexAttrib2f( int indx, float x, float y )1820     public static native void glVertexAttrib2f(
1821         int indx,
1822         float x,
1823         float y
1824     );
1825 
1826     // C function void glVertexAttrib2fv ( GLuint indx, const GLfloat *values )
1827 
glVertexAttrib2fv( int indx, float[] values, int offset )1828     public static native void glVertexAttrib2fv(
1829         int indx,
1830         float[] values,
1831         int offset
1832     );
1833 
1834     // C function void glVertexAttrib2fv ( GLuint indx, const GLfloat *values )
1835 
glVertexAttrib2fv( int indx, java.nio.FloatBuffer values )1836     public static native void glVertexAttrib2fv(
1837         int indx,
1838         java.nio.FloatBuffer values
1839     );
1840 
1841     // C function void glVertexAttrib3f ( GLuint indx, GLfloat x, GLfloat y, GLfloat z )
1842 
glVertexAttrib3f( int indx, float x, float y, float z )1843     public static native void glVertexAttrib3f(
1844         int indx,
1845         float x,
1846         float y,
1847         float z
1848     );
1849 
1850     // C function void glVertexAttrib3fv ( GLuint indx, const GLfloat *values )
1851 
glVertexAttrib3fv( int indx, float[] values, int offset )1852     public static native void glVertexAttrib3fv(
1853         int indx,
1854         float[] values,
1855         int offset
1856     );
1857 
1858     // C function void glVertexAttrib3fv ( GLuint indx, const GLfloat *values )
1859 
glVertexAttrib3fv( int indx, java.nio.FloatBuffer values )1860     public static native void glVertexAttrib3fv(
1861         int indx,
1862         java.nio.FloatBuffer values
1863     );
1864 
1865     // C function void glVertexAttrib4f ( GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w )
1866 
glVertexAttrib4f( int indx, float x, float y, float z, float w )1867     public static native void glVertexAttrib4f(
1868         int indx,
1869         float x,
1870         float y,
1871         float z,
1872         float w
1873     );
1874 
1875     // C function void glVertexAttrib4fv ( GLuint indx, const GLfloat *values )
1876 
glVertexAttrib4fv( int indx, float[] values, int offset )1877     public static native void glVertexAttrib4fv(
1878         int indx,
1879         float[] values,
1880         int offset
1881     );
1882 
1883     // C function void glVertexAttrib4fv ( GLuint indx, const GLfloat *values )
1884 
glVertexAttrib4fv( int indx, java.nio.FloatBuffer values )1885     public static native void glVertexAttrib4fv(
1886         int indx,
1887         java.nio.FloatBuffer values
1888     );
1889 
1890     // C function void glVertexAttribPointer ( GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLint offset )
1891 
glVertexAttribPointer( int indx, int size, int type, boolean normalized, int stride, int offset )1892     public static native void glVertexAttribPointer(
1893         int indx,
1894         int size,
1895         int type,
1896         boolean normalized,
1897         int stride,
1898         int offset
1899     );
1900 
1901     // C function void glVertexAttribPointer ( GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *ptr )
1902 
glVertexAttribPointerBounds( int indx, int size, int type, boolean normalized, int stride, java.nio.Buffer ptr, int remaining )1903     private static native void glVertexAttribPointerBounds(
1904         int indx,
1905         int size,
1906         int type,
1907         boolean normalized,
1908         int stride,
1909         java.nio.Buffer ptr,
1910         int remaining
1911     );
1912 
glVertexAttribPointer( int indx, int size, int type, boolean normalized, int stride, java.nio.Buffer ptr )1913     public static void glVertexAttribPointer(
1914         int indx,
1915         int size,
1916         int type,
1917         boolean normalized,
1918         int stride,
1919         java.nio.Buffer ptr
1920     ) {
1921         glVertexAttribPointerBounds(
1922             indx,
1923             size,
1924             type,
1925             normalized,
1926             stride,
1927             ptr,
1928             ptr.remaining()
1929         );
1930     }
1931 
1932     // C function void glViewport ( GLint x, GLint y, GLsizei width, GLsizei height )
1933 
glViewport( int x, int y, int width, int height )1934     public static native void glViewport(
1935         int x,
1936         int y,
1937         int width,
1938         int height
1939     );
1940 
1941 }
1942