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