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