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