GLImpl.java revision e20ea783a12f1031482c3aa01938efe39dcbf0a2
1/* //device/java/android/com/google/android/gles_jni/GLImpl.java 2** 3** Copyright 2006, 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 com.google.android.gles_jni; 21 22import java.nio.Buffer; 23import javax.microedition.khronos.opengles.GL10; 24import javax.microedition.khronos.opengles.GL10Ext; 25import javax.microedition.khronos.opengles.GL11; 26import javax.microedition.khronos.opengles.GL11Ext; 27import javax.microedition.khronos.opengles.GL11ExtensionPack; 28 29public class GLImpl implements GL10, GL10Ext, GL11, GL11Ext, GL11ExtensionPack { 30 31 // Private accessors for native code 32 33 native private static void _nativeClassInit(); 34 static { 35 _nativeClassInit(); 36 } 37 38 Buffer _colorPointer = null; 39 Buffer _normalPointer = null; 40 Buffer _texCoordPointer = null; 41 Buffer _vertexPointer = null; 42 43 public GLImpl() { 44 } 45 46 public void glGetPointerv(int pname, java.nio.Buffer[] params) { 47 throw new UnsupportedOperationException("glGetPointerv"); 48 } 49 50 // C function void glActiveTexture ( GLenum texture ) 51 52 public native void glActiveTexture( 53 int texture 54 ); 55 56 // C function void glAlphaFunc ( GLenum func, GLclampf ref ) 57 58 public native void glAlphaFunc( 59 int func, 60 float ref 61 ); 62 63 // C function void glAlphaFuncx ( GLenum func, GLclampx ref ) 64 65 public native void glAlphaFuncx( 66 int func, 67 int ref 68 ); 69 70 // C function void glBindTexture ( GLenum target, GLuint texture ) 71 72 public native void glBindTexture( 73 int target, 74 int texture 75 ); 76 77 // C function void glBlendFunc ( GLenum sfactor, GLenum dfactor ) 78 79 public native void glBlendFunc( 80 int sfactor, 81 int dfactor 82 ); 83 84 // C function void glClear ( GLbitfield mask ) 85 86 public native void glClear( 87 int mask 88 ); 89 90 // C function void glClearColor ( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha ) 91 92 public native void glClearColor( 93 float red, 94 float green, 95 float blue, 96 float alpha 97 ); 98 99 // C function void glClearColorx ( GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha ) 100 101 public native void glClearColorx( 102 int red, 103 int green, 104 int blue, 105 int alpha 106 ); 107 108 // C function void glClearDepthf ( GLclampf depth ) 109 110 public native void glClearDepthf( 111 float depth 112 ); 113 114 // C function void glClearDepthx ( GLclampx depth ) 115 116 public native void glClearDepthx( 117 int depth 118 ); 119 120 // C function void glClearStencil ( GLint s ) 121 122 public native void glClearStencil( 123 int s 124 ); 125 126 // C function void glClientActiveTexture ( GLenum texture ) 127 128 public native void glClientActiveTexture( 129 int texture 130 ); 131 132 // C function void glColor4f ( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha ) 133 134 public native void glColor4f( 135 float red, 136 float green, 137 float blue, 138 float alpha 139 ); 140 141 // C function void glColor4x ( GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha ) 142 143 public native void glColor4x( 144 int red, 145 int green, 146 int blue, 147 int alpha 148 ); 149 150 // C function void glColorMask ( GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha ) 151 152 public native void glColorMask( 153 boolean red, 154 boolean green, 155 boolean blue, 156 boolean alpha 157 ); 158 159 // C function void glColorPointer ( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer ) 160 161 private native void glColorPointerBounds( 162 int size, 163 int type, 164 int stride, 165 java.nio.Buffer pointer, 166 int remaining 167 ); 168 169 public void glColorPointer( 170 int size, 171 int type, 172 int stride, 173 java.nio.Buffer pointer 174 ) { 175 glColorPointerBounds( 176 size, 177 type, 178 stride, 179 pointer, 180 pointer.remaining() 181 ); 182 if ((size == 4) && 183 ((type == GL_FLOAT) || 184 (type == GL_UNSIGNED_BYTE) || 185 (type == GL_FIXED)) && 186 (stride >= 0)) { 187 _colorPointer = pointer; 188 } 189 } 190 191 // C function void glCompressedTexImage2D ( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data ) 192 193 public native void glCompressedTexImage2D( 194 int target, 195 int level, 196 int internalformat, 197 int width, 198 int height, 199 int border, 200 int imageSize, 201 java.nio.Buffer data 202 ); 203 204 // C function void glCompressedTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data ) 205 206 public native void glCompressedTexSubImage2D( 207 int target, 208 int level, 209 int xoffset, 210 int yoffset, 211 int width, 212 int height, 213 int format, 214 int imageSize, 215 java.nio.Buffer data 216 ); 217 218 // C function void glCopyTexImage2D ( GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border ) 219 220 public native void glCopyTexImage2D( 221 int target, 222 int level, 223 int internalformat, 224 int x, 225 int y, 226 int width, 227 int height, 228 int border 229 ); 230 231 // C function void glCopyTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height ) 232 233 public native void glCopyTexSubImage2D( 234 int target, 235 int level, 236 int xoffset, 237 int yoffset, 238 int x, 239 int y, 240 int width, 241 int height 242 ); 243 244 // C function void glCullFace ( GLenum mode ) 245 246 public native void glCullFace( 247 int mode 248 ); 249 250 // C function void glDeleteTextures ( GLsizei n, const GLuint *textures ) 251 252 public native void glDeleteTextures( 253 int n, 254 int[] textures, 255 int offset 256 ); 257 258 // C function void glDeleteTextures ( GLsizei n, const GLuint *textures ) 259 260 public native void glDeleteTextures( 261 int n, 262 java.nio.IntBuffer textures 263 ); 264 265 // C function void glDepthFunc ( GLenum func ) 266 267 public native void glDepthFunc( 268 int func 269 ); 270 271 // C function void glDepthMask ( GLboolean flag ) 272 273 public native void glDepthMask( 274 boolean flag 275 ); 276 277 // C function void glDepthRangef ( GLclampf zNear, GLclampf zFar ) 278 279 public native void glDepthRangef( 280 float zNear, 281 float zFar 282 ); 283 284 // C function void glDepthRangex ( GLclampx zNear, GLclampx zFar ) 285 286 public native void glDepthRangex( 287 int zNear, 288 int zFar 289 ); 290 291 // C function void glDisable ( GLenum cap ) 292 293 public native void glDisable( 294 int cap 295 ); 296 297 // C function void glDisableClientState ( GLenum array ) 298 299 public native void glDisableClientState( 300 int array 301 ); 302 303 // C function void glDrawArrays ( GLenum mode, GLint first, GLsizei count ) 304 305 public native void glDrawArrays( 306 int mode, 307 int first, 308 int count 309 ); 310 311 // C function void glDrawElements ( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices ) 312 313 public native void glDrawElements( 314 int mode, 315 int count, 316 int type, 317 java.nio.Buffer indices 318 ); 319 320 // C function void glEnable ( GLenum cap ) 321 322 public native void glEnable( 323 int cap 324 ); 325 326 // C function void glEnableClientState ( GLenum array ) 327 328 public native void glEnableClientState( 329 int array 330 ); 331 332 // C function void glFinish ( void ) 333 334 public native void glFinish( 335 ); 336 337 // C function void glFlush ( void ) 338 339 public native void glFlush( 340 ); 341 342 // C function void glFogf ( GLenum pname, GLfloat param ) 343 344 public native void glFogf( 345 int pname, 346 float param 347 ); 348 349 // C function void glFogfv ( GLenum pname, const GLfloat *params ) 350 351 public native void glFogfv( 352 int pname, 353 float[] params, 354 int offset 355 ); 356 357 // C function void glFogfv ( GLenum pname, const GLfloat *params ) 358 359 public native void glFogfv( 360 int pname, 361 java.nio.FloatBuffer params 362 ); 363 364 // C function void glFogx ( GLenum pname, GLfixed param ) 365 366 public native void glFogx( 367 int pname, 368 int param 369 ); 370 371 // C function void glFogxv ( GLenum pname, const GLfixed *params ) 372 373 public native void glFogxv( 374 int pname, 375 int[] params, 376 int offset 377 ); 378 379 // C function void glFogxv ( GLenum pname, const GLfixed *params ) 380 381 public native void glFogxv( 382 int pname, 383 java.nio.IntBuffer params 384 ); 385 386 // C function void glFrontFace ( GLenum mode ) 387 388 public native void glFrontFace( 389 int mode 390 ); 391 392 // C function void glFrustumf ( GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar ) 393 394 public native void glFrustumf( 395 float left, 396 float right, 397 float bottom, 398 float top, 399 float zNear, 400 float zFar 401 ); 402 403 // C function void glFrustumx ( GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar ) 404 405 public native void glFrustumx( 406 int left, 407 int right, 408 int bottom, 409 int top, 410 int zNear, 411 int zFar 412 ); 413 414 // C function void glGenTextures ( GLsizei n, GLuint *textures ) 415 416 public native void glGenTextures( 417 int n, 418 int[] textures, 419 int offset 420 ); 421 422 // C function void glGenTextures ( GLsizei n, GLuint *textures ) 423 424 public native void glGenTextures( 425 int n, 426 java.nio.IntBuffer textures 427 ); 428 429 // C function GLenum glGetError ( void ) 430 431 public native int glGetError( 432 ); 433 434 // C function void glGetIntegerv ( GLenum pname, GLint *params ) 435 436 public native void glGetIntegerv( 437 int pname, 438 int[] params, 439 int offset 440 ); 441 442 // C function void glGetIntegerv ( GLenum pname, GLint *params ) 443 444 public native void glGetIntegerv( 445 int pname, 446 java.nio.IntBuffer params 447 ); 448 449 // C function const GLubyte * glGetString ( GLenum name ) 450 451 public native String _glGetString( 452 int name 453 ); 454 455 public String glGetString( 456 int name 457 ) { 458 String returnValue; 459 returnValue = _glGetString( 460 name 461 ); 462 return returnValue; 463 } 464 465 // C function void glHint ( GLenum target, GLenum mode ) 466 467 public native void glHint( 468 int target, 469 int mode 470 ); 471 472 // C function void glLightModelf ( GLenum pname, GLfloat param ) 473 474 public native void glLightModelf( 475 int pname, 476 float param 477 ); 478 479 // C function void glLightModelfv ( GLenum pname, const GLfloat *params ) 480 481 public native void glLightModelfv( 482 int pname, 483 float[] params, 484 int offset 485 ); 486 487 // C function void glLightModelfv ( GLenum pname, const GLfloat *params ) 488 489 public native void glLightModelfv( 490 int pname, 491 java.nio.FloatBuffer params 492 ); 493 494 // C function void glLightModelx ( GLenum pname, GLfixed param ) 495 496 public native void glLightModelx( 497 int pname, 498 int param 499 ); 500 501 // C function void glLightModelxv ( GLenum pname, const GLfixed *params ) 502 503 public native void glLightModelxv( 504 int pname, 505 int[] params, 506 int offset 507 ); 508 509 // C function void glLightModelxv ( GLenum pname, const GLfixed *params ) 510 511 public native void glLightModelxv( 512 int pname, 513 java.nio.IntBuffer params 514 ); 515 516 // C function void glLightf ( GLenum light, GLenum pname, GLfloat param ) 517 518 public native void glLightf( 519 int light, 520 int pname, 521 float param 522 ); 523 524 // C function void glLightfv ( GLenum light, GLenum pname, const GLfloat *params ) 525 526 public native void glLightfv( 527 int light, 528 int pname, 529 float[] params, 530 int offset 531 ); 532 533 // C function void glLightfv ( GLenum light, GLenum pname, const GLfloat *params ) 534 535 public native void glLightfv( 536 int light, 537 int pname, 538 java.nio.FloatBuffer params 539 ); 540 541 // C function void glLightx ( GLenum light, GLenum pname, GLfixed param ) 542 543 public native void glLightx( 544 int light, 545 int pname, 546 int param 547 ); 548 549 // C function void glLightxv ( GLenum light, GLenum pname, const GLfixed *params ) 550 551 public native void glLightxv( 552 int light, 553 int pname, 554 int[] params, 555 int offset 556 ); 557 558 // C function void glLightxv ( GLenum light, GLenum pname, const GLfixed *params ) 559 560 public native void glLightxv( 561 int light, 562 int pname, 563 java.nio.IntBuffer params 564 ); 565 566 // C function void glLineWidth ( GLfloat width ) 567 568 public native void glLineWidth( 569 float width 570 ); 571 572 // C function void glLineWidthx ( GLfixed width ) 573 574 public native void glLineWidthx( 575 int width 576 ); 577 578 // C function void glLoadIdentity ( void ) 579 580 public native void glLoadIdentity( 581 ); 582 583 // C function void glLoadMatrixf ( const GLfloat *m ) 584 585 public native void glLoadMatrixf( 586 float[] m, 587 int offset 588 ); 589 590 // C function void glLoadMatrixf ( const GLfloat *m ) 591 592 public native void glLoadMatrixf( 593 java.nio.FloatBuffer m 594 ); 595 596 // C function void glLoadMatrixx ( const GLfixed *m ) 597 598 public native void glLoadMatrixx( 599 int[] m, 600 int offset 601 ); 602 603 // C function void glLoadMatrixx ( const GLfixed *m ) 604 605 public native void glLoadMatrixx( 606 java.nio.IntBuffer m 607 ); 608 609 // C function void glLogicOp ( GLenum opcode ) 610 611 public native void glLogicOp( 612 int opcode 613 ); 614 615 // C function void glMaterialf ( GLenum face, GLenum pname, GLfloat param ) 616 617 public native void glMaterialf( 618 int face, 619 int pname, 620 float param 621 ); 622 623 // C function void glMaterialfv ( GLenum face, GLenum pname, const GLfloat *params ) 624 625 public native void glMaterialfv( 626 int face, 627 int pname, 628 float[] params, 629 int offset 630 ); 631 632 // C function void glMaterialfv ( GLenum face, GLenum pname, const GLfloat *params ) 633 634 public native void glMaterialfv( 635 int face, 636 int pname, 637 java.nio.FloatBuffer params 638 ); 639 640 // C function void glMaterialx ( GLenum face, GLenum pname, GLfixed param ) 641 642 public native void glMaterialx( 643 int face, 644 int pname, 645 int param 646 ); 647 648 // C function void glMaterialxv ( GLenum face, GLenum pname, const GLfixed *params ) 649 650 public native void glMaterialxv( 651 int face, 652 int pname, 653 int[] params, 654 int offset 655 ); 656 657 // C function void glMaterialxv ( GLenum face, GLenum pname, const GLfixed *params ) 658 659 public native void glMaterialxv( 660 int face, 661 int pname, 662 java.nio.IntBuffer params 663 ); 664 665 // C function void glMatrixMode ( GLenum mode ) 666 667 public native void glMatrixMode( 668 int mode 669 ); 670 671 // C function void glMultMatrixf ( const GLfloat *m ) 672 673 public native void glMultMatrixf( 674 float[] m, 675 int offset 676 ); 677 678 // C function void glMultMatrixf ( const GLfloat *m ) 679 680 public native void glMultMatrixf( 681 java.nio.FloatBuffer m 682 ); 683 684 // C function void glMultMatrixx ( const GLfixed *m ) 685 686 public native void glMultMatrixx( 687 int[] m, 688 int offset 689 ); 690 691 // C function void glMultMatrixx ( const GLfixed *m ) 692 693 public native void glMultMatrixx( 694 java.nio.IntBuffer m 695 ); 696 697 // C function void glMultiTexCoord4f ( GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q ) 698 699 public native void glMultiTexCoord4f( 700 int target, 701 float s, 702 float t, 703 float r, 704 float q 705 ); 706 707 // C function void glMultiTexCoord4x ( GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q ) 708 709 public native void glMultiTexCoord4x( 710 int target, 711 int s, 712 int t, 713 int r, 714 int q 715 ); 716 717 // C function void glNormal3f ( GLfloat nx, GLfloat ny, GLfloat nz ) 718 719 public native void glNormal3f( 720 float nx, 721 float ny, 722 float nz 723 ); 724 725 // C function void glNormal3x ( GLfixed nx, GLfixed ny, GLfixed nz ) 726 727 public native void glNormal3x( 728 int nx, 729 int ny, 730 int nz 731 ); 732 733 // C function void glNormalPointer ( GLenum type, GLsizei stride, const GLvoid *pointer ) 734 735 private native void glNormalPointerBounds( 736 int type, 737 int stride, 738 java.nio.Buffer pointer, 739 int remaining 740 ); 741 742 public void glNormalPointer( 743 int type, 744 int stride, 745 java.nio.Buffer pointer 746 ) { 747 glNormalPointerBounds( 748 type, 749 stride, 750 pointer, 751 pointer.remaining() 752 ); 753 if (((type == GL_FLOAT) || 754 (type == GL_BYTE) || 755 (type == GL_SHORT) || 756 (type == GL_FIXED)) && 757 (stride >= 0)) { 758 _normalPointer = pointer; 759 } 760 } 761 762 // C function void glOrthof ( GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar ) 763 764 public native void glOrthof( 765 float left, 766 float right, 767 float bottom, 768 float top, 769 float zNear, 770 float zFar 771 ); 772 773 // C function void glOrthox ( GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar ) 774 775 public native void glOrthox( 776 int left, 777 int right, 778 int bottom, 779 int top, 780 int zNear, 781 int zFar 782 ); 783 784 // C function void glPixelStorei ( GLenum pname, GLint param ) 785 786 public native void glPixelStorei( 787 int pname, 788 int param 789 ); 790 791 // C function void glPointSize ( GLfloat size ) 792 793 public native void glPointSize( 794 float size 795 ); 796 797 // C function void glPointSizex ( GLfixed size ) 798 799 public native void glPointSizex( 800 int size 801 ); 802 803 // C function void glPolygonOffset ( GLfloat factor, GLfloat units ) 804 805 public native void glPolygonOffset( 806 float factor, 807 float units 808 ); 809 810 // C function void glPolygonOffsetx ( GLfixed factor, GLfixed units ) 811 812 public native void glPolygonOffsetx( 813 int factor, 814 int units 815 ); 816 817 // C function void glPopMatrix ( void ) 818 819 public native void glPopMatrix( 820 ); 821 822 // C function void glPushMatrix ( void ) 823 824 public native void glPushMatrix( 825 ); 826 827 // C function void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) 828 829 public native void glReadPixels( 830 int x, 831 int y, 832 int width, 833 int height, 834 int format, 835 int type, 836 java.nio.Buffer pixels 837 ); 838 839 // C function void glRotatef ( GLfloat angle, GLfloat x, GLfloat y, GLfloat z ) 840 841 public native void glRotatef( 842 float angle, 843 float x, 844 float y, 845 float z 846 ); 847 848 // C function void glRotatex ( GLfixed angle, GLfixed x, GLfixed y, GLfixed z ) 849 850 public native void glRotatex( 851 int angle, 852 int x, 853 int y, 854 int z 855 ); 856 857 // C function void glSampleCoverage ( GLclampf value, GLboolean invert ) 858 859 public native void glSampleCoverage( 860 float value, 861 boolean invert 862 ); 863 864 // C function void glSampleCoveragex ( GLclampx value, GLboolean invert ) 865 866 public native void glSampleCoveragex( 867 int value, 868 boolean invert 869 ); 870 871 // C function void glScalef ( GLfloat x, GLfloat y, GLfloat z ) 872 873 public native void glScalef( 874 float x, 875 float y, 876 float z 877 ); 878 879 // C function void glScalex ( GLfixed x, GLfixed y, GLfixed z ) 880 881 public native void glScalex( 882 int x, 883 int y, 884 int z 885 ); 886 887 // C function void glScissor ( GLint x, GLint y, GLsizei width, GLsizei height ) 888 889 public native void glScissor( 890 int x, 891 int y, 892 int width, 893 int height 894 ); 895 896 // C function void glShadeModel ( GLenum mode ) 897 898 public native void glShadeModel( 899 int mode 900 ); 901 902 // C function void glStencilFunc ( GLenum func, GLint ref, GLuint mask ) 903 904 public native void glStencilFunc( 905 int func, 906 int ref, 907 int mask 908 ); 909 910 // C function void glStencilMask ( GLuint mask ) 911 912 public native void glStencilMask( 913 int mask 914 ); 915 916 // C function void glStencilOp ( GLenum fail, GLenum zfail, GLenum zpass ) 917 918 public native void glStencilOp( 919 int fail, 920 int zfail, 921 int zpass 922 ); 923 924 // C function void glTexCoordPointer ( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer ) 925 926 private native void glTexCoordPointerBounds( 927 int size, 928 int type, 929 int stride, 930 java.nio.Buffer pointer, 931 int remaining 932 ); 933 934 public void glTexCoordPointer( 935 int size, 936 int type, 937 int stride, 938 java.nio.Buffer pointer 939 ) { 940 glTexCoordPointerBounds( 941 size, 942 type, 943 stride, 944 pointer, 945 pointer.remaining() 946 ); 947 if (((size == 2) || 948 (size == 3) || 949 (size == 4)) && 950 ((type == GL_FLOAT) || 951 (type == GL_BYTE) || 952 (type == GL_SHORT) || 953 (type == GL_FIXED)) && 954 (stride >= 0)) { 955 _texCoordPointer = pointer; 956 } 957 } 958 959 // C function void glTexEnvf ( GLenum target, GLenum pname, GLfloat param ) 960 961 public native void glTexEnvf( 962 int target, 963 int pname, 964 float param 965 ); 966 967 // C function void glTexEnvfv ( GLenum target, GLenum pname, const GLfloat *params ) 968 969 public native void glTexEnvfv( 970 int target, 971 int pname, 972 float[] params, 973 int offset 974 ); 975 976 // C function void glTexEnvfv ( GLenum target, GLenum pname, const GLfloat *params ) 977 978 public native void glTexEnvfv( 979 int target, 980 int pname, 981 java.nio.FloatBuffer params 982 ); 983 984 // C function void glTexEnvx ( GLenum target, GLenum pname, GLfixed param ) 985 986 public native void glTexEnvx( 987 int target, 988 int pname, 989 int param 990 ); 991 992 // C function void glTexEnvxv ( GLenum target, GLenum pname, const GLfixed *params ) 993 994 public native void glTexEnvxv( 995 int target, 996 int pname, 997 int[] params, 998 int offset 999 ); 1000 1001 // C function void glTexEnvxv ( GLenum target, GLenum pname, const GLfixed *params ) 1002 1003 public native void glTexEnvxv( 1004 int target, 1005 int pname, 1006 java.nio.IntBuffer params 1007 ); 1008 1009 // C function void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) 1010 1011 public native void glTexImage2D( 1012 int target, 1013 int level, 1014 int internalformat, 1015 int width, 1016 int height, 1017 int border, 1018 int format, 1019 int type, 1020 java.nio.Buffer pixels 1021 ); 1022 1023 // C function void glTexParameterf ( GLenum target, GLenum pname, GLfloat param ) 1024 1025 public native void glTexParameterf( 1026 int target, 1027 int pname, 1028 float param 1029 ); 1030 1031 // C function void glTexParameterx ( GLenum target, GLenum pname, GLfixed param ) 1032 1033 public native void glTexParameterx( 1034 int target, 1035 int pname, 1036 int param 1037 ); 1038 1039 // C function void glTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels ) 1040 1041 public native void glTexSubImage2D( 1042 int target, 1043 int level, 1044 int xoffset, 1045 int yoffset, 1046 int width, 1047 int height, 1048 int format, 1049 int type, 1050 java.nio.Buffer pixels 1051 ); 1052 1053 // C function void glTranslatef ( GLfloat x, GLfloat y, GLfloat z ) 1054 1055 public native void glTranslatef( 1056 float x, 1057 float y, 1058 float z 1059 ); 1060 1061 // C function void glTranslatex ( GLfixed x, GLfixed y, GLfixed z ) 1062 1063 public native void glTranslatex( 1064 int x, 1065 int y, 1066 int z 1067 ); 1068 1069 // C function void glVertexPointer ( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer ) 1070 1071 private native void glVertexPointerBounds( 1072 int size, 1073 int type, 1074 int stride, 1075 java.nio.Buffer pointer, 1076 int remaining 1077 ); 1078 1079 public void glVertexPointer( 1080 int size, 1081 int type, 1082 int stride, 1083 java.nio.Buffer pointer 1084 ) { 1085 glVertexPointerBounds( 1086 size, 1087 type, 1088 stride, 1089 pointer, 1090 pointer.remaining() 1091 ); 1092 if (((size == 2) || 1093 (size == 3) || 1094 (size == 4)) && 1095 ((type == GL_FLOAT) || 1096 (type == GL_BYTE) || 1097 (type == GL_SHORT) || 1098 (type == GL_FIXED)) && 1099 (stride >= 0)) { 1100 _vertexPointer = pointer; 1101 } 1102 } 1103 1104 // C function void glViewport ( GLint x, GLint y, GLsizei width, GLsizei height ) 1105 1106 public native void glViewport( 1107 int x, 1108 int y, 1109 int width, 1110 int height 1111 ); 1112 1113 // C function GLbitfield glQueryMatrixxOES ( GLfixed *mantissa, GLint *exponent ) 1114 1115 public native int glQueryMatrixxOES( 1116 int[] mantissa, 1117 int mantissaOffset, 1118 int[] exponent, 1119 int exponentOffset 1120 ); 1121 1122 // C function GLbitfield glQueryMatrixxOES ( GLfixed *mantissa, GLint *exponent ) 1123 1124 public native int glQueryMatrixxOES( 1125 java.nio.IntBuffer mantissa, 1126 java.nio.IntBuffer exponent 1127 ); 1128 1129 // C function void glBindBuffer ( GLenum target, GLuint buffer ) 1130 1131 public native void glBindBuffer( 1132 int target, 1133 int buffer 1134 ); 1135 1136 // C function void glBufferData ( GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage ) 1137 1138 public native void glBufferData( 1139 int target, 1140 int size, 1141 java.nio.Buffer data, 1142 int usage 1143 ); 1144 1145 // C function void glBufferSubData ( GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data ) 1146 1147 public native void glBufferSubData( 1148 int target, 1149 int offset, 1150 int size, 1151 java.nio.Buffer data 1152 ); 1153 1154 // C function void glClipPlanef ( GLenum plane, const GLfloat *equation ) 1155 1156 public native void glClipPlanef( 1157 int plane, 1158 float[] equation, 1159 int offset 1160 ); 1161 1162 // C function void glClipPlanef ( GLenum plane, const GLfloat *equation ) 1163 1164 public native void glClipPlanef( 1165 int plane, 1166 java.nio.FloatBuffer equation 1167 ); 1168 1169 // C function void glClipPlanex ( GLenum plane, const GLfixed *equation ) 1170 1171 public native void glClipPlanex( 1172 int plane, 1173 int[] equation, 1174 int offset 1175 ); 1176 1177 // C function void glClipPlanex ( GLenum plane, const GLfixed *equation ) 1178 1179 public native void glClipPlanex( 1180 int plane, 1181 java.nio.IntBuffer equation 1182 ); 1183 1184 // C function void glColor4ub ( GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha ) 1185 1186 public native void glColor4ub( 1187 byte red, 1188 byte green, 1189 byte blue, 1190 byte alpha 1191 ); 1192 1193 // C function void glColorPointer ( GLint size, GLenum type, GLsizei stride, GLint offset ) 1194 1195 public native void glColorPointer( 1196 int size, 1197 int type, 1198 int stride, 1199 int offset 1200 ); 1201 1202 // C function void glDeleteBuffers ( GLsizei n, const GLuint *buffers ) 1203 1204 public native void glDeleteBuffers( 1205 int n, 1206 int[] buffers, 1207 int offset 1208 ); 1209 1210 // C function void glDeleteBuffers ( GLsizei n, const GLuint *buffers ) 1211 1212 public native void glDeleteBuffers( 1213 int n, 1214 java.nio.IntBuffer buffers 1215 ); 1216 1217 // C function void glDrawElements ( GLenum mode, GLsizei count, GLenum type, GLint offset ) 1218 1219 public native void glDrawElements( 1220 int mode, 1221 int count, 1222 int type, 1223 int offset 1224 ); 1225 1226 // C function void glGenBuffers ( GLsizei n, GLuint *buffers ) 1227 1228 public native void glGenBuffers( 1229 int n, 1230 int[] buffers, 1231 int offset 1232 ); 1233 1234 // C function void glGenBuffers ( GLsizei n, GLuint *buffers ) 1235 1236 public native void glGenBuffers( 1237 int n, 1238 java.nio.IntBuffer buffers 1239 ); 1240 1241 // C function void glGetBooleanv ( GLenum pname, GLboolean *params ) 1242 1243 public native void glGetBooleanv( 1244 int pname, 1245 boolean[] params, 1246 int offset 1247 ); 1248 1249 // C function void glGetBooleanv ( GLenum pname, GLboolean *params ) 1250 1251 public native void glGetBooleanv( 1252 int pname, 1253 java.nio.IntBuffer params 1254 ); 1255 1256 // C function void glGetBufferParameteriv ( GLenum target, GLenum pname, GLint *params ) 1257 1258 public native void glGetBufferParameteriv( 1259 int target, 1260 int pname, 1261 int[] params, 1262 int offset 1263 ); 1264 1265 // C function void glGetBufferParameteriv ( GLenum target, GLenum pname, GLint *params ) 1266 1267 public native void glGetBufferParameteriv( 1268 int target, 1269 int pname, 1270 java.nio.IntBuffer params 1271 ); 1272 1273 // C function void glGetClipPlanef ( GLenum pname, GLfloat *eqn ) 1274 1275 public native void glGetClipPlanef( 1276 int pname, 1277 float[] eqn, 1278 int offset 1279 ); 1280 1281 // C function void glGetClipPlanef ( GLenum pname, GLfloat *eqn ) 1282 1283 public native void glGetClipPlanef( 1284 int pname, 1285 java.nio.FloatBuffer eqn 1286 ); 1287 1288 // C function void glGetClipPlanex ( GLenum pname, GLfixed *eqn ) 1289 1290 public native void glGetClipPlanex( 1291 int pname, 1292 int[] eqn, 1293 int offset 1294 ); 1295 1296 // C function void glGetClipPlanex ( GLenum pname, GLfixed *eqn ) 1297 1298 public native void glGetClipPlanex( 1299 int pname, 1300 java.nio.IntBuffer eqn 1301 ); 1302 1303 // C function void glGetFixedv ( GLenum pname, GLfixed *params ) 1304 1305 public native void glGetFixedv( 1306 int pname, 1307 int[] params, 1308 int offset 1309 ); 1310 1311 // C function void glGetFixedv ( GLenum pname, GLfixed *params ) 1312 1313 public native void glGetFixedv( 1314 int pname, 1315 java.nio.IntBuffer params 1316 ); 1317 1318 // C function void glGetFloatv ( GLenum pname, GLfloat *params ) 1319 1320 public native void glGetFloatv( 1321 int pname, 1322 float[] params, 1323 int offset 1324 ); 1325 1326 // C function void glGetFloatv ( GLenum pname, GLfloat *params ) 1327 1328 public native void glGetFloatv( 1329 int pname, 1330 java.nio.FloatBuffer params 1331 ); 1332 1333 // C function void glGetLightfv ( GLenum light, GLenum pname, GLfloat *params ) 1334 1335 public native void glGetLightfv( 1336 int light, 1337 int pname, 1338 float[] params, 1339 int offset 1340 ); 1341 1342 // C function void glGetLightfv ( GLenum light, GLenum pname, GLfloat *params ) 1343 1344 public native void glGetLightfv( 1345 int light, 1346 int pname, 1347 java.nio.FloatBuffer params 1348 ); 1349 1350 // C function void glGetLightxv ( GLenum light, GLenum pname, GLfixed *params ) 1351 1352 public native void glGetLightxv( 1353 int light, 1354 int pname, 1355 int[] params, 1356 int offset 1357 ); 1358 1359 // C function void glGetLightxv ( GLenum light, GLenum pname, GLfixed *params ) 1360 1361 public native void glGetLightxv( 1362 int light, 1363 int pname, 1364 java.nio.IntBuffer params 1365 ); 1366 1367 // C function void glGetMaterialfv ( GLenum face, GLenum pname, GLfloat *params ) 1368 1369 public native void glGetMaterialfv( 1370 int face, 1371 int pname, 1372 float[] params, 1373 int offset 1374 ); 1375 1376 // C function void glGetMaterialfv ( GLenum face, GLenum pname, GLfloat *params ) 1377 1378 public native void glGetMaterialfv( 1379 int face, 1380 int pname, 1381 java.nio.FloatBuffer params 1382 ); 1383 1384 // C function void glGetMaterialxv ( GLenum face, GLenum pname, GLfixed *params ) 1385 1386 public native void glGetMaterialxv( 1387 int face, 1388 int pname, 1389 int[] params, 1390 int offset 1391 ); 1392 1393 // C function void glGetMaterialxv ( GLenum face, GLenum pname, GLfixed *params ) 1394 1395 public native void glGetMaterialxv( 1396 int face, 1397 int pname, 1398 java.nio.IntBuffer params 1399 ); 1400 1401 // C function void glGetTexEnviv ( GLenum env, GLenum pname, GLint *params ) 1402 1403 public native void glGetTexEnviv( 1404 int env, 1405 int pname, 1406 int[] params, 1407 int offset 1408 ); 1409 1410 // C function void glGetTexEnviv ( GLenum env, GLenum pname, GLint *params ) 1411 1412 public native void glGetTexEnviv( 1413 int env, 1414 int pname, 1415 java.nio.IntBuffer params 1416 ); 1417 1418 // C function void glGetTexEnvxv ( GLenum env, GLenum pname, GLfixed *params ) 1419 1420 public native void glGetTexEnvxv( 1421 int env, 1422 int pname, 1423 int[] params, 1424 int offset 1425 ); 1426 1427 // C function void glGetTexEnvxv ( GLenum env, GLenum pname, GLfixed *params ) 1428 1429 public native void glGetTexEnvxv( 1430 int env, 1431 int pname, 1432 java.nio.IntBuffer params 1433 ); 1434 1435 // C function void glGetTexParameterfv ( GLenum target, GLenum pname, GLfloat *params ) 1436 1437 public native void glGetTexParameterfv( 1438 int target, 1439 int pname, 1440 float[] params, 1441 int offset 1442 ); 1443 1444 // C function void glGetTexParameterfv ( GLenum target, GLenum pname, GLfloat *params ) 1445 1446 public native void glGetTexParameterfv( 1447 int target, 1448 int pname, 1449 java.nio.FloatBuffer params 1450 ); 1451 1452 // C function void glGetTexParameteriv ( GLenum target, GLenum pname, GLint *params ) 1453 1454 public native void glGetTexParameteriv( 1455 int target, 1456 int pname, 1457 int[] params, 1458 int offset 1459 ); 1460 1461 // C function void glGetTexParameteriv ( GLenum target, GLenum pname, GLint *params ) 1462 1463 public native void glGetTexParameteriv( 1464 int target, 1465 int pname, 1466 java.nio.IntBuffer params 1467 ); 1468 1469 // C function void glGetTexParameterxv ( GLenum target, GLenum pname, GLfixed *params ) 1470 1471 public native void glGetTexParameterxv( 1472 int target, 1473 int pname, 1474 int[] params, 1475 int offset 1476 ); 1477 1478 // C function void glGetTexParameterxv ( GLenum target, GLenum pname, GLfixed *params ) 1479 1480 public native void glGetTexParameterxv( 1481 int target, 1482 int pname, 1483 java.nio.IntBuffer params 1484 ); 1485 1486 // C function GLboolean glIsBuffer ( GLuint buffer ) 1487 1488 public native boolean glIsBuffer( 1489 int buffer 1490 ); 1491 1492 // C function GLboolean glIsEnabled ( GLenum cap ) 1493 1494 public native boolean glIsEnabled( 1495 int cap 1496 ); 1497 1498 // C function GLboolean glIsTexture ( GLuint texture ) 1499 1500 public native boolean glIsTexture( 1501 int texture 1502 ); 1503 1504 // C function void glNormalPointer ( GLenum type, GLsizei stride, GLint offset ) 1505 1506 public native void glNormalPointer( 1507 int type, 1508 int stride, 1509 int offset 1510 ); 1511 1512 // C function void glPointParameterf ( GLenum pname, GLfloat param ) 1513 1514 public native void glPointParameterf( 1515 int pname, 1516 float param 1517 ); 1518 1519 // C function void glPointParameterfv ( GLenum pname, const GLfloat *params ) 1520 1521 public native void glPointParameterfv( 1522 int pname, 1523 float[] params, 1524 int offset 1525 ); 1526 1527 // C function void glPointParameterfv ( GLenum pname, const GLfloat *params ) 1528 1529 public native void glPointParameterfv( 1530 int pname, 1531 java.nio.FloatBuffer params 1532 ); 1533 1534 // C function void glPointParameterx ( GLenum pname, GLfixed param ) 1535 1536 public native void glPointParameterx( 1537 int pname, 1538 int param 1539 ); 1540 1541 // C function void glPointParameterxv ( GLenum pname, const GLfixed *params ) 1542 1543 public native void glPointParameterxv( 1544 int pname, 1545 int[] params, 1546 int offset 1547 ); 1548 1549 // C function void glPointParameterxv ( GLenum pname, const GLfixed *params ) 1550 1551 public native void glPointParameterxv( 1552 int pname, 1553 java.nio.IntBuffer params 1554 ); 1555 1556 // C function void glPointSizePointerOES ( GLenum type, GLsizei stride, const GLvoid *pointer ) 1557 1558 public native void glPointSizePointerOES( 1559 int type, 1560 int stride, 1561 java.nio.Buffer pointer 1562 ); 1563 1564 // C function void glTexCoordPointer ( GLint size, GLenum type, GLsizei stride, GLint offset ) 1565 1566 public native void glTexCoordPointer( 1567 int size, 1568 int type, 1569 int stride, 1570 int offset 1571 ); 1572 1573 // C function void glTexEnvi ( GLenum target, GLenum pname, GLint param ) 1574 1575 public native void glTexEnvi( 1576 int target, 1577 int pname, 1578 int param 1579 ); 1580 1581 // C function void glTexEnviv ( GLenum target, GLenum pname, const GLint *params ) 1582 1583 public native void glTexEnviv( 1584 int target, 1585 int pname, 1586 int[] params, 1587 int offset 1588 ); 1589 1590 // C function void glTexEnviv ( GLenum target, GLenum pname, const GLint *params ) 1591 1592 public native void glTexEnviv( 1593 int target, 1594 int pname, 1595 java.nio.IntBuffer params 1596 ); 1597 1598 // C function void glTexParameterfv ( GLenum target, GLenum pname, const GLfloat *params ) 1599 1600 public native void glTexParameterfv( 1601 int target, 1602 int pname, 1603 float[] params, 1604 int offset 1605 ); 1606 1607 // C function void glTexParameterfv ( GLenum target, GLenum pname, const GLfloat *params ) 1608 1609 public native void glTexParameterfv( 1610 int target, 1611 int pname, 1612 java.nio.FloatBuffer params 1613 ); 1614 1615 // C function void glTexParameteri ( GLenum target, GLenum pname, GLint param ) 1616 1617 public native void glTexParameteri( 1618 int target, 1619 int pname, 1620 int param 1621 ); 1622 1623 // C function void glTexParameteriv ( GLenum target, GLenum pname, const GLint *params ) 1624 1625 public native void glTexParameteriv( 1626 int target, 1627 int pname, 1628 int[] params, 1629 int offset 1630 ); 1631 1632 // C function void glTexParameteriv ( GLenum target, GLenum pname, const GLint *params ) 1633 1634 public native void glTexParameteriv( 1635 int target, 1636 int pname, 1637 java.nio.IntBuffer params 1638 ); 1639 1640 // C function void glTexParameterxv ( GLenum target, GLenum pname, const GLfixed *params ) 1641 1642 public native void glTexParameterxv( 1643 int target, 1644 int pname, 1645 int[] params, 1646 int offset 1647 ); 1648 1649 // C function void glTexParameterxv ( GLenum target, GLenum pname, const GLfixed *params ) 1650 1651 public native void glTexParameterxv( 1652 int target, 1653 int pname, 1654 java.nio.IntBuffer params 1655 ); 1656 1657 // C function void glVertexPointer ( GLint size, GLenum type, GLsizei stride, GLint offset ) 1658 1659 public native void glVertexPointer( 1660 int size, 1661 int type, 1662 int stride, 1663 int offset 1664 ); 1665 1666 // C function void glCurrentPaletteMatrixOES ( GLuint matrixpaletteindex ) 1667 1668 public native void glCurrentPaletteMatrixOES( 1669 int matrixpaletteindex 1670 ); 1671 1672 // C function void glDrawTexfOES ( GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height ) 1673 1674 public native void glDrawTexfOES( 1675 float x, 1676 float y, 1677 float z, 1678 float width, 1679 float height 1680 ); 1681 1682 // C function void glDrawTexfvOES ( const GLfloat *coords ) 1683 1684 public native void glDrawTexfvOES( 1685 float[] coords, 1686 int offset 1687 ); 1688 1689 // C function void glDrawTexfvOES ( const GLfloat *coords ) 1690 1691 public native void glDrawTexfvOES( 1692 java.nio.FloatBuffer coords 1693 ); 1694 1695 // C function void glDrawTexiOES ( GLint x, GLint y, GLint z, GLint width, GLint height ) 1696 1697 public native void glDrawTexiOES( 1698 int x, 1699 int y, 1700 int z, 1701 int width, 1702 int height 1703 ); 1704 1705 // C function void glDrawTexivOES ( const GLint *coords ) 1706 1707 public native void glDrawTexivOES( 1708 int[] coords, 1709 int offset 1710 ); 1711 1712 // C function void glDrawTexivOES ( const GLint *coords ) 1713 1714 public native void glDrawTexivOES( 1715 java.nio.IntBuffer coords 1716 ); 1717 1718 // C function void glDrawTexsOES ( GLshort x, GLshort y, GLshort z, GLshort width, GLshort height ) 1719 1720 public native void glDrawTexsOES( 1721 short x, 1722 short y, 1723 short z, 1724 short width, 1725 short height 1726 ); 1727 1728 // C function void glDrawTexsvOES ( const GLshort *coords ) 1729 1730 public native void glDrawTexsvOES( 1731 short[] coords, 1732 int offset 1733 ); 1734 1735 // C function void glDrawTexsvOES ( const GLshort *coords ) 1736 1737 public native void glDrawTexsvOES( 1738 java.nio.ShortBuffer coords 1739 ); 1740 1741 // C function void glDrawTexxOES ( GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height ) 1742 1743 public native void glDrawTexxOES( 1744 int x, 1745 int y, 1746 int z, 1747 int width, 1748 int height 1749 ); 1750 1751 // C function void glDrawTexxvOES ( const GLfixed *coords ) 1752 1753 public native void glDrawTexxvOES( 1754 int[] coords, 1755 int offset 1756 ); 1757 1758 // C function void glDrawTexxvOES ( const GLfixed *coords ) 1759 1760 public native void glDrawTexxvOES( 1761 java.nio.IntBuffer coords 1762 ); 1763 1764 // C function void glLoadPaletteFromModelViewMatrixOES ( void ) 1765 1766 public native void glLoadPaletteFromModelViewMatrixOES( 1767 ); 1768 1769 // C function void glMatrixIndexPointerOES ( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer ) 1770 1771 public native void glMatrixIndexPointerOES( 1772 int size, 1773 int type, 1774 int stride, 1775 java.nio.Buffer pointer 1776 ); 1777 1778 // C function void glMatrixIndexPointerOES ( GLint size, GLenum type, GLsizei stride, GLint offset ) 1779 1780 public native void glMatrixIndexPointerOES( 1781 int size, 1782 int type, 1783 int stride, 1784 int offset 1785 ); 1786 1787 // C function void glWeightPointerOES ( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer ) 1788 1789 public native void glWeightPointerOES( 1790 int size, 1791 int type, 1792 int stride, 1793 java.nio.Buffer pointer 1794 ); 1795 1796 // C function void glWeightPointerOES ( GLint size, GLenum type, GLsizei stride, GLint offset ) 1797 1798 public native void glWeightPointerOES( 1799 int size, 1800 int type, 1801 int stride, 1802 int offset 1803 ); 1804 1805 // C function void glBindFramebufferOES ( GLint target, GLint framebuffer ) 1806 1807 public native void glBindFramebufferOES( 1808 int target, 1809 int framebuffer 1810 ); 1811 1812 // C function void glBindRenderbufferOES ( GLint target, GLint renderbuffer ) 1813 1814 public native void glBindRenderbufferOES( 1815 int target, 1816 int renderbuffer 1817 ); 1818 1819 // C function void glBlendEquation ( GLint mode ) 1820 1821 public native void glBlendEquation( 1822 int mode 1823 ); 1824 1825 // C function void glBlendEquationSeparate ( GLint modeRGB, GLint modeAlpha ) 1826 1827 public native void glBlendEquationSeparate( 1828 int modeRGB, 1829 int modeAlpha 1830 ); 1831 1832 // C function void glBlendFuncSeparate ( GLint srcRGB, GLint dstRGB, GLint srcAlpha, GLint dstAlpha ) 1833 1834 public native void glBlendFuncSeparate( 1835 int srcRGB, 1836 int dstRGB, 1837 int srcAlpha, 1838 int dstAlpha 1839 ); 1840 1841 // C function GLint glCheckFramebufferStatusOES ( GLint target ) 1842 1843 public native int glCheckFramebufferStatusOES( 1844 int target 1845 ); 1846 1847 // C function void glDeleteFramebuffersOES ( GLint n, GLint *framebuffers ) 1848 1849 public native void glDeleteFramebuffersOES( 1850 int n, 1851 int[] framebuffers, 1852 int offset 1853 ); 1854 1855 // C function void glDeleteFramebuffersOES ( GLint n, GLint *framebuffers ) 1856 1857 public native void glDeleteFramebuffersOES( 1858 int n, 1859 java.nio.IntBuffer framebuffers 1860 ); 1861 1862 // C function void glDeleteRenderbuffersOES ( GLint n, GLint *renderbuffers ) 1863 1864 public native void glDeleteRenderbuffersOES( 1865 int n, 1866 int[] renderbuffers, 1867 int offset 1868 ); 1869 1870 // C function void glDeleteRenderbuffersOES ( GLint n, GLint *renderbuffers ) 1871 1872 public native void glDeleteRenderbuffersOES( 1873 int n, 1874 java.nio.IntBuffer renderbuffers 1875 ); 1876 1877 // C function void glFramebufferRenderbufferOES ( GLint target, GLint attachment, GLint renderbuffertarget, GLint renderbuffer ) 1878 1879 public native void glFramebufferRenderbufferOES( 1880 int target, 1881 int attachment, 1882 int renderbuffertarget, 1883 int renderbuffer 1884 ); 1885 1886 // C function void glFramebufferTexture2DOES ( GLint target, GLint attachment, GLint textarget, GLint texture, GLint level ) 1887 1888 public native void glFramebufferTexture2DOES( 1889 int target, 1890 int attachment, 1891 int textarget, 1892 int texture, 1893 int level 1894 ); 1895 1896 // C function void glGenerateMipmapOES ( GLint target ) 1897 1898 public native void glGenerateMipmapOES( 1899 int target 1900 ); 1901 1902 // C function void glGenFramebuffersOES ( GLint n, GLint *framebuffers ) 1903 1904 public native void glGenFramebuffersOES( 1905 int n, 1906 int[] framebuffers, 1907 int offset 1908 ); 1909 1910 // C function void glGenFramebuffersOES ( GLint n, GLint *framebuffers ) 1911 1912 public native void glGenFramebuffersOES( 1913 int n, 1914 java.nio.IntBuffer framebuffers 1915 ); 1916 1917 // C function void glGenRenderbuffersOES ( GLint n, GLint *renderbuffers ) 1918 1919 public native void glGenRenderbuffersOES( 1920 int n, 1921 int[] renderbuffers, 1922 int offset 1923 ); 1924 1925 // C function void glGenRenderbuffersOES ( GLint n, GLint *renderbuffers ) 1926 1927 public native void glGenRenderbuffersOES( 1928 int n, 1929 java.nio.IntBuffer renderbuffers 1930 ); 1931 1932 // C function void glGetFramebufferAttachmentParameterivOES ( GLint target, GLint attachment, GLint pname, GLint *params ) 1933 1934 public native void glGetFramebufferAttachmentParameterivOES( 1935 int target, 1936 int attachment, 1937 int pname, 1938 int[] params, 1939 int offset 1940 ); 1941 1942 // C function void glGetFramebufferAttachmentParameterivOES ( GLint target, GLint attachment, GLint pname, GLint *params ) 1943 1944 public native void glGetFramebufferAttachmentParameterivOES( 1945 int target, 1946 int attachment, 1947 int pname, 1948 java.nio.IntBuffer params 1949 ); 1950 1951 // C function void glGetRenderbufferParameterivOES ( GLint target, GLint pname, GLint *params ) 1952 1953 public native void glGetRenderbufferParameterivOES( 1954 int target, 1955 int pname, 1956 int[] params, 1957 int offset 1958 ); 1959 1960 // C function void glGetRenderbufferParameterivOES ( GLint target, GLint pname, GLint *params ) 1961 1962 public native void glGetRenderbufferParameterivOES( 1963 int target, 1964 int pname, 1965 java.nio.IntBuffer params 1966 ); 1967 1968 // C function void glGetTexGenfv ( GLint coord, GLint pname, GLfloat *params ) 1969 1970 public native void glGetTexGenfv( 1971 int coord, 1972 int pname, 1973 float[] params, 1974 int offset 1975 ); 1976 1977 // C function void glGetTexGenfv ( GLint coord, GLint pname, GLfloat *params ) 1978 1979 public native void glGetTexGenfv( 1980 int coord, 1981 int pname, 1982 java.nio.FloatBuffer params 1983 ); 1984 1985 // C function void glGetTexGeniv ( GLint coord, GLint pname, GLint *params ) 1986 1987 public native void glGetTexGeniv( 1988 int coord, 1989 int pname, 1990 int[] params, 1991 int offset 1992 ); 1993 1994 // C function void glGetTexGeniv ( GLint coord, GLint pname, GLint *params ) 1995 1996 public native void glGetTexGeniv( 1997 int coord, 1998 int pname, 1999 java.nio.IntBuffer params 2000 ); 2001 2002 // C function void glGetTexGenxv ( GLint coord, GLint pname, GLint *params ) 2003 2004 public native void glGetTexGenxv( 2005 int coord, 2006 int pname, 2007 int[] params, 2008 int offset 2009 ); 2010 2011 // C function void glGetTexGenxv ( GLint coord, GLint pname, GLint *params ) 2012 2013 public native void glGetTexGenxv( 2014 int coord, 2015 int pname, 2016 java.nio.IntBuffer params 2017 ); 2018 2019 // C function GLboolean glIsFramebufferOES ( GLint framebuffer ) 2020 2021 public native boolean glIsFramebufferOES( 2022 int framebuffer 2023 ); 2024 2025 // C function GLboolean glIsRenderbufferOES ( GLint renderbuffer ) 2026 2027 public native boolean glIsRenderbufferOES( 2028 int renderbuffer 2029 ); 2030 2031 // C function void glRenderbufferStorageOES ( GLint target, GLint internalformat, GLint width, GLint height ) 2032 2033 public native void glRenderbufferStorageOES( 2034 int target, 2035 int internalformat, 2036 int width, 2037 int height 2038 ); 2039 2040 // C function void glTexGenf ( GLint coord, GLint pname, GLfloat param ) 2041 2042 public native void glTexGenf( 2043 int coord, 2044 int pname, 2045 float param 2046 ); 2047 2048 // C function void glTexGenfv ( GLint coord, GLint pname, GLfloat *params ) 2049 2050 public native void glTexGenfv( 2051 int coord, 2052 int pname, 2053 float[] params, 2054 int offset 2055 ); 2056 2057 // C function void glTexGenfv ( GLint coord, GLint pname, GLfloat *params ) 2058 2059 public native void glTexGenfv( 2060 int coord, 2061 int pname, 2062 java.nio.FloatBuffer params 2063 ); 2064 2065 // C function void glTexGeni ( GLint coord, GLint pname, GLint param ) 2066 2067 public native void glTexGeni( 2068 int coord, 2069 int pname, 2070 int param 2071 ); 2072 2073 // C function void glTexGeniv ( GLint coord, GLint pname, GLint *params ) 2074 2075 public native void glTexGeniv( 2076 int coord, 2077 int pname, 2078 int[] params, 2079 int offset 2080 ); 2081 2082 // C function void glTexGeniv ( GLint coord, GLint pname, GLint *params ) 2083 2084 public native void glTexGeniv( 2085 int coord, 2086 int pname, 2087 java.nio.IntBuffer params 2088 ); 2089 2090 // C function void glTexGenx ( GLint coord, GLint pname, GLint param ) 2091 2092 public native void glTexGenx( 2093 int coord, 2094 int pname, 2095 int param 2096 ); 2097 2098 // C function void glTexGenxv ( GLint coord, GLint pname, GLint *params ) 2099 2100 public native void glTexGenxv( 2101 int coord, 2102 int pname, 2103 int[] params, 2104 int offset 2105 ); 2106 2107 // C function void glTexGenxv ( GLint coord, GLint pname, GLint *params ) 2108 2109 public native void glTexGenxv( 2110 int coord, 2111 int pname, 2112 java.nio.IntBuffer params 2113 ); 2114 2115} 2116