1 /* 2 ** 3 ** Copyright 2009, The Android Open Source Project 4 ** 5 ** Licensed under the Apache License, Version 2.0 (the "License"); 6 ** you may not use this file except in compliance with the License. 7 ** You may obtain a copy of the License at 8 ** 9 ** http://www.apache.org/licenses/LICENSE-2.0 10 ** 11 ** Unless required by applicable law or agreed to in writing, software 12 ** distributed under the License is distributed on an "AS IS" BASIS, 13 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ** See the License for the specific language governing permissions and 15 ** limitations under the License. 16 */ 17 18 // This source file is automatically generated 19 20 package android.opengl; 21 22 import java.nio.Buffer; 23 24 public class GLES10 { 25 public static final int GL_ADD = 0x0104; 26 public static final int GL_ALIASED_LINE_WIDTH_RANGE = 0x846E; 27 public static final int GL_ALIASED_POINT_SIZE_RANGE = 0x846D; 28 public static final int GL_ALPHA = 0x1906; 29 public static final int GL_ALPHA_BITS = 0x0D55; 30 public static final int GL_ALPHA_TEST = 0x0BC0; 31 public static final int GL_ALWAYS = 0x0207; 32 public static final int GL_AMBIENT = 0x1200; 33 public static final int GL_AMBIENT_AND_DIFFUSE = 0x1602; 34 public static final int GL_AND = 0x1501; 35 public static final int GL_AND_INVERTED = 0x1504; 36 public static final int GL_AND_REVERSE = 0x1502; 37 public static final int GL_BACK = 0x0405; 38 public static final int GL_BLEND = 0x0BE2; 39 public static final int GL_BLUE_BITS = 0x0D54; 40 public static final int GL_BYTE = 0x1400; 41 public static final int GL_CCW = 0x0901; 42 public static final int GL_CLAMP_TO_EDGE = 0x812F; 43 public static final int GL_CLEAR = 0x1500; 44 public static final int GL_COLOR_ARRAY = 0x8076; 45 public static final int GL_COLOR_BUFFER_BIT = 0x4000; 46 public static final int GL_COLOR_LOGIC_OP = 0x0BF2; 47 public static final int GL_COLOR_MATERIAL = 0x0B57; 48 public static final int GL_COMPRESSED_TEXTURE_FORMATS = 0x86A3; 49 public static final int GL_CONSTANT_ATTENUATION = 0x1207; 50 public static final int GL_COPY = 0x1503; 51 public static final int GL_COPY_INVERTED = 0x150C; 52 public static final int GL_CULL_FACE = 0x0B44; 53 public static final int GL_CW = 0x0900; 54 public static final int GL_DECAL = 0x2101; 55 public static final int GL_DECR = 0x1E03; 56 public static final int GL_DEPTH_BITS = 0x0D56; 57 public static final int GL_DEPTH_BUFFER_BIT = 0x0100; 58 public static final int GL_DEPTH_TEST = 0x0B71; 59 public static final int GL_DIFFUSE = 0x1201; 60 public static final int GL_DITHER = 0x0BD0; 61 public static final int GL_DONT_CARE = 0x1100; 62 public static final int GL_DST_ALPHA = 0x0304; 63 public static final int GL_DST_COLOR = 0x0306; 64 public static final int GL_EMISSION = 0x1600; 65 public static final int GL_EQUAL = 0x0202; 66 public static final int GL_EQUIV = 0x1509; 67 public static final int GL_EXP = 0x0800; 68 public static final int GL_EXP2 = 0x0801; 69 public static final int GL_EXTENSIONS = 0x1F03; 70 public static final int GL_FALSE = 0; 71 public static final int GL_FASTEST = 0x1101; 72 public static final int GL_FIXED = 0x140C; 73 public static final int GL_FLAT = 0x1D00; 74 public static final int GL_FLOAT = 0x1406; 75 public static final int GL_FOG = 0x0B60; 76 public static final int GL_FOG_COLOR = 0x0B66; 77 public static final int GL_FOG_DENSITY = 0x0B62; 78 public static final int GL_FOG_END = 0x0B64; 79 public static final int GL_FOG_HINT = 0x0C54; 80 public static final int GL_FOG_MODE = 0x0B65; 81 public static final int GL_FOG_START = 0x0B63; 82 public static final int GL_FRONT = 0x0404; 83 public static final int GL_FRONT_AND_BACK = 0x0408; 84 public static final int GL_GEQUAL = 0x0206; 85 public static final int GL_GREATER = 0x0204; 86 public static final int GL_GREEN_BITS = 0x0D53; 87 public static final int GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES = 0x8B9B; 88 public static final int GL_IMPLEMENTATION_COLOR_READ_TYPE_OES = 0x8B9A; 89 public static final int GL_INCR = 0x1E02; 90 public static final int GL_INVALID_ENUM = 0x0500; 91 public static final int GL_INVALID_OPERATION = 0x0502; 92 public static final int GL_INVALID_VALUE = 0x0501; 93 public static final int GL_INVERT = 0x150A; 94 public static final int GL_KEEP = 0x1E00; 95 public static final int GL_LEQUAL = 0x0203; 96 public static final int GL_LESS = 0x0201; 97 public static final int GL_LIGHT_MODEL_AMBIENT = 0x0B53; 98 public static final int GL_LIGHT_MODEL_TWO_SIDE = 0x0B52; 99 public static final int GL_LIGHT0 = 0x4000; 100 public static final int GL_LIGHT1 = 0x4001; 101 public static final int GL_LIGHT2 = 0x4002; 102 public static final int GL_LIGHT3 = 0x4003; 103 public static final int GL_LIGHT4 = 0x4004; 104 public static final int GL_LIGHT5 = 0x4005; 105 public static final int GL_LIGHT6 = 0x4006; 106 public static final int GL_LIGHT7 = 0x4007; 107 public static final int GL_LIGHTING = 0x0B50; 108 public static final int GL_LINE_LOOP = 0x0002; 109 public static final int GL_LINE_SMOOTH = 0x0B20; 110 public static final int GL_LINE_SMOOTH_HINT = 0x0C52; 111 public static final int GL_LINE_STRIP = 0x0003; 112 public static final int GL_LINEAR = 0x2601; 113 public static final int GL_LINEAR_ATTENUATION = 0x1208; 114 public static final int GL_LINEAR_MIPMAP_LINEAR = 0x2703; 115 public static final int GL_LINEAR_MIPMAP_NEAREST = 0x2701; 116 public static final int GL_LINES = 0x0001; 117 public static final int GL_LUMINANCE = 0x1909; 118 public static final int GL_LUMINANCE_ALPHA = 0x190A; 119 public static final int GL_MAX_ELEMENTS_INDICES = 0x80E9; 120 public static final int GL_MAX_ELEMENTS_VERTICES = 0x80E8; 121 public static final int GL_MAX_LIGHTS = 0x0D31; 122 public static final int GL_MAX_MODELVIEW_STACK_DEPTH = 0x0D36; 123 public static final int GL_MAX_PROJECTION_STACK_DEPTH = 0x0D38; 124 public static final int GL_MAX_TEXTURE_SIZE = 0x0D33; 125 public static final int GL_MAX_TEXTURE_STACK_DEPTH = 0x0D39; 126 public static final int GL_MAX_TEXTURE_UNITS = 0x84E2; 127 public static final int GL_MAX_VIEWPORT_DIMS = 0x0D3A; 128 public static final int GL_MODELVIEW = 0x1700; 129 public static final int GL_MODULATE = 0x2100; 130 public static final int GL_MULTISAMPLE = 0x809D; 131 public static final int GL_NAND = 0x150E; 132 public static final int GL_NEAREST = 0x2600; 133 public static final int GL_NEAREST_MIPMAP_LINEAR = 0x2702; 134 public static final int GL_NEAREST_MIPMAP_NEAREST = 0x2700; 135 public static final int GL_NEVER = 0x0200; 136 public static final int GL_NICEST = 0x1102; 137 public static final int GL_NO_ERROR = 0; 138 public static final int GL_NOOP = 0x1505; 139 public static final int GL_NOR = 0x1508; 140 public static final int GL_NORMAL_ARRAY = 0x8075; 141 public static final int GL_NORMALIZE = 0x0BA1; 142 public static final int GL_NOTEQUAL = 0x0205; 143 public static final int GL_NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2; 144 public static final int GL_ONE = 1; 145 public static final int GL_ONE_MINUS_DST_ALPHA = 0x0305; 146 public static final int GL_ONE_MINUS_DST_COLOR = 0x0307; 147 public static final int GL_ONE_MINUS_SRC_ALPHA = 0x0303; 148 public static final int GL_ONE_MINUS_SRC_COLOR = 0x0301; 149 public static final int GL_OR = 0x1507; 150 public static final int GL_OR_INVERTED = 0x150D; 151 public static final int GL_OR_REVERSE = 0x150B; 152 public static final int GL_OUT_OF_MEMORY = 0x0505; 153 public static final int GL_PACK_ALIGNMENT = 0x0D05; 154 public static final int GL_PALETTE4_R5_G6_B5_OES = 0x8B92; 155 public static final int GL_PALETTE4_RGB5_A1_OES = 0x8B94; 156 public static final int GL_PALETTE4_RGB8_OES = 0x8B90; 157 public static final int GL_PALETTE4_RGBA4_OES = 0x8B93; 158 public static final int GL_PALETTE4_RGBA8_OES = 0x8B91; 159 public static final int GL_PALETTE8_R5_G6_B5_OES = 0x8B97; 160 public static final int GL_PALETTE8_RGB5_A1_OES = 0x8B99; 161 public static final int GL_PALETTE8_RGB8_OES = 0x8B95; 162 public static final int GL_PALETTE8_RGBA4_OES = 0x8B98; 163 public static final int GL_PALETTE8_RGBA8_OES = 0x8B96; 164 public static final int GL_PERSPECTIVE_CORRECTION_HINT = 0x0C50; 165 public static final int GL_POINT_SMOOTH = 0x0B10; 166 public static final int GL_POINT_SMOOTH_HINT = 0x0C51; 167 public static final int GL_POINTS = 0x0000; 168 public static final int GL_POINT_FADE_THRESHOLD_SIZE = 0x8128; 169 public static final int GL_POINT_SIZE = 0x0B11; 170 public static final int GL_POLYGON_OFFSET_FILL = 0x8037; 171 public static final int GL_POLYGON_SMOOTH_HINT = 0x0C53; 172 public static final int GL_POSITION = 0x1203; 173 public static final int GL_PROJECTION = 0x1701; 174 public static final int GL_QUADRATIC_ATTENUATION = 0x1209; 175 public static final int GL_RED_BITS = 0x0D52; 176 public static final int GL_RENDERER = 0x1F01; 177 public static final int GL_REPEAT = 0x2901; 178 public static final int GL_REPLACE = 0x1E01; 179 public static final int GL_RESCALE_NORMAL = 0x803A; 180 public static final int GL_RGB = 0x1907; 181 public static final int GL_RGBA = 0x1908; 182 public static final int GL_SAMPLE_ALPHA_TO_COVERAGE = 0x809E; 183 public static final int GL_SAMPLE_ALPHA_TO_ONE = 0x809F; 184 public static final int GL_SAMPLE_COVERAGE = 0x80A0; 185 public static final int GL_SCISSOR_TEST = 0x0C11; 186 public static final int GL_SET = 0x150F; 187 public static final int GL_SHININESS = 0x1601; 188 public static final int GL_SHORT = 0x1402; 189 public static final int GL_SMOOTH = 0x1D01; 190 public static final int GL_SMOOTH_LINE_WIDTH_RANGE = 0x0B22; 191 public static final int GL_SMOOTH_POINT_SIZE_RANGE = 0x0B12; 192 public static final int GL_SPECULAR = 0x1202; 193 public static final int GL_SPOT_CUTOFF = 0x1206; 194 public static final int GL_SPOT_DIRECTION = 0x1204; 195 public static final int GL_SPOT_EXPONENT = 0x1205; 196 public static final int GL_SRC_ALPHA = 0x0302; 197 public static final int GL_SRC_ALPHA_SATURATE = 0x0308; 198 public static final int GL_SRC_COLOR = 0x0300; 199 public static final int GL_STACK_OVERFLOW = 0x0503; 200 public static final int GL_STACK_UNDERFLOW = 0x0504; 201 public static final int GL_STENCIL_BITS = 0x0D57; 202 public static final int GL_STENCIL_BUFFER_BIT = 0x0400; 203 public static final int GL_STENCIL_TEST = 0x0B90; 204 public static final int GL_SUBPIXEL_BITS = 0x0D50; 205 public static final int GL_TEXTURE = 0x1702; 206 public static final int GL_TEXTURE_2D = 0x0DE1; 207 public static final int GL_TEXTURE_COORD_ARRAY = 0x8078; 208 public static final int GL_TEXTURE_ENV = 0x2300; 209 public static final int GL_TEXTURE_ENV_COLOR = 0x2201; 210 public static final int GL_TEXTURE_ENV_MODE = 0x2200; 211 public static final int GL_TEXTURE_MAG_FILTER = 0x2800; 212 public static final int GL_TEXTURE_MIN_FILTER = 0x2801; 213 public static final int GL_TEXTURE_WRAP_S = 0x2802; 214 public static final int GL_TEXTURE_WRAP_T = 0x2803; 215 public static final int GL_TEXTURE0 = 0x84C0; 216 public static final int GL_TEXTURE1 = 0x84C1; 217 public static final int GL_TEXTURE2 = 0x84C2; 218 public static final int GL_TEXTURE3 = 0x84C3; 219 public static final int GL_TEXTURE4 = 0x84C4; 220 public static final int GL_TEXTURE5 = 0x84C5; 221 public static final int GL_TEXTURE6 = 0x84C6; 222 public static final int GL_TEXTURE7 = 0x84C7; 223 public static final int GL_TEXTURE8 = 0x84C8; 224 public static final int GL_TEXTURE9 = 0x84C9; 225 public static final int GL_TEXTURE10 = 0x84CA; 226 public static final int GL_TEXTURE11 = 0x84CB; 227 public static final int GL_TEXTURE12 = 0x84CC; 228 public static final int GL_TEXTURE13 = 0x84CD; 229 public static final int GL_TEXTURE14 = 0x84CE; 230 public static final int GL_TEXTURE15 = 0x84CF; 231 public static final int GL_TEXTURE16 = 0x84D0; 232 public static final int GL_TEXTURE17 = 0x84D1; 233 public static final int GL_TEXTURE18 = 0x84D2; 234 public static final int GL_TEXTURE19 = 0x84D3; 235 public static final int GL_TEXTURE20 = 0x84D4; 236 public static final int GL_TEXTURE21 = 0x84D5; 237 public static final int GL_TEXTURE22 = 0x84D6; 238 public static final int GL_TEXTURE23 = 0x84D7; 239 public static final int GL_TEXTURE24 = 0x84D8; 240 public static final int GL_TEXTURE25 = 0x84D9; 241 public static final int GL_TEXTURE26 = 0x84DA; 242 public static final int GL_TEXTURE27 = 0x84DB; 243 public static final int GL_TEXTURE28 = 0x84DC; 244 public static final int GL_TEXTURE29 = 0x84DD; 245 public static final int GL_TEXTURE30 = 0x84DE; 246 public static final int GL_TEXTURE31 = 0x84DF; 247 public static final int GL_TRIANGLE_FAN = 0x0006; 248 public static final int GL_TRIANGLE_STRIP = 0x0005; 249 public static final int GL_TRIANGLES = 0x0004; 250 public static final int GL_TRUE = 1; 251 public static final int GL_UNPACK_ALIGNMENT = 0x0CF5; 252 public static final int GL_UNSIGNED_BYTE = 0x1401; 253 public static final int GL_UNSIGNED_SHORT = 0x1403; 254 public static final int GL_UNSIGNED_SHORT_4_4_4_4 = 0x8033; 255 public static final int GL_UNSIGNED_SHORT_5_5_5_1 = 0x8034; 256 public static final int GL_UNSIGNED_SHORT_5_6_5 = 0x8363; 257 public static final int GL_VENDOR = 0x1F00; 258 public static final int GL_VERSION = 0x1F02; 259 public static final int GL_VERTEX_ARRAY = 0x8074; 260 public static final int GL_XOR = 0x1506; 261 public static final int GL_ZERO = 0; 262 _nativeClassInit()263 native private static void _nativeClassInit(); 264 static { _nativeClassInit()265 _nativeClassInit(); 266 } 267 268 private static Buffer _colorPointer; 269 private static Buffer _normalPointer; 270 private static Buffer _texCoordPointer; 271 private static Buffer _vertexPointer; 272 273 // C function void glActiveTexture ( GLenum texture ) 274 glActiveTexture( int texture )275 public static native void glActiveTexture( 276 int texture 277 ); 278 279 // C function void glAlphaFunc ( GLenum func, GLclampf ref ) 280 glAlphaFunc( int func, float ref )281 public static native void glAlphaFunc( 282 int func, 283 float ref 284 ); 285 286 // C function void glAlphaFuncx ( GLenum func, GLclampx ref ) 287 glAlphaFuncx( int func, int ref )288 public static native void glAlphaFuncx( 289 int func, 290 int ref 291 ); 292 293 // C function void glBindTexture ( GLenum target, GLuint texture ) 294 glBindTexture( int target, int texture )295 public static native void glBindTexture( 296 int target, 297 int texture 298 ); 299 300 // C function void glBlendFunc ( GLenum sfactor, GLenum dfactor ) 301 glBlendFunc( int sfactor, int dfactor )302 public static native void glBlendFunc( 303 int sfactor, 304 int dfactor 305 ); 306 307 // C function void glClear ( GLbitfield mask ) 308 glClear( int mask )309 public static native void glClear( 310 int mask 311 ); 312 313 // C function void glClearColor ( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha ) 314 glClearColor( float red, float green, float blue, float alpha )315 public static native void glClearColor( 316 float red, 317 float green, 318 float blue, 319 float alpha 320 ); 321 322 // C function void glClearColorx ( GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha ) 323 glClearColorx( int red, int green, int blue, int alpha )324 public static native void glClearColorx( 325 int red, 326 int green, 327 int blue, 328 int alpha 329 ); 330 331 // C function void glClearDepthf ( GLclampf depth ) 332 glClearDepthf( float depth )333 public static native void glClearDepthf( 334 float depth 335 ); 336 337 // C function void glClearDepthx ( GLclampx depth ) 338 glClearDepthx( int depth )339 public static native void glClearDepthx( 340 int depth 341 ); 342 343 // C function void glClearStencil ( GLint s ) 344 glClearStencil( int s )345 public static native void glClearStencil( 346 int s 347 ); 348 349 // C function void glClientActiveTexture ( GLenum texture ) 350 glClientActiveTexture( int texture )351 public static native void glClientActiveTexture( 352 int texture 353 ); 354 355 // C function void glColor4f ( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha ) 356 glColor4f( float red, float green, float blue, float alpha )357 public static native void glColor4f( 358 float red, 359 float green, 360 float blue, 361 float alpha 362 ); 363 364 // C function void glColor4x ( GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha ) 365 glColor4x( int red, int green, int blue, int alpha )366 public static native void glColor4x( 367 int red, 368 int green, 369 int blue, 370 int alpha 371 ); 372 373 // C function void glColorMask ( GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha ) 374 glColorMask( boolean red, boolean green, boolean blue, boolean alpha )375 public static native void glColorMask( 376 boolean red, 377 boolean green, 378 boolean blue, 379 boolean alpha 380 ); 381 382 // C function void glColorPointer ( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer ) 383 glColorPointerBounds( int size, int type, int stride, java.nio.Buffer pointer, int remaining )384 private static native void glColorPointerBounds( 385 int size, 386 int type, 387 int stride, 388 java.nio.Buffer pointer, 389 int remaining 390 ); 391 glColorPointer( int size, int type, int stride, java.nio.Buffer pointer )392 public static void glColorPointer( 393 int size, 394 int type, 395 int stride, 396 java.nio.Buffer pointer 397 ) { 398 glColorPointerBounds( 399 size, 400 type, 401 stride, 402 pointer, 403 pointer.remaining() 404 ); 405 if ((size == 4) && 406 ((type == GL_FLOAT) || 407 (type == GL_UNSIGNED_BYTE) || 408 (type == GL_FIXED)) && 409 (stride >= 0)) { 410 _colorPointer = pointer; 411 } 412 } 413 414 // C function void glCompressedTexImage2D ( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data ) 415 glCompressedTexImage2D( int target, int level, int internalformat, int width, int height, int border, int imageSize, java.nio.Buffer data )416 public static native void glCompressedTexImage2D( 417 int target, 418 int level, 419 int internalformat, 420 int width, 421 int height, 422 int border, 423 int imageSize, 424 java.nio.Buffer data 425 ); 426 427 // C function void glCompressedTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data ) 428 glCompressedTexSubImage2D( int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, java.nio.Buffer data )429 public static native void glCompressedTexSubImage2D( 430 int target, 431 int level, 432 int xoffset, 433 int yoffset, 434 int width, 435 int height, 436 int format, 437 int imageSize, 438 java.nio.Buffer data 439 ); 440 441 // C function void glCopyTexImage2D ( GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border ) 442 glCopyTexImage2D( int target, int level, int internalformat, int x, int y, int width, int height, int border )443 public static native void glCopyTexImage2D( 444 int target, 445 int level, 446 int internalformat, 447 int x, 448 int y, 449 int width, 450 int height, 451 int border 452 ); 453 454 // C function void glCopyTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height ) 455 glCopyTexSubImage2D( int target, int level, int xoffset, int yoffset, int x, int y, int width, int height )456 public static native void glCopyTexSubImage2D( 457 int target, 458 int level, 459 int xoffset, 460 int yoffset, 461 int x, 462 int y, 463 int width, 464 int height 465 ); 466 467 // C function void glCullFace ( GLenum mode ) 468 glCullFace( int mode )469 public static native void glCullFace( 470 int mode 471 ); 472 473 // C function void glDeleteTextures ( GLsizei n, const GLuint *textures ) 474 glDeleteTextures( int n, int[] textures, int offset )475 public static native void glDeleteTextures( 476 int n, 477 int[] textures, 478 int offset 479 ); 480 481 // C function void glDeleteTextures ( GLsizei n, const GLuint *textures ) 482 glDeleteTextures( int n, java.nio.IntBuffer textures )483 public static native void glDeleteTextures( 484 int n, 485 java.nio.IntBuffer textures 486 ); 487 488 // C function void glDepthFunc ( GLenum func ) 489 glDepthFunc( int func )490 public static native void glDepthFunc( 491 int func 492 ); 493 494 // C function void glDepthMask ( GLboolean flag ) 495 glDepthMask( boolean flag )496 public static native void glDepthMask( 497 boolean flag 498 ); 499 500 // C function void glDepthRangef ( GLclampf zNear, GLclampf zFar ) 501 glDepthRangef( float zNear, float zFar )502 public static native void glDepthRangef( 503 float zNear, 504 float zFar 505 ); 506 507 // C function void glDepthRangex ( GLclampx zNear, GLclampx zFar ) 508 glDepthRangex( int zNear, int zFar )509 public static native void glDepthRangex( 510 int zNear, 511 int zFar 512 ); 513 514 // C function void glDisable ( GLenum cap ) 515 glDisable( int cap )516 public static native void glDisable( 517 int cap 518 ); 519 520 // C function void glDisableClientState ( GLenum array ) 521 glDisableClientState( int array )522 public static native void glDisableClientState( 523 int array 524 ); 525 526 // C function void glDrawArrays ( GLenum mode, GLint first, GLsizei count ) 527 glDrawArrays( int mode, int first, int count )528 public static native void glDrawArrays( 529 int mode, 530 int first, 531 int count 532 ); 533 534 // C function void glDrawElements ( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices ) 535 glDrawElements( int mode, int count, int type, java.nio.Buffer indices )536 public static native void glDrawElements( 537 int mode, 538 int count, 539 int type, 540 java.nio.Buffer indices 541 ); 542 543 // C function void glEnable ( GLenum cap ) 544 glEnable( int cap )545 public static native void glEnable( 546 int cap 547 ); 548 549 // C function void glEnableClientState ( GLenum array ) 550 glEnableClientState( int array )551 public static native void glEnableClientState( 552 int array 553 ); 554 555 // C function void glFinish ( void ) 556 glFinish( )557 public static native void glFinish( 558 ); 559 560 // C function void glFlush ( void ) 561 glFlush( )562 public static native void glFlush( 563 ); 564 565 // C function void glFogf ( GLenum pname, GLfloat param ) 566 glFogf( int pname, float param )567 public static native void glFogf( 568 int pname, 569 float param 570 ); 571 572 // C function void glFogfv ( GLenum pname, const GLfloat *params ) 573 glFogfv( int pname, float[] params, int offset )574 public static native void glFogfv( 575 int pname, 576 float[] params, 577 int offset 578 ); 579 580 // C function void glFogfv ( GLenum pname, const GLfloat *params ) 581 glFogfv( int pname, java.nio.FloatBuffer params )582 public static native void glFogfv( 583 int pname, 584 java.nio.FloatBuffer params 585 ); 586 587 // C function void glFogx ( GLenum pname, GLfixed param ) 588 glFogx( int pname, int param )589 public static native void glFogx( 590 int pname, 591 int param 592 ); 593 594 // C function void glFogxv ( GLenum pname, const GLfixed *params ) 595 glFogxv( int pname, int[] params, int offset )596 public static native void glFogxv( 597 int pname, 598 int[] params, 599 int offset 600 ); 601 602 // C function void glFogxv ( GLenum pname, const GLfixed *params ) 603 glFogxv( int pname, java.nio.IntBuffer params )604 public static native void glFogxv( 605 int pname, 606 java.nio.IntBuffer params 607 ); 608 609 // C function void glFrontFace ( GLenum mode ) 610 glFrontFace( int mode )611 public static native void glFrontFace( 612 int mode 613 ); 614 615 // C function void glFrustumf ( GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar ) 616 glFrustumf( float left, float right, float bottom, float top, float zNear, float zFar )617 public static native void glFrustumf( 618 float left, 619 float right, 620 float bottom, 621 float top, 622 float zNear, 623 float zFar 624 ); 625 626 // C function void glFrustumx ( GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar ) 627 glFrustumx( int left, int right, int bottom, int top, int zNear, int zFar )628 public static native void glFrustumx( 629 int left, 630 int right, 631 int bottom, 632 int top, 633 int zNear, 634 int zFar 635 ); 636 637 // C function void glGenTextures ( GLsizei n, GLuint *textures ) 638 glGenTextures( int n, int[] textures, int offset )639 public static native void glGenTextures( 640 int n, 641 int[] textures, 642 int offset 643 ); 644 645 // C function void glGenTextures ( GLsizei n, GLuint *textures ) 646 glGenTextures( int n, java.nio.IntBuffer textures )647 public static native void glGenTextures( 648 int n, 649 java.nio.IntBuffer textures 650 ); 651 652 // C function GLenum glGetError ( void ) 653 glGetError( )654 public static native int glGetError( 655 ); 656 657 // C function void glGetIntegerv ( GLenum pname, GLint *params ) 658 glGetIntegerv( int pname, int[] params, int offset )659 public static native void glGetIntegerv( 660 int pname, 661 int[] params, 662 int offset 663 ); 664 665 // C function void glGetIntegerv ( GLenum pname, GLint *params ) 666 glGetIntegerv( int pname, java.nio.IntBuffer params )667 public static native void glGetIntegerv( 668 int pname, 669 java.nio.IntBuffer params 670 ); 671 672 /* 673 * Copyright (C) 2009 The Android Open Source Project 674 * 675 * Licensed under the Apache License, Version 2.0 (the "License"); 676 * you may not use this file except in compliance with the License. 677 * You may obtain a copy of the License at 678 * 679 * http://www.apache.org/licenses/LICENSE-2.0 680 * 681 * Unless required by applicable law or agreed to in writing, software 682 * distributed under the License is distributed on an "AS IS" BASIS, 683 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 684 * See the License for the specific language governing permissions and 685 * limitations under the License. 686 */ 687 688 // C function const GLubyte * glGetString ( GLenum name ) 689 glGetString( int name )690 public static native String glGetString( 691 int name 692 ); 693 // C function void glHint ( GLenum target, GLenum mode ) 694 glHint( int target, int mode )695 public static native void glHint( 696 int target, 697 int mode 698 ); 699 700 // C function void glLightModelf ( GLenum pname, GLfloat param ) 701 glLightModelf( int pname, float param )702 public static native void glLightModelf( 703 int pname, 704 float param 705 ); 706 707 // C function void glLightModelfv ( GLenum pname, const GLfloat *params ) 708 glLightModelfv( int pname, float[] params, int offset )709 public static native void glLightModelfv( 710 int pname, 711 float[] params, 712 int offset 713 ); 714 715 // C function void glLightModelfv ( GLenum pname, const GLfloat *params ) 716 glLightModelfv( int pname, java.nio.FloatBuffer params )717 public static native void glLightModelfv( 718 int pname, 719 java.nio.FloatBuffer params 720 ); 721 722 // C function void glLightModelx ( GLenum pname, GLfixed param ) 723 glLightModelx( int pname, int param )724 public static native void glLightModelx( 725 int pname, 726 int param 727 ); 728 729 // C function void glLightModelxv ( GLenum pname, const GLfixed *params ) 730 glLightModelxv( int pname, int[] params, int offset )731 public static native void glLightModelxv( 732 int pname, 733 int[] params, 734 int offset 735 ); 736 737 // C function void glLightModelxv ( GLenum pname, const GLfixed *params ) 738 glLightModelxv( int pname, java.nio.IntBuffer params )739 public static native void glLightModelxv( 740 int pname, 741 java.nio.IntBuffer params 742 ); 743 744 // C function void glLightf ( GLenum light, GLenum pname, GLfloat param ) 745 glLightf( int light, int pname, float param )746 public static native void glLightf( 747 int light, 748 int pname, 749 float param 750 ); 751 752 // C function void glLightfv ( GLenum light, GLenum pname, const GLfloat *params ) 753 glLightfv( int light, int pname, float[] params, int offset )754 public static native void glLightfv( 755 int light, 756 int pname, 757 float[] params, 758 int offset 759 ); 760 761 // C function void glLightfv ( GLenum light, GLenum pname, const GLfloat *params ) 762 glLightfv( int light, int pname, java.nio.FloatBuffer params )763 public static native void glLightfv( 764 int light, 765 int pname, 766 java.nio.FloatBuffer params 767 ); 768 769 // C function void glLightx ( GLenum light, GLenum pname, GLfixed param ) 770 glLightx( int light, int pname, int param )771 public static native void glLightx( 772 int light, 773 int pname, 774 int param 775 ); 776 777 // C function void glLightxv ( GLenum light, GLenum pname, const GLfixed *params ) 778 glLightxv( int light, int pname, int[] params, int offset )779 public static native void glLightxv( 780 int light, 781 int pname, 782 int[] params, 783 int offset 784 ); 785 786 // C function void glLightxv ( GLenum light, GLenum pname, const GLfixed *params ) 787 glLightxv( int light, int pname, java.nio.IntBuffer params )788 public static native void glLightxv( 789 int light, 790 int pname, 791 java.nio.IntBuffer params 792 ); 793 794 // C function void glLineWidth ( GLfloat width ) 795 glLineWidth( float width )796 public static native void glLineWidth( 797 float width 798 ); 799 800 // C function void glLineWidthx ( GLfixed width ) 801 glLineWidthx( int width )802 public static native void glLineWidthx( 803 int width 804 ); 805 806 // C function void glLoadIdentity ( void ) 807 glLoadIdentity( )808 public static native void glLoadIdentity( 809 ); 810 811 // C function void glLoadMatrixf ( const GLfloat *m ) 812 glLoadMatrixf( float[] m, int offset )813 public static native void glLoadMatrixf( 814 float[] m, 815 int offset 816 ); 817 818 // C function void glLoadMatrixf ( const GLfloat *m ) 819 glLoadMatrixf( java.nio.FloatBuffer m )820 public static native void glLoadMatrixf( 821 java.nio.FloatBuffer m 822 ); 823 824 // C function void glLoadMatrixx ( const GLfixed *m ) 825 glLoadMatrixx( int[] m, int offset )826 public static native void glLoadMatrixx( 827 int[] m, 828 int offset 829 ); 830 831 // C function void glLoadMatrixx ( const GLfixed *m ) 832 glLoadMatrixx( java.nio.IntBuffer m )833 public static native void glLoadMatrixx( 834 java.nio.IntBuffer m 835 ); 836 837 // C function void glLogicOp ( GLenum opcode ) 838 glLogicOp( int opcode )839 public static native void glLogicOp( 840 int opcode 841 ); 842 843 // C function void glMaterialf ( GLenum face, GLenum pname, GLfloat param ) 844 glMaterialf( int face, int pname, float param )845 public static native void glMaterialf( 846 int face, 847 int pname, 848 float param 849 ); 850 851 // C function void glMaterialfv ( GLenum face, GLenum pname, const GLfloat *params ) 852 glMaterialfv( int face, int pname, float[] params, int offset )853 public static native void glMaterialfv( 854 int face, 855 int pname, 856 float[] params, 857 int offset 858 ); 859 860 // C function void glMaterialfv ( GLenum face, GLenum pname, const GLfloat *params ) 861 glMaterialfv( int face, int pname, java.nio.FloatBuffer params )862 public static native void glMaterialfv( 863 int face, 864 int pname, 865 java.nio.FloatBuffer params 866 ); 867 868 // C function void glMaterialx ( GLenum face, GLenum pname, GLfixed param ) 869 glMaterialx( int face, int pname, int param )870 public static native void glMaterialx( 871 int face, 872 int pname, 873 int param 874 ); 875 876 // C function void glMaterialxv ( GLenum face, GLenum pname, const GLfixed *params ) 877 glMaterialxv( int face, int pname, int[] params, int offset )878 public static native void glMaterialxv( 879 int face, 880 int pname, 881 int[] params, 882 int offset 883 ); 884 885 // C function void glMaterialxv ( GLenum face, GLenum pname, const GLfixed *params ) 886 glMaterialxv( int face, int pname, java.nio.IntBuffer params )887 public static native void glMaterialxv( 888 int face, 889 int pname, 890 java.nio.IntBuffer params 891 ); 892 893 // C function void glMatrixMode ( GLenum mode ) 894 glMatrixMode( int mode )895 public static native void glMatrixMode( 896 int mode 897 ); 898 899 // C function void glMultMatrixf ( const GLfloat *m ) 900 glMultMatrixf( float[] m, int offset )901 public static native void glMultMatrixf( 902 float[] m, 903 int offset 904 ); 905 906 // C function void glMultMatrixf ( const GLfloat *m ) 907 glMultMatrixf( java.nio.FloatBuffer m )908 public static native void glMultMatrixf( 909 java.nio.FloatBuffer m 910 ); 911 912 // C function void glMultMatrixx ( const GLfixed *m ) 913 glMultMatrixx( int[] m, int offset )914 public static native void glMultMatrixx( 915 int[] m, 916 int offset 917 ); 918 919 // C function void glMultMatrixx ( const GLfixed *m ) 920 glMultMatrixx( java.nio.IntBuffer m )921 public static native void glMultMatrixx( 922 java.nio.IntBuffer m 923 ); 924 925 // C function void glMultiTexCoord4f ( GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q ) 926 glMultiTexCoord4f( int target, float s, float t, float r, float q )927 public static native void glMultiTexCoord4f( 928 int target, 929 float s, 930 float t, 931 float r, 932 float q 933 ); 934 935 // C function void glMultiTexCoord4x ( GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q ) 936 glMultiTexCoord4x( int target, int s, int t, int r, int q )937 public static native void glMultiTexCoord4x( 938 int target, 939 int s, 940 int t, 941 int r, 942 int q 943 ); 944 945 // C function void glNormal3f ( GLfloat nx, GLfloat ny, GLfloat nz ) 946 glNormal3f( float nx, float ny, float nz )947 public static native void glNormal3f( 948 float nx, 949 float ny, 950 float nz 951 ); 952 953 // C function void glNormal3x ( GLfixed nx, GLfixed ny, GLfixed nz ) 954 glNormal3x( int nx, int ny, int nz )955 public static native void glNormal3x( 956 int nx, 957 int ny, 958 int nz 959 ); 960 961 // C function void glNormalPointer ( GLenum type, GLsizei stride, const GLvoid *pointer ) 962 glNormalPointerBounds( int type, int stride, java.nio.Buffer pointer, int remaining )963 private static native void glNormalPointerBounds( 964 int type, 965 int stride, 966 java.nio.Buffer pointer, 967 int remaining 968 ); 969 glNormalPointer( int type, int stride, java.nio.Buffer pointer )970 public static void glNormalPointer( 971 int type, 972 int stride, 973 java.nio.Buffer pointer 974 ) { 975 glNormalPointerBounds( 976 type, 977 stride, 978 pointer, 979 pointer.remaining() 980 ); 981 if (((type == GL_FLOAT) || 982 (type == GL_BYTE) || 983 (type == GL_SHORT) || 984 (type == GL_FIXED)) && 985 (stride >= 0)) { 986 _normalPointer = pointer; 987 } 988 } 989 990 // C function void glOrthof ( GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar ) 991 glOrthof( float left, float right, float bottom, float top, float zNear, float zFar )992 public static native void glOrthof( 993 float left, 994 float right, 995 float bottom, 996 float top, 997 float zNear, 998 float zFar 999 ); 1000 1001 // C function void glOrthox ( GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar ) 1002 glOrthox( int left, int right, int bottom, int top, int zNear, int zFar )1003 public static native void glOrthox( 1004 int left, 1005 int right, 1006 int bottom, 1007 int top, 1008 int zNear, 1009 int zFar 1010 ); 1011 1012 // C function void glPixelStorei ( GLenum pname, GLint param ) 1013 glPixelStorei( int pname, int param )1014 public static native void glPixelStorei( 1015 int pname, 1016 int param 1017 ); 1018 1019 // C function void glPointSize ( GLfloat size ) 1020 glPointSize( float size )1021 public static native void glPointSize( 1022 float size 1023 ); 1024 1025 // C function void glPointSizex ( GLfixed size ) 1026 glPointSizex( int size )1027 public static native void glPointSizex( 1028 int size 1029 ); 1030 1031 // C function void glPolygonOffset ( GLfloat factor, GLfloat units ) 1032 glPolygonOffset( float factor, float units )1033 public static native void glPolygonOffset( 1034 float factor, 1035 float units 1036 ); 1037 1038 // C function void glPolygonOffsetx ( GLfixed factor, GLfixed units ) 1039 glPolygonOffsetx( int factor, int units )1040 public static native void glPolygonOffsetx( 1041 int factor, 1042 int units 1043 ); 1044 1045 // C function void glPopMatrix ( void ) 1046 glPopMatrix( )1047 public static native void glPopMatrix( 1048 ); 1049 1050 // C function void glPushMatrix ( void ) 1051 glPushMatrix( )1052 public static native void glPushMatrix( 1053 ); 1054 1055 // C function void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) 1056 glReadPixels( int x, int y, int width, int height, int format, int type, java.nio.Buffer pixels )1057 public static native void glReadPixels( 1058 int x, 1059 int y, 1060 int width, 1061 int height, 1062 int format, 1063 int type, 1064 java.nio.Buffer pixels 1065 ); 1066 1067 // C function void glRotatef ( GLfloat angle, GLfloat x, GLfloat y, GLfloat z ) 1068 glRotatef( float angle, float x, float y, float z )1069 public static native void glRotatef( 1070 float angle, 1071 float x, 1072 float y, 1073 float z 1074 ); 1075 1076 // C function void glRotatex ( GLfixed angle, GLfixed x, GLfixed y, GLfixed z ) 1077 glRotatex( int angle, int x, int y, int z )1078 public static native void glRotatex( 1079 int angle, 1080 int x, 1081 int y, 1082 int z 1083 ); 1084 1085 // C function void glSampleCoverage ( GLclampf value, GLboolean invert ) 1086 glSampleCoverage( float value, boolean invert )1087 public static native void glSampleCoverage( 1088 float value, 1089 boolean invert 1090 ); 1091 1092 // C function void glSampleCoveragex ( GLclampx value, GLboolean invert ) 1093 glSampleCoveragex( int value, boolean invert )1094 public static native void glSampleCoveragex( 1095 int value, 1096 boolean invert 1097 ); 1098 1099 // C function void glScalef ( GLfloat x, GLfloat y, GLfloat z ) 1100 glScalef( float x, float y, float z )1101 public static native void glScalef( 1102 float x, 1103 float y, 1104 float z 1105 ); 1106 1107 // C function void glScalex ( GLfixed x, GLfixed y, GLfixed z ) 1108 glScalex( int x, int y, int z )1109 public static native void glScalex( 1110 int x, 1111 int y, 1112 int z 1113 ); 1114 1115 // C function void glScissor ( GLint x, GLint y, GLsizei width, GLsizei height ) 1116 glScissor( int x, int y, int width, int height )1117 public static native void glScissor( 1118 int x, 1119 int y, 1120 int width, 1121 int height 1122 ); 1123 1124 // C function void glShadeModel ( GLenum mode ) 1125 glShadeModel( int mode )1126 public static native void glShadeModel( 1127 int mode 1128 ); 1129 1130 // C function void glStencilFunc ( GLenum func, GLint ref, GLuint mask ) 1131 glStencilFunc( int func, int ref, int mask )1132 public static native void glStencilFunc( 1133 int func, 1134 int ref, 1135 int mask 1136 ); 1137 1138 // C function void glStencilMask ( GLuint mask ) 1139 glStencilMask( int mask )1140 public static native void glStencilMask( 1141 int mask 1142 ); 1143 1144 // C function void glStencilOp ( GLenum fail, GLenum zfail, GLenum zpass ) 1145 glStencilOp( int fail, int zfail, int zpass )1146 public static native void glStencilOp( 1147 int fail, 1148 int zfail, 1149 int zpass 1150 ); 1151 1152 // C function void glTexCoordPointer ( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer ) 1153 glTexCoordPointerBounds( int size, int type, int stride, java.nio.Buffer pointer, int remaining )1154 private static native void glTexCoordPointerBounds( 1155 int size, 1156 int type, 1157 int stride, 1158 java.nio.Buffer pointer, 1159 int remaining 1160 ); 1161 glTexCoordPointer( int size, int type, int stride, java.nio.Buffer pointer )1162 public static void glTexCoordPointer( 1163 int size, 1164 int type, 1165 int stride, 1166 java.nio.Buffer pointer 1167 ) { 1168 glTexCoordPointerBounds( 1169 size, 1170 type, 1171 stride, 1172 pointer, 1173 pointer.remaining() 1174 ); 1175 if (((size == 2) || 1176 (size == 3) || 1177 (size == 4)) && 1178 ((type == GL_FLOAT) || 1179 (type == GL_BYTE) || 1180 (type == GL_SHORT) || 1181 (type == GL_FIXED)) && 1182 (stride >= 0)) { 1183 _texCoordPointer = pointer; 1184 } 1185 } 1186 1187 // C function void glTexEnvf ( GLenum target, GLenum pname, GLfloat param ) 1188 glTexEnvf( int target, int pname, float param )1189 public static native void glTexEnvf( 1190 int target, 1191 int pname, 1192 float param 1193 ); 1194 1195 // C function void glTexEnvfv ( GLenum target, GLenum pname, const GLfloat *params ) 1196 glTexEnvfv( int target, int pname, float[] params, int offset )1197 public static native void glTexEnvfv( 1198 int target, 1199 int pname, 1200 float[] params, 1201 int offset 1202 ); 1203 1204 // C function void glTexEnvfv ( GLenum target, GLenum pname, const GLfloat *params ) 1205 glTexEnvfv( int target, int pname, java.nio.FloatBuffer params )1206 public static native void glTexEnvfv( 1207 int target, 1208 int pname, 1209 java.nio.FloatBuffer params 1210 ); 1211 1212 // C function void glTexEnvx ( GLenum target, GLenum pname, GLfixed param ) 1213 glTexEnvx( int target, int pname, int param )1214 public static native void glTexEnvx( 1215 int target, 1216 int pname, 1217 int param 1218 ); 1219 1220 // C function void glTexEnvxv ( GLenum target, GLenum pname, const GLfixed *params ) 1221 glTexEnvxv( int target, int pname, int[] params, int offset )1222 public static native void glTexEnvxv( 1223 int target, 1224 int pname, 1225 int[] params, 1226 int offset 1227 ); 1228 1229 // C function void glTexEnvxv ( GLenum target, GLenum pname, const GLfixed *params ) 1230 glTexEnvxv( int target, int pname, java.nio.IntBuffer params )1231 public static native void glTexEnvxv( 1232 int target, 1233 int pname, 1234 java.nio.IntBuffer params 1235 ); 1236 1237 // C function void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) 1238 glTexImage2D( int target, int level, int internalformat, int width, int height, int border, int format, int type, java.nio.Buffer pixels )1239 public static native void glTexImage2D( 1240 int target, 1241 int level, 1242 int internalformat, 1243 int width, 1244 int height, 1245 int border, 1246 int format, 1247 int type, 1248 java.nio.Buffer pixels 1249 ); 1250 1251 // C function void glTexParameterf ( GLenum target, GLenum pname, GLfloat param ) 1252 glTexParameterf( int target, int pname, float param )1253 public static native void glTexParameterf( 1254 int target, 1255 int pname, 1256 float param 1257 ); 1258 1259 // C function void glTexParameterx ( GLenum target, GLenum pname, GLfixed param ) 1260 glTexParameterx( int target, int pname, int param )1261 public static native void glTexParameterx( 1262 int target, 1263 int pname, 1264 int param 1265 ); 1266 1267 // C function void glTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels ) 1268 glTexSubImage2D( int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, java.nio.Buffer pixels )1269 public static native void glTexSubImage2D( 1270 int target, 1271 int level, 1272 int xoffset, 1273 int yoffset, 1274 int width, 1275 int height, 1276 int format, 1277 int type, 1278 java.nio.Buffer pixels 1279 ); 1280 1281 // C function void glTranslatef ( GLfloat x, GLfloat y, GLfloat z ) 1282 glTranslatef( float x, float y, float z )1283 public static native void glTranslatef( 1284 float x, 1285 float y, 1286 float z 1287 ); 1288 1289 // C function void glTranslatex ( GLfixed x, GLfixed y, GLfixed z ) 1290 glTranslatex( int x, int y, int z )1291 public static native void glTranslatex( 1292 int x, 1293 int y, 1294 int z 1295 ); 1296 1297 // C function void glVertexPointer ( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer ) 1298 glVertexPointerBounds( int size, int type, int stride, java.nio.Buffer pointer, int remaining )1299 private static native void glVertexPointerBounds( 1300 int size, 1301 int type, 1302 int stride, 1303 java.nio.Buffer pointer, 1304 int remaining 1305 ); 1306 glVertexPointer( int size, int type, int stride, java.nio.Buffer pointer )1307 public static void glVertexPointer( 1308 int size, 1309 int type, 1310 int stride, 1311 java.nio.Buffer pointer 1312 ) { 1313 glVertexPointerBounds( 1314 size, 1315 type, 1316 stride, 1317 pointer, 1318 pointer.remaining() 1319 ); 1320 if (((size == 2) || 1321 (size == 3) || 1322 (size == 4)) && 1323 ((type == GL_FLOAT) || 1324 (type == GL_BYTE) || 1325 (type == GL_SHORT) || 1326 (type == GL_FIXED)) && 1327 (stride >= 0)) { 1328 _vertexPointer = pointer; 1329 } 1330 } 1331 1332 // C function void glViewport ( GLint x, GLint y, GLsizei width, GLsizei height ) 1333 glViewport( int x, int y, int width, int height )1334 public static native void glViewport( 1335 int x, 1336 int y, 1337 int width, 1338 int height 1339 ); 1340 1341 } 1342