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