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