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