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