Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2007 Sun Microsystems, Inc. All rights reserved.

The Java™ Binding for the OpenGL® ES API

Uses of Class
java.nio.Buffer

Packages that use Buffer
java.nio Defines buffers, which are containers for data, and provides an overview of the other NIO packages. 
javax.microedition.khronos.opengles A package containing the Khronos OpenGL(R) ES interfaces. 
 

Uses of Buffer in java.nio
 

Subclasses of Buffer in java.nio
 class ByteBuffer
          A byte buffer.
 class FloatBuffer
          A float buffer.
 class IntBuffer
          An int buffer.
 class ShortBuffer
          A short buffer.
 

Methods in java.nio that return Buffer
 Buffer Buffer.position(int newPosition)
          Sets this buffer's position.
 Buffer Buffer.limit(int newLimit)
          Sets this buffer's limit.
 Buffer Buffer.clear()
          Clears this buffer.
 Buffer Buffer.flip()
          Flips this buffer.
 Buffer Buffer.rewind()
          Rewinds this buffer.
 

Uses of Buffer in javax.microedition.khronos.opengles
 

Methods in javax.microedition.khronos.opengles with parameters of type Buffer
 void GL10.glColorPointer(int size, int type, int stride, Buffer pointer)
          Define an array of colors.
 void GL10.glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data)
          Specify a two-dimensional compressed texture image.
 void GL10.glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, Buffer data)
          Specify a two-dimensional compressed texture subimage.
 void GL10.glDrawElements(int mode, int count, int type, Buffer indices)
          Render primitives from array data.
 void GL10.glNormalPointer(int type, int stride, Buffer pointer)
          Define an array of normals.
 void GL10.glReadPixels(int x, int y, int width, int height, int format, int type, Buffer pixels)
          Read a block of pixels from the color buffer.
 void GL10.glTexCoordPointer(int size, int type, int stride, Buffer pointer)
          Define an array of texture coordinates.
 void GL10.glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels)
          Specify a two-dimensional texture image.
 void GL10.glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels)
          Specify a two-dimensional texture subimage.
 void GL10.glVertexPointer(int size, int type, int stride, Buffer pointer)
          Define an array of vertex coordinates.
 void GL11.glBufferData(int target, int size, Buffer data, int usage)
          Creates and initializes the data store of a buffer object.
 void GL11.glBufferSubData(int target, int offset, int size, Buffer data)
          Modifies some or all of the data contained in a buffer object's data store.
 void GL11.glGetPointerv(int pname, Buffer[] params)
          Return the Buffer associated with the specified pointer.
 void GL11.glPointSizePointerOES(int type, int stride, Buffer pointer)
          (OES_point_size_array extension) Define an array of point sizes.
 void GL11Ext.glMatrixIndexPointerOES(int size, int type, int stride, Buffer pointer)
          (OES_matrix_palette extension) Define an array of matrix indices.
 void GL11Ext.glWeightPointerOES(int size, int type, int stride, Buffer pointer)
          (OES_matrix_palette extension) Define an array of weights.
 void GL11ExtensionPack.glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data)
          (1.1 + OES_texture_cube_map extension) Specify a two-dimensional compressed texture image.
 


Final Release, Oct 2006

This specification is protected under the JSPA version 2.6.
Copyright © 2006 Sun Microsystems, Inc. 4150 Network Circle, California, 95054, U.S.A.
All Rights Reserved. Use is subject to license terms.
Copyright © 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 239 specification.