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