GLES10.java revision 27f8002e591b5c579f75b2580183b5d1c4219cd4
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 22import java.nio.Buffer; 23 24public class GLES10 { 25 public static final int GL_ADD = 0x0104; 26 public static final int GL_ALIASED_LINE_WIDTH_RANGE = 0x846E; 27 public static final int GL_ALIASED_POINT_SIZE_RANGE = 0x846D; 28 public static final int GL_ALPHA = 0x1906; 29 public static final int GL_ALPHA_BITS = 0x0D55; 30 public static final int GL_ALPHA_TEST = 0x0BC0; 31 public static final int GL_ALWAYS = 0x0207; 32 public static final int GL_AMBIENT = 0x1200; 33 public static final int GL_AMBIENT_AND_DIFFUSE = 0x1602; 34 public static final int GL_AND = 0x1501; 35 public static final int GL_AND_INVERTED = 0x1504; 36 public static final int GL_AND_REVERSE = 0x1502; 37 public static final int GL_BACK = 0x0405; 38 public static final int GL_BLEND = 0x0BE2; 39 public static final int GL_BLUE_BITS = 0x0D54; 40 public static final int GL_BYTE = 0x1400; 41 public static final int GL_CCW = 0x0901; 42 public static final int GL_CLAMP_TO_EDGE = 0x812F; 43 public static final int GL_CLEAR = 0x1500; 44 public static final int GL_COLOR_ARRAY = 0x8076; 45 public static final int GL_COLOR_BUFFER_BIT = 0x4000; 46 public static final int GL_COLOR_LOGIC_OP = 0x0BF2; 47 public static final int GL_COLOR_MATERIAL = 0x0B57; 48 public static final int GL_COMPRESSED_TEXTURE_FORMATS = 0x86A3; 49 public static final int GL_CONSTANT_ATTENUATION = 0x1207; 50 public static final int GL_COPY = 0x1503; 51 public static final int GL_COPY_INVERTED = 0x150C; 52 public static final int GL_CULL_FACE = 0x0B44; 53 public static final int GL_CW = 0x0900; 54 public static final int GL_DECAL = 0x2101; 55 public static final int GL_DECR = 0x1E03; 56 public static final int GL_DEPTH_BITS = 0x0D56; 57 public static final int GL_DEPTH_BUFFER_BIT = 0x0100; 58 public static final int GL_DEPTH_TEST = 0x0B71; 59 public static final int GL_DIFFUSE = 0x1201; 60 public static final int GL_DITHER = 0x0BD0; 61 public static final int GL_DONT_CARE = 0x1100; 62 public static final int GL_DST_ALPHA = 0x0304; 63 public static final int GL_DST_COLOR = 0x0306; 64 public static final int GL_EMISSION = 0x1600; 65 public static final int GL_EQUAL = 0x0202; 66 public static final int GL_EQUIV = 0x1509; 67 public static final int GL_EXP = 0x0800; 68 public static final int GL_EXP2 = 0x0801; 69 public static final int GL_EXTENSIONS = 0x1F03; 70 public static final int GL_FALSE = 0; 71 public static final int GL_FASTEST = 0x1101; 72 public static final int GL_FIXED = 0x140C; 73 public static final int GL_FLAT = 0x1D00; 74 public static final int GL_FLOAT = 0x1406; 75 public static final int GL_FOG = 0x0B60; 76 public static final int GL_FOG_COLOR = 0x0B66; 77 public static final int GL_FOG_DENSITY = 0x0B62; 78 public static final int GL_FOG_END = 0x0B64; 79 public static final int GL_FOG_HINT = 0x0C54; 80 public static final int GL_FOG_MODE = 0x0B65; 81 public static final int GL_FOG_START = 0x0B63; 82 public static final int GL_FRONT = 0x0404; 83 public static final int GL_FRONT_AND_BACK = 0x0408; 84 public static final int GL_GEQUAL = 0x0206; 85 public static final int GL_GREATER = 0x0204; 86 public static final int GL_GREEN_BITS = 0x0D53; 87 public static final int GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES = 0x8B9B; 88 public static final int GL_IMPLEMENTATION_COLOR_READ_TYPE_OES = 0x8B9A; 89 public static final int GL_INCR = 0x1E02; 90 public static final int GL_INVALID_ENUM = 0x0500; 91 public static final int GL_INVALID_OPERATION = 0x0502; 92 public static final int GL_INVALID_VALUE = 0x0501; 93 public static final int GL_INVERT = 0x150A; 94 public static final int GL_KEEP = 0x1E00; 95 public static final int GL_LEQUAL = 0x0203; 96 public static final int GL_LESS = 0x0201; 97 public static final int GL_LIGHT_MODEL_AMBIENT = 0x0B53; 98 public static final int GL_LIGHT_MODEL_TWO_SIDE = 0x0B52; 99 public static final int GL_LIGHT0 = 0x4000; 100 public static final int GL_LIGHT1 = 0x4001; 101 public static final int GL_LIGHT2 = 0x4002; 102 public static final int GL_LIGHT3 = 0x4003; 103 public static final int GL_LIGHT4 = 0x4004; 104 public static final int GL_LIGHT5 = 0x4005; 105 public static final int GL_LIGHT6 = 0x4006; 106 public static final int GL_LIGHT7 = 0x4007; 107 public static final int GL_LIGHTING = 0x0B50; 108 public static final int GL_LINE_LOOP = 0x0002; 109 public static final int GL_LINE_SMOOTH = 0x0B20; 110 public static final int GL_LINE_SMOOTH_HINT = 0x0C52; 111 public static final int GL_LINE_STRIP = 0x0003; 112 public static final int GL_LINEAR = 0x2601; 113 public static final int GL_LINEAR_ATTENUATION = 0x1208; 114 public static final int GL_LINEAR_MIPMAP_LINEAR = 0x2703; 115 public static final int GL_LINEAR_MIPMAP_NEAREST = 0x2701; 116 public static final int GL_LINES = 0x0001; 117 public static final int GL_LUMINANCE = 0x1909; 118 public static final int GL_LUMINANCE_ALPHA = 0x190A; 119 public static final int GL_MAX_ELEMENTS_INDICES = 0x80E9; 120 public static final int GL_MAX_ELEMENTS_VERTICES = 0x80E8; 121 public static final int GL_MAX_LIGHTS = 0x0D31; 122 public static final int GL_MAX_MODELVIEW_STACK_DEPTH = 0x0D36; 123 public static final int GL_MAX_PROJECTION_STACK_DEPTH = 0x0D38; 124 public static final int GL_MAX_TEXTURE_SIZE = 0x0D33; 125 public static final int GL_MAX_TEXTURE_STACK_DEPTH = 0x0D39; 126 public static final int GL_MAX_TEXTURE_UNITS = 0x84E2; 127 public static final int GL_MAX_VIEWPORT_DIMS = 0x0D3A; 128 public static final int GL_MODELVIEW = 0x1700; 129 public static final int GL_MODULATE = 0x2100; 130 public static final int GL_MULTISAMPLE = 0x809D; 131 public static final int GL_NAND = 0x150E; 132 public static final int GL_NEAREST = 0x2600; 133 public static final int GL_NEAREST_MIPMAP_LINEAR = 0x2702; 134 public static final int GL_NEAREST_MIPMAP_NEAREST = 0x2700; 135 public static final int GL_NEVER = 0x0200; 136 public static final int GL_NICEST = 0x1102; 137 public static final int GL_NO_ERROR = 0; 138 public static final int GL_NOOP = 0x1505; 139 public static final int GL_NOR = 0x1508; 140 public static final int GL_NORMAL_ARRAY = 0x8075; 141 public static final int GL_NORMALIZE = 0x0BA1; 142 public static final int GL_NOTEQUAL = 0x0205; 143 public static final int GL_NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2; 144 public static final int GL_ONE = 1; 145 public static final int GL_ONE_MINUS_DST_ALPHA = 0x0305; 146 public static final int GL_ONE_MINUS_DST_COLOR = 0x0307; 147 public static final int GL_ONE_MINUS_SRC_ALPHA = 0x0303; 148 public static final int GL_ONE_MINUS_SRC_COLOR = 0x0301; 149 public static final int GL_OR = 0x1507; 150 public static final int GL_OR_INVERTED = 0x150D; 151 public static final int GL_OR_REVERSE = 0x150B; 152 public static final int GL_OUT_OF_MEMORY = 0x0505; 153 public static final int GL_PACK_ALIGNMENT = 0x0D05; 154 public static final int GL_PALETTE4_R5_G6_B5_OES = 0x8B92; 155 public static final int GL_PALETTE4_RGB5_A1_OES = 0x8B94; 156 public static final int GL_PALETTE4_RGB8_OES = 0x8B90; 157 public static final int GL_PALETTE4_RGBA4_OES = 0x8B93; 158 public static final int GL_PALETTE4_RGBA8_OES = 0x8B91; 159 public static final int GL_PALETTE8_R5_G6_B5_OES = 0x8B97; 160 public static final int GL_PALETTE8_RGB5_A1_OES = 0x8B99; 161 public static final int GL_PALETTE8_RGB8_OES = 0x8B95; 162 public static final int GL_PALETTE8_RGBA4_OES = 0x8B98; 163 public static final int GL_PALETTE8_RGBA8_OES = 0x8B96; 164 public static final int GL_PERSPECTIVE_CORRECTION_HINT = 0x0C50; 165 public static final int GL_POINT_SMOOTH = 0x0B10; 166 public static final int GL_POINT_SMOOTH_HINT = 0x0C51; 167 public static final int GL_POINTS = 0x0000; 168 public static final int GL_POINT_FADE_THRESHOLD_SIZE = 0x8128; 169 public static final int GL_POINT_SIZE = 0x0B11; 170 public static final int GL_POLYGON_OFFSET_FILL = 0x8037; 171 public static final int GL_POLYGON_SMOOTH_HINT = 0x0C53; 172 public static final int GL_POSITION = 0x1203; 173 public static final int GL_PROJECTION = 0x1701; 174 public static final int GL_QUADRATIC_ATTENUATION = 0x1209; 175 public static final int GL_RED_BITS = 0x0D52; 176 public static final int GL_RENDERER = 0x1F01; 177 public static final int GL_REPEAT = 0x2901; 178 public static final int GL_REPLACE = 0x1E01; 179 public static final int GL_RESCALE_NORMAL = 0x803A; 180 public static final int GL_RGB = 0x1907; 181 public static final int GL_RGBA = 0x1908; 182 public static final int GL_SAMPLE_ALPHA_TO_COVERAGE = 0x809E; 183 public static final int GL_SAMPLE_ALPHA_TO_ONE = 0x809F; 184 public static final int GL_SAMPLE_COVERAGE = 0x80A0; 185 public static final int GL_SCISSOR_TEST = 0x0C11; 186 public static final int GL_SET = 0x150F; 187 public static final int GL_SHININESS = 0x1601; 188 public static final int GL_SHORT = 0x1402; 189 public static final int GL_SMOOTH = 0x1D01; 190 public static final int GL_SMOOTH_LINE_WIDTH_RANGE = 0x0B22; 191 public static final int GL_SMOOTH_POINT_SIZE_RANGE = 0x0B12; 192 public static final int GL_SPECULAR = 0x1202; 193 public static final int GL_SPOT_CUTOFF = 0x1206; 194 public static final int GL_SPOT_DIRECTION = 0x1204; 195 public static final int GL_SPOT_EXPONENT = 0x1205; 196 public static final int GL_SRC_ALPHA = 0x0302; 197 public static final int GL_SRC_ALPHA_SATURATE = 0x0308; 198 public static final int GL_SRC_COLOR = 0x0300; 199 public static final int GL_STACK_OVERFLOW = 0x0503; 200 public static final int GL_STACK_UNDERFLOW = 0x0504; 201 public static final int GL_STENCIL_BITS = 0x0D57; 202 public static final int GL_STENCIL_BUFFER_BIT = 0x0400; 203 public static final int GL_STENCIL_TEST = 0x0B90; 204 public static final int GL_SUBPIXEL_BITS = 0x0D50; 205 public static final int GL_TEXTURE = 0x1702; 206 public static final int GL_TEXTURE_2D = 0x0DE1; 207 public static final int GL_TEXTURE_COORD_ARRAY = 0x8078; 208 public static final int GL_TEXTURE_ENV = 0x2300; 209 public static final int GL_TEXTURE_ENV_COLOR = 0x2201; 210 public static final int GL_TEXTURE_ENV_MODE = 0x2200; 211 public static final int GL_TEXTURE_MAG_FILTER = 0x2800; 212 public static final int GL_TEXTURE_MIN_FILTER = 0x2801; 213 public static final int GL_TEXTURE_WRAP_S = 0x2802; 214 public static final int GL_TEXTURE_WRAP_T = 0x2803; 215 public static final int GL_TEXTURE0 = 0x84C0; 216 public static final int GL_TEXTURE1 = 0x84C1; 217 public static final int GL_TEXTURE2 = 0x84C2; 218 public static final int GL_TEXTURE3 = 0x84C3; 219 public static final int GL_TEXTURE4 = 0x84C4; 220 public static final int GL_TEXTURE5 = 0x84C5; 221 public static final int GL_TEXTURE6 = 0x84C6; 222 public static final int GL_TEXTURE7 = 0x84C7; 223 public static final int GL_TEXTURE8 = 0x84C8; 224 public static final int GL_TEXTURE9 = 0x84C9; 225 public static final int GL_TEXTURE10 = 0x84CA; 226 public static final int GL_TEXTURE11 = 0x84CB; 227 public static final int GL_TEXTURE12 = 0x84CC; 228 public static final int GL_TEXTURE13 = 0x84CD; 229 public static final int GL_TEXTURE14 = 0x84CE; 230 public static final int GL_TEXTURE15 = 0x84CF; 231 public static final int GL_TEXTURE16 = 0x84D0; 232 public static final int GL_TEXTURE17 = 0x84D1; 233 public static final int GL_TEXTURE18 = 0x84D2; 234 public static final int GL_TEXTURE19 = 0x84D3; 235 public static final int GL_TEXTURE20 = 0x84D4; 236 public static final int GL_TEXTURE21 = 0x84D5; 237 public static final int GL_TEXTURE22 = 0x84D6; 238 public static final int GL_TEXTURE23 = 0x84D7; 239 public static final int GL_TEXTURE24 = 0x84D8; 240 public static final int GL_TEXTURE25 = 0x84D9; 241 public static final int GL_TEXTURE26 = 0x84DA; 242 public static final int GL_TEXTURE27 = 0x84DB; 243 public static final int GL_TEXTURE28 = 0x84DC; 244 public static final int GL_TEXTURE29 = 0x84DD; 245 public static final int GL_TEXTURE30 = 0x84DE; 246 public static final int GL_TEXTURE31 = 0x84DF; 247 public static final int GL_TRIANGLE_FAN = 0x0006; 248 public static final int GL_TRIANGLE_STRIP = 0x0005; 249 public static final int GL_TRIANGLES = 0x0004; 250 public static final int GL_TRUE = 1; 251 public static final int GL_UNPACK_ALIGNMENT = 0x0CF5; 252 public static final int GL_UNSIGNED_BYTE = 0x1401; 253 public static final int GL_UNSIGNED_SHORT = 0x1403; 254 public static final int GL_UNSIGNED_SHORT_4_4_4_4 = 0x8033; 255 public static final int GL_UNSIGNED_SHORT_5_5_5_1 = 0x8034; 256 public static final int GL_UNSIGNED_SHORT_5_6_5 = 0x8363; 257 public static final int GL_VENDOR = 0x1F00; 258 public static final int GL_VERSION = 0x1F02; 259 public static final int GL_VERTEX_ARRAY = 0x8074; 260 public static final int GL_XOR = 0x1506; 261 public static final int GL_ZERO = 0; 262 263 native private static void _nativeClassInit(); 264 static { 265 _nativeClassInit(); 266 } 267 268 private static Buffer _colorPointer; 269 private static Buffer _normalPointer; 270 private static Buffer _texCoordPointer; 271 private static Buffer _vertexPointer; 272 273 // C function void glActiveTexture ( GLenum texture ) 274 275 public static native void glActiveTexture( 276 int texture 277 ); 278 279 // C function void glAlphaFunc ( GLenum func, GLclampf ref ) 280 281 public static native void glAlphaFunc( 282 int func, 283 float ref 284 ); 285 286 // C function void glAlphaFuncx ( GLenum func, GLclampx ref ) 287 288 public static native void glAlphaFuncx( 289 int func, 290 int ref 291 ); 292 293 // C function void glBindTexture ( GLenum target, GLuint texture ) 294 295 public static native void glBindTexture( 296 int target, 297 int texture 298 ); 299 300 // C function void glBlendFunc ( GLenum sfactor, GLenum dfactor ) 301 302 public static native void glBlendFunc( 303 int sfactor, 304 int dfactor 305 ); 306 307 // C function void glClear ( GLbitfield mask ) 308 309 public static native void glClear( 310 int mask 311 ); 312 313 // C function void glClearColor ( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha ) 314 315 public static native void glClearColor( 316 float red, 317 float green, 318 float blue, 319 float alpha 320 ); 321 322 // C function void glClearColorx ( GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha ) 323 324 public static native void glClearColorx( 325 int red, 326 int green, 327 int blue, 328 int alpha 329 ); 330 331 // C function void glClearDepthf ( GLclampf depth ) 332 333 public static native void glClearDepthf( 334 float depth 335 ); 336 337 // C function void glClearDepthx ( GLclampx depth ) 338 339 public static native void glClearDepthx( 340 int depth 341 ); 342 343 // C function void glClearStencil ( GLint s ) 344 345 public static native void glClearStencil( 346 int s 347 ); 348 349 // C function void glClientActiveTexture ( GLenum texture ) 350 351 public static native void glClientActiveTexture( 352 int texture 353 ); 354 355 // C function void glColor4f ( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha ) 356 357 public static native void glColor4f( 358 float red, 359 float green, 360 float blue, 361 float alpha 362 ); 363 364 // C function void glColor4x ( GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha ) 365 366 public static native void glColor4x( 367 int red, 368 int green, 369 int blue, 370 int alpha 371 ); 372 373 // C function void glColorMask ( GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha ) 374 375 public static native void glColorMask( 376 boolean red, 377 boolean green, 378 boolean blue, 379 boolean alpha 380 ); 381 382 // C function void glColorPointer ( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer ) 383 384 private static native void glColorPointerBounds( 385 int size, 386 int type, 387 int stride, 388 java.nio.Buffer pointer, 389 int remaining 390 ); 391 392 public static void glColorPointer( 393 int size, 394 int type, 395 int stride, 396 java.nio.Buffer pointer 397 ) { 398 if ((size == 4) && 399 ((type == GL_FLOAT) || 400 (type == GL_UNSIGNED_BYTE) || 401 (type == GL_FIXED)) && 402 (stride >= 0)) { 403 _colorPointer = pointer; 404 } 405 glColorPointerBounds( 406 size, 407 type, 408 stride, 409 pointer, 410 pointer.remaining() 411 ); 412 } 413 414 // C function void glCompressedTexImage2D ( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data ) 415 416 public static native void glCompressedTexImage2D( 417 int target, 418 int level, 419 int internalformat, 420 int width, 421 int height, 422 int border, 423 int imageSize, 424 java.nio.Buffer data 425 ); 426 427 // C function void glCompressedTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data ) 428 429 public static native void glCompressedTexSubImage2D( 430 int target, 431 int level, 432 int xoffset, 433 int yoffset, 434 int width, 435 int height, 436 int format, 437 int imageSize, 438 java.nio.Buffer data 439 ); 440 441 // C function void glCopyTexImage2D ( GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border ) 442 443 public static native void glCopyTexImage2D( 444 int target, 445 int level, 446 int internalformat, 447 int x, 448 int y, 449 int width, 450 int height, 451 int border 452 ); 453 454 // C function void glCopyTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height ) 455 456 public static native void glCopyTexSubImage2D( 457 int target, 458 int level, 459 int xoffset, 460 int yoffset, 461 int x, 462 int y, 463 int width, 464 int height 465 ); 466 467 // C function void glCullFace ( GLenum mode ) 468 469 public static native void glCullFace( 470 int mode 471 ); 472 473 // C function void glDeleteTextures ( GLsizei n, const GLuint *textures ) 474 475 public static native void glDeleteTextures( 476 int n, 477 int[] textures, 478 int offset 479 ); 480 481 // C function void glDeleteTextures ( GLsizei n, const GLuint *textures ) 482 483 public static native void glDeleteTextures( 484 int n, 485 java.nio.IntBuffer textures 486 ); 487 488 // C function void glDepthFunc ( GLenum func ) 489 490 public static native void glDepthFunc( 491 int func 492 ); 493 494 // C function void glDepthMask ( GLboolean flag ) 495 496 public static native void glDepthMask( 497 boolean flag 498 ); 499 500 // C function void glDepthRangef ( GLclampf zNear, GLclampf zFar ) 501 502 public static native void glDepthRangef( 503 float zNear, 504 float zFar 505 ); 506 507 // C function void glDepthRangex ( GLclampx zNear, GLclampx zFar ) 508 509 public static native void glDepthRangex( 510 int zNear, 511 int zFar 512 ); 513 514 // C function void glDisable ( GLenum cap ) 515 516 public static native void glDisable( 517 int cap 518 ); 519 520 // C function void glDisableClientState ( GLenum array ) 521 522 public static native void glDisableClientState( 523 int array 524 ); 525 526 // C function void glDrawArrays ( GLenum mode, GLint first, GLsizei count ) 527 528 public static native void glDrawArrays( 529 int mode, 530 int first, 531 int count 532 ); 533 534 // C function void glDrawElements ( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices ) 535 536 public static native void glDrawElements( 537 int mode, 538 int count, 539 int type, 540 java.nio.Buffer indices 541 ); 542 543 // C function void glEnable ( GLenum cap ) 544 545 public static native void glEnable( 546 int cap 547 ); 548 549 // C function void glEnableClientState ( GLenum array ) 550 551 public static native void glEnableClientState( 552 int array 553 ); 554 555 // C function void glFinish ( void ) 556 557 public static native void glFinish( 558 ); 559 560 // C function void glFlush ( void ) 561 562 public static native void glFlush( 563 ); 564 565 // C function void glFogf ( GLenum pname, GLfloat param ) 566 567 public static native void glFogf( 568 int pname, 569 float param 570 ); 571 572 // C function void glFogfv ( GLenum pname, const GLfloat *params ) 573 574 public static native void glFogfv( 575 int pname, 576 float[] params, 577 int offset 578 ); 579 580 // C function void glFogfv ( GLenum pname, const GLfloat *params ) 581 582 public static native void glFogfv( 583 int pname, 584 java.nio.FloatBuffer params 585 ); 586 587 // C function void glFogx ( GLenum pname, GLfixed param ) 588 589 public static native void glFogx( 590 int pname, 591 int param 592 ); 593 594 // C function void glFogxv ( GLenum pname, const GLfixed *params ) 595 596 public static native void glFogxv( 597 int pname, 598 int[] params, 599 int offset 600 ); 601 602 // C function void glFogxv ( GLenum pname, const GLfixed *params ) 603 604 public static native void glFogxv( 605 int pname, 606 java.nio.IntBuffer params 607 ); 608 609 // C function void glFrontFace ( GLenum mode ) 610 611 public static native void glFrontFace( 612 int mode 613 ); 614 615 // C function void glFrustumf ( GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar ) 616 617 public static native void glFrustumf( 618 float left, 619 float right, 620 float bottom, 621 float top, 622 float zNear, 623 float zFar 624 ); 625 626 // C function void glFrustumx ( GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar ) 627 628 public static native void glFrustumx( 629 int left, 630 int right, 631 int bottom, 632 int top, 633 int zNear, 634 int zFar 635 ); 636 637 // C function void glGenTextures ( GLsizei n, GLuint *textures ) 638 639 public static native void glGenTextures( 640 int n, 641 int[] textures, 642 int offset 643 ); 644 645 // C function void glGenTextures ( GLsizei n, GLuint *textures ) 646 647 public static native void glGenTextures( 648 int n, 649 java.nio.IntBuffer textures 650 ); 651 652 // C function GLenum glGetError ( void ) 653 654 public static native int glGetError( 655 ); 656 657 // C function void glGetIntegerv ( GLenum pname, GLint *params ) 658 659 public static native void glGetIntegerv( 660 int pname, 661 int[] params, 662 int offset 663 ); 664 665 // C function void glGetIntegerv ( GLenum pname, GLint *params ) 666 667 public static native void glGetIntegerv( 668 int pname, 669 java.nio.IntBuffer params 670 ); 671 672 // C function const GLubyte * glGetString ( GLenum name ) 673 674 public native String _glGetString( 675 int name 676 ); 677 678 public String glGetString( 679 int name 680 ) { 681 String returnValue; 682 returnValue = _glGetString( 683 name 684 ); 685 return returnValue; 686 } 687 688 // C function void glHint ( GLenum target, GLenum mode ) 689 690 public static native void glHint( 691 int target, 692 int mode 693 ); 694 695 // C function void glLightModelf ( GLenum pname, GLfloat param ) 696 697 public static native void glLightModelf( 698 int pname, 699 float param 700 ); 701 702 // C function void glLightModelfv ( GLenum pname, const GLfloat *params ) 703 704 public static native void glLightModelfv( 705 int pname, 706 float[] params, 707 int offset 708 ); 709 710 // C function void glLightModelfv ( GLenum pname, const GLfloat *params ) 711 712 public static native void glLightModelfv( 713 int pname, 714 java.nio.FloatBuffer params 715 ); 716 717 // C function void glLightModelx ( GLenum pname, GLfixed param ) 718 719 public static native void glLightModelx( 720 int pname, 721 int param 722 ); 723 724 // C function void glLightModelxv ( GLenum pname, const GLfixed *params ) 725 726 public static native void glLightModelxv( 727 int pname, 728 int[] params, 729 int offset 730 ); 731 732 // C function void glLightModelxv ( GLenum pname, const GLfixed *params ) 733 734 public static native void glLightModelxv( 735 int pname, 736 java.nio.IntBuffer params 737 ); 738 739 // C function void glLightf ( GLenum light, GLenum pname, GLfloat param ) 740 741 public static native void glLightf( 742 int light, 743 int pname, 744 float param 745 ); 746 747 // C function void glLightfv ( GLenum light, GLenum pname, const GLfloat *params ) 748 749 public static native void glLightfv( 750 int light, 751 int pname, 752 float[] params, 753 int offset 754 ); 755 756 // C function void glLightfv ( GLenum light, GLenum pname, const GLfloat *params ) 757 758 public static native void glLightfv( 759 int light, 760 int pname, 761 java.nio.FloatBuffer params 762 ); 763 764 // C function void glLightx ( GLenum light, GLenum pname, GLfixed param ) 765 766 public static native void glLightx( 767 int light, 768 int pname, 769 int param 770 ); 771 772 // C function void glLightxv ( GLenum light, GLenum pname, const GLfixed *params ) 773 774 public static native void glLightxv( 775 int light, 776 int pname, 777 int[] params, 778 int offset 779 ); 780 781 // C function void glLightxv ( GLenum light, GLenum pname, const GLfixed *params ) 782 783 public static native void glLightxv( 784 int light, 785 int pname, 786 java.nio.IntBuffer params 787 ); 788 789 // C function void glLineWidth ( GLfloat width ) 790 791 public static native void glLineWidth( 792 float width 793 ); 794 795 // C function void glLineWidthx ( GLfixed width ) 796 797 public static native void glLineWidthx( 798 int width 799 ); 800 801 // C function void glLoadIdentity ( void ) 802 803 public static native void glLoadIdentity( 804 ); 805 806 // C function void glLoadMatrixf ( const GLfloat *m ) 807 808 public static native void glLoadMatrixf( 809 float[] m, 810 int offset 811 ); 812 813 // C function void glLoadMatrixf ( const GLfloat *m ) 814 815 public static native void glLoadMatrixf( 816 java.nio.FloatBuffer m 817 ); 818 819 // C function void glLoadMatrixx ( const GLfixed *m ) 820 821 public static native void glLoadMatrixx( 822 int[] m, 823 int offset 824 ); 825 826 // C function void glLoadMatrixx ( const GLfixed *m ) 827 828 public static native void glLoadMatrixx( 829 java.nio.IntBuffer m 830 ); 831 832 // C function void glLogicOp ( GLenum opcode ) 833 834 public static native void glLogicOp( 835 int opcode 836 ); 837 838 // C function void glMaterialf ( GLenum face, GLenum pname, GLfloat param ) 839 840 public static native void glMaterialf( 841 int face, 842 int pname, 843 float param 844 ); 845 846 // C function void glMaterialfv ( GLenum face, GLenum pname, const GLfloat *params ) 847 848 public static native void glMaterialfv( 849 int face, 850 int pname, 851 float[] params, 852 int offset 853 ); 854 855 // C function void glMaterialfv ( GLenum face, GLenum pname, const GLfloat *params ) 856 857 public static native void glMaterialfv( 858 int face, 859 int pname, 860 java.nio.FloatBuffer params 861 ); 862 863 // C function void glMaterialx ( GLenum face, GLenum pname, GLfixed param ) 864 865 public static native void glMaterialx( 866 int face, 867 int pname, 868 int param 869 ); 870 871 // C function void glMaterialxv ( GLenum face, GLenum pname, const GLfixed *params ) 872 873 public static native void glMaterialxv( 874 int face, 875 int pname, 876 int[] params, 877 int offset 878 ); 879 880 // C function void glMaterialxv ( GLenum face, GLenum pname, const GLfixed *params ) 881 882 public static native void glMaterialxv( 883 int face, 884 int pname, 885 java.nio.IntBuffer params 886 ); 887 888 // C function void glMatrixMode ( GLenum mode ) 889 890 public static native void glMatrixMode( 891 int mode 892 ); 893 894 // C function void glMultMatrixf ( const GLfloat *m ) 895 896 public static native void glMultMatrixf( 897 float[] m, 898 int offset 899 ); 900 901 // C function void glMultMatrixf ( const GLfloat *m ) 902 903 public static native void glMultMatrixf( 904 java.nio.FloatBuffer m 905 ); 906 907 // C function void glMultMatrixx ( const GLfixed *m ) 908 909 public static native void glMultMatrixx( 910 int[] m, 911 int offset 912 ); 913 914 // C function void glMultMatrixx ( const GLfixed *m ) 915 916 public static native void glMultMatrixx( 917 java.nio.IntBuffer m 918 ); 919 920 // C function void glMultiTexCoord4f ( GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q ) 921 922 public static native void glMultiTexCoord4f( 923 int target, 924 float s, 925 float t, 926 float r, 927 float q 928 ); 929 930 // C function void glMultiTexCoord4x ( GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q ) 931 932 public static native void glMultiTexCoord4x( 933 int target, 934 int s, 935 int t, 936 int r, 937 int q 938 ); 939 940 // C function void glNormal3f ( GLfloat nx, GLfloat ny, GLfloat nz ) 941 942 public static native void glNormal3f( 943 float nx, 944 float ny, 945 float nz 946 ); 947 948 // C function void glNormal3x ( GLfixed nx, GLfixed ny, GLfixed nz ) 949 950 public static native void glNormal3x( 951 int nx, 952 int ny, 953 int nz 954 ); 955 956 // C function void glNormalPointer ( GLenum type, GLsizei stride, const GLvoid *pointer ) 957 958 private static native void glNormalPointerBounds( 959 int type, 960 int stride, 961 java.nio.Buffer pointer, 962 int remaining 963 ); 964 965 public static void glNormalPointer( 966 int type, 967 int stride, 968 java.nio.Buffer pointer 969 ) { 970 if (((type == GL_FLOAT) || 971 (type == GL_BYTE) || 972 (type == GL_SHORT) || 973 (type == GL_FIXED)) && 974 (stride >= 0)) { 975 _normalPointer = pointer; 976 } 977 glNormalPointerBounds( 978 type, 979 stride, 980 pointer, 981 pointer.remaining() 982 ); 983 } 984 985 // C function void glOrthof ( GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar ) 986 987 public static native void glOrthof( 988 float left, 989 float right, 990 float bottom, 991 float top, 992 float zNear, 993 float zFar 994 ); 995 996 // C function void glOrthox ( GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar ) 997 998 public static native void glOrthox( 999 int left, 1000 int right, 1001 int bottom, 1002 int top, 1003 int zNear, 1004 int zFar 1005 ); 1006 1007 // C function void glPixelStorei ( GLenum pname, GLint param ) 1008 1009 public static native void glPixelStorei( 1010 int pname, 1011 int param 1012 ); 1013 1014 // C function void glPointSize ( GLfloat size ) 1015 1016 public static native void glPointSize( 1017 float size 1018 ); 1019 1020 // C function void glPointSizex ( GLfixed size ) 1021 1022 public static native void glPointSizex( 1023 int size 1024 ); 1025 1026 // C function void glPolygonOffset ( GLfloat factor, GLfloat units ) 1027 1028 public static native void glPolygonOffset( 1029 float factor, 1030 float units 1031 ); 1032 1033 // C function void glPolygonOffsetx ( GLfixed factor, GLfixed units ) 1034 1035 public static native void glPolygonOffsetx( 1036 int factor, 1037 int units 1038 ); 1039 1040 // C function void glPopMatrix ( void ) 1041 1042 public static native void glPopMatrix( 1043 ); 1044 1045 // C function void glPushMatrix ( void ) 1046 1047 public static native void glPushMatrix( 1048 ); 1049 1050 // C function void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) 1051 1052 public static native void glReadPixels( 1053 int x, 1054 int y, 1055 int width, 1056 int height, 1057 int format, 1058 int type, 1059 java.nio.Buffer pixels 1060 ); 1061 1062 // C function void glRotatef ( GLfloat angle, GLfloat x, GLfloat y, GLfloat z ) 1063 1064 public static native void glRotatef( 1065 float angle, 1066 float x, 1067 float y, 1068 float z 1069 ); 1070 1071 // C function void glRotatex ( GLfixed angle, GLfixed x, GLfixed y, GLfixed z ) 1072 1073 public static native void glRotatex( 1074 int angle, 1075 int x, 1076 int y, 1077 int z 1078 ); 1079 1080 // C function void glSampleCoverage ( GLclampf value, GLboolean invert ) 1081 1082 public static native void glSampleCoverage( 1083 float value, 1084 boolean invert 1085 ); 1086 1087 // C function void glSampleCoveragex ( GLclampx value, GLboolean invert ) 1088 1089 public static native void glSampleCoveragex( 1090 int value, 1091 boolean invert 1092 ); 1093 1094 // C function void glScalef ( GLfloat x, GLfloat y, GLfloat z ) 1095 1096 public static native void glScalef( 1097 float x, 1098 float y, 1099 float z 1100 ); 1101 1102 // C function void glScalex ( GLfixed x, GLfixed y, GLfixed z ) 1103 1104 public static native void glScalex( 1105 int x, 1106 int y, 1107 int z 1108 ); 1109 1110 // C function void glScissor ( GLint x, GLint y, GLsizei width, GLsizei height ) 1111 1112 public static native void glScissor( 1113 int x, 1114 int y, 1115 int width, 1116 int height 1117 ); 1118 1119 // C function void glShadeModel ( GLenum mode ) 1120 1121 public static native void glShadeModel( 1122 int mode 1123 ); 1124 1125 // C function void glStencilFunc ( GLenum func, GLint ref, GLuint mask ) 1126 1127 public static native void glStencilFunc( 1128 int func, 1129 int ref, 1130 int mask 1131 ); 1132 1133 // C function void glStencilMask ( GLuint mask ) 1134 1135 public static native void glStencilMask( 1136 int mask 1137 ); 1138 1139 // C function void glStencilOp ( GLenum fail, GLenum zfail, GLenum zpass ) 1140 1141 public static native void glStencilOp( 1142 int fail, 1143 int zfail, 1144 int zpass 1145 ); 1146 1147 // C function void glTexCoordPointer ( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer ) 1148 1149 private static native void glTexCoordPointerBounds( 1150 int size, 1151 int type, 1152 int stride, 1153 java.nio.Buffer pointer, 1154 int remaining 1155 ); 1156 1157 public static void glTexCoordPointer( 1158 int size, 1159 int type, 1160 int stride, 1161 java.nio.Buffer pointer 1162 ) { 1163 if (((size == 2) || 1164 (size == 3) || 1165 (size == 4)) && 1166 ((type == GL_FLOAT) || 1167 (type == GL_BYTE) || 1168 (type == GL_SHORT) || 1169 (type == GL_FIXED)) && 1170 (stride >= 0)) { 1171 _texCoordPointer = pointer; 1172 } 1173 glTexCoordPointerBounds( 1174 size, 1175 type, 1176 stride, 1177 pointer, 1178 pointer.remaining() 1179 ); 1180 } 1181 1182 // C function void glTexEnvf ( GLenum target, GLenum pname, GLfloat param ) 1183 1184 public static native void glTexEnvf( 1185 int target, 1186 int pname, 1187 float param 1188 ); 1189 1190 // C function void glTexEnvfv ( GLenum target, GLenum pname, const GLfloat *params ) 1191 1192 public static native void glTexEnvfv( 1193 int target, 1194 int pname, 1195 float[] params, 1196 int offset 1197 ); 1198 1199 // C function void glTexEnvfv ( GLenum target, GLenum pname, const GLfloat *params ) 1200 1201 public static native void glTexEnvfv( 1202 int target, 1203 int pname, 1204 java.nio.FloatBuffer params 1205 ); 1206 1207 // C function void glTexEnvx ( GLenum target, GLenum pname, GLfixed param ) 1208 1209 public static native void glTexEnvx( 1210 int target, 1211 int pname, 1212 int param 1213 ); 1214 1215 // C function void glTexEnvxv ( GLenum target, GLenum pname, const GLfixed *params ) 1216 1217 public static native void glTexEnvxv( 1218 int target, 1219 int pname, 1220 int[] params, 1221 int offset 1222 ); 1223 1224 // C function void glTexEnvxv ( GLenum target, GLenum pname, const GLfixed *params ) 1225 1226 public static native void glTexEnvxv( 1227 int target, 1228 int pname, 1229 java.nio.IntBuffer params 1230 ); 1231 1232 // C function void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) 1233 1234 public static native void glTexImage2D( 1235 int target, 1236 int level, 1237 int internalformat, 1238 int width, 1239 int height, 1240 int border, 1241 int format, 1242 int type, 1243 java.nio.Buffer pixels 1244 ); 1245 1246 // C function void glTexParameterf ( GLenum target, GLenum pname, GLfloat param ) 1247 1248 public static native void glTexParameterf( 1249 int target, 1250 int pname, 1251 float param 1252 ); 1253 1254 // C function void glTexParameterx ( GLenum target, GLenum pname, GLfixed param ) 1255 1256 public static native void glTexParameterx( 1257 int target, 1258 int pname, 1259 int param 1260 ); 1261 1262 // C function void glTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels ) 1263 1264 public static native void glTexSubImage2D( 1265 int target, 1266 int level, 1267 int xoffset, 1268 int yoffset, 1269 int width, 1270 int height, 1271 int format, 1272 int type, 1273 java.nio.Buffer pixels 1274 ); 1275 1276 // C function void glTranslatef ( GLfloat x, GLfloat y, GLfloat z ) 1277 1278 public static native void glTranslatef( 1279 float x, 1280 float y, 1281 float z 1282 ); 1283 1284 // C function void glTranslatex ( GLfixed x, GLfixed y, GLfixed z ) 1285 1286 public static native void glTranslatex( 1287 int x, 1288 int y, 1289 int z 1290 ); 1291 1292 // C function void glVertexPointer ( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer ) 1293 1294 private static native void glVertexPointerBounds( 1295 int size, 1296 int type, 1297 int stride, 1298 java.nio.Buffer pointer, 1299 int remaining 1300 ); 1301 1302 public static void glVertexPointer( 1303 int size, 1304 int type, 1305 int stride, 1306 java.nio.Buffer pointer 1307 ) { 1308 if (((size == 2) || 1309 (size == 3) || 1310 (size == 4)) && 1311 ((type == GL_FLOAT) || 1312 (type == GL_BYTE) || 1313 (type == GL_SHORT) || 1314 (type == GL_FIXED)) && 1315 (stride >= 0)) { 1316 _vertexPointer = pointer; 1317 } 1318 glVertexPointerBounds( 1319 size, 1320 type, 1321 stride, 1322 pointer, 1323 pointer.remaining() 1324 ); 1325 } 1326 1327 // C function void glViewport ( GLint x, GLint y, GLsizei width, GLsizei height ) 1328 1329 public static native void glViewport( 1330 int x, 1331 int y, 1332 int width, 1333 int height 1334 ); 1335 1336} 1337