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