FileDocCategorySizeDatePackage
GL11.javaAPI DocphoneME MR2 API (J2ME)81207Wed May 02 18:00:48 BST 2007javax.microedition.khronos.opengles

GL11

public interface GL11 implements GL10
The GL11 interface contains the Java(TM) programming language bindings for OpenGL(R) ES 1.1 core functionality.

The OES_matrix_get, OES_point_sprite and OES_point_size_array core extensions are defined as part of this interface.

Methods that are also present in OpenGL ES 1.0 are included in this interface by inheritance, but are not separately documented. Instead, the documentation from the GL10 interface specifies the functional differences between 1.0 and 1.1.

See the GL interface for a description of how to obtain an instance of this interface.

Fields Summary
int
GL_CLIP_PLANE0
OpenGL ES 1.1 constant.
int
GL_CLIP_PLANE1
OpenGL ES 1.1 constant.
int
GL_CLIP_PLANE2
OpenGL ES 1.1 constant.
int
GL_CLIP_PLANE3
OpenGL ES 1.1 constant.
int
GL_CLIP_PLANE4
OpenGL ES 1.1 constant.
int
GL_CLIP_PLANE5
OpenGL ES 1.1 constant.
int
GL_CURRENT_COLOR
OpenGL ES 1.1 constant.
int
GL_CURRENT_NORMAL
OpenGL ES 1.1 constant.
int
GL_CURRENT_TEXTURE_COORDS
OpenGL ES 1.1 constant.
int
GL_POINT_SIZE
OpenGL ES 1.1 constant.
int
GL_POINT_SIZE_MIN
OpenGL ES 1.1 constant.
int
GL_POINT_SIZE_MAX
OpenGL ES 1.1 constant.
int
GL_POINT_FADE_THRESHOLD_SIZE
OpenGL ES 1.1 constant.
int
GL_POINT_DISTANCE_ATTENUATION
OpenGL ES 1.1 constant.
int
GL_LINE_WIDTH
OpenGL ES 1.1 constant.
int
GL_CULL_FACE_MODE
OpenGL ES 1.1 constant.
int
GL_FRONT_FACE
OpenGL ES 1.1 constant.
int
GL_SHADE_MODEL
OpenGL ES 1.1 constant.
int
GL_DEPTH_RANGE
OpenGL ES 1.1 constant.
int
GL_DEPTH_WRITEMASK
OpenGL ES 1.1 constant.
int
GL_DEPTH_CLEAR_VALUE
OpenGL ES 1.1 constant.
int
GL_DEPTH_FUNC
OpenGL ES 1.1 constant.
int
GL_STENCIL_CLEAR_VALUE
OpenGL ES 1.1 constant.
int
GL_STENCIL_FUNC
OpenGL ES 1.1 constant.
int
GL_STENCIL_VALUE_MASK
OpenGL ES 1.1 constant.
int
GL_STENCIL_FAIL
OpenGL ES 1.1 constant.
int
GL_STENCIL_PASS_DEPTH_FAIL
OpenGL ES 1.1 constant.
int
GL_STENCIL_PASS_DEPTH_PASS
OpenGL ES 1.1 constant.
int
GL_STENCIL_REF
OpenGL ES 1.1 constant.
int
GL_STENCIL_WRITEMASK
OpenGL ES 1.1 constant.
int
GL_MATRIX_MODE
OpenGL ES 1.1 constant.
int
GL_VIEWPORT
OpenGL ES 1.1 constant.
int
GL_MODELVIEW_STACK_DEPTH
OpenGL ES 1.1 constant.
int
GL_PROJECTION_STACK_DEPTH
OpenGL ES 1.1 constant.
int
GL_TEXTURE_STACK_DEPTH
OpenGL ES 1.1 constant.
int
GL_MODELVIEW_MATRIX
OpenGL ES 1.1 constant.
int
GL_PROJECTION_MATRIX
OpenGL ES 1.1 constant.
int
GL_TEXTURE_MATRIX
OpenGL ES 1.1 constant.
int
GL_ALPHA_TEST_FUNC
OpenGL ES 1.1 constant.
int
GL_ALPHA_TEST_REF
OpenGL ES 1.1 constant.
int
GL_BLEND_DST
OpenGL ES 1.1 constant.
int
GL_BLEND_SRC
OpenGL ES 1.1 constant.
int
GL_LOGIC_OP_MODE
OpenGL ES 1.1 constant.
int
GL_SCISSOR_BOX
OpenGL ES 1.1 constant.
int
GL_COLOR_CLEAR_VALUE
OpenGL ES 1.1 constant.
int
GL_COLOR_WRITEMASK
OpenGL ES 1.1 constant.
int
GL_MAX_CLIP_PLANES
OpenGL ES 1.1 constant.
int
GL_POLYGON_OFFSET_UNITS
OpenGL ES 1.1 constant.
int
GL_POLYGON_OFFSET_FACTOR
OpenGL ES 1.1 constant.
int
GL_TEXTURE_BINDING_2D
OpenGL ES 1.1 constant.
int
GL_VERTEX_ARRAY_SIZE
OpenGL ES 1.1 constant.
int
GL_VERTEX_ARRAY_TYPE
OpenGL ES 1.1 constant.
int
GL_VERTEX_ARRAY_STRIDE
OpenGL ES 1.1 constant.
int
GL_NORMAL_ARRAY_TYPE
OpenGL ES 1.1 constant.
int
GL_NORMAL_ARRAY_STRIDE
OpenGL ES 1.1 constant.
int
GL_COLOR_ARRAY_SIZE
OpenGL ES 1.1 constant.
int
GL_COLOR_ARRAY_TYPE
OpenGL ES 1.1 constant.
int
GL_COLOR_ARRAY_STRIDE
OpenGL ES 1.1 constant.
int
GL_TEXTURE_COORD_ARRAY_SIZE
OpenGL ES 1.1 constant.
int
GL_TEXTURE_COORD_ARRAY_TYPE
OpenGL ES 1.1 constant.
int
GL_TEXTURE_COORD_ARRAY_STRIDE
OpenGL ES 1.1 constant.
int
GL_VERTEX_ARRAY_POINTER
OpenGL ES 1.1 constant.
int
GL_NORMAL_ARRAY_POINTER
OpenGL ES 1.1 constant.
int
GL_COLOR_ARRAY_POINTER
OpenGL ES 1.1 constant.
int
GL_TEXTURE_COORD_ARRAY_POINTER
OpenGL ES 1.1 constant.
int
GL_SAMPLE_BUFFERS
OpenGL ES 1.1 constant.
int
GL_SAMPLES
OpenGL ES 1.1 constant.
int
GL_SAMPLE_COVERAGE_VALUE
OpenGL ES 1.1 constant.
int
GL_SAMPLE_COVERAGE_INVERT
OpenGL ES 1.1 constant.
int
GL_GENERATE_MIPMAP_HINT
OpenGL ES 1.1 constant.
int
GL_GENERATE_MIPMAP
OpenGL ES 1.1 constant.
int
GL_ACTIVE_TEXTURE
OpenGL ES 1.1 constant.
int
GL_CLIENT_ACTIVE_TEXTURE
OpenGL ES 1.1 constant.
int
GL_ARRAY_BUFFER
OpenGL ES 1.1 constant.
int
GL_ELEMENT_ARRAY_BUFFER
OpenGL ES 1.1 constant.
int
GL_ARRAY_BUFFER_BINDING
OpenGL ES 1.1 constant.
int
GL_ELEMENT_ARRAY_BUFFER_BINDING
OpenGL ES 1.1 constant.
int
GL_VERTEX_ARRAY_BUFFER_BINDING
OpenGL ES 1.1 constant.
int
GL_NORMAL_ARRAY_BUFFER_BINDING
OpenGL ES 1.1 constant.
int
GL_COLOR_ARRAY_BUFFER_BINDING
OpenGL ES 1.1 constant.
int
GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING
OpenGL ES 1.1 constant.
int
GL_STATIC_DRAW
OpenGL ES 1.1 constant.
int
GL_DYNAMIC_DRAW
OpenGL ES 1.1 constant.
int
GL_WRITE_ONLY
OpenGL ES 1.1 constant.
int
GL_BUFFER_SIZE
OpenGL ES 1.1 constant.
int
GL_BUFFER_USAGE
OpenGL ES 1.1 constant.
int
GL_BUFFER_ACCESS
OpenGL ES 1.1 constant.
int
GL_SUBTRACT
OpenGL ES 1.1 constant.
int
GL_COMBINE
OpenGL ES 1.1 constant.
int
GL_COMBINE_RGB
OpenGL ES 1.1 constant.
int
GL_COMBINE_ALPHA
OpenGL ES 1.1 constant.
int
GL_RGB_SCALE
OpenGL ES 1.1 constant.
int
GL_ADD_SIGNED
OpenGL ES 1.1 constant.
int
GL_INTERPOLATE
OpenGL ES 1.1 constant.
int
GL_CONSTANT
OpenGL ES 1.1 constant.
int
GL_PRIMARY_COLOR
OpenGL ES 1.1 constant.
int
GL_PREVIOUS
OpenGL ES 1.1 constant.
int
GL_OPERAND0_RGB
OpenGL ES 1.1 constant.
int
GL_OPERAND1_RGB
OpenGL ES 1.1 constant.
int
GL_OPERAND2_RGB
OpenGL ES 1.1 constant.
int
GL_OPERAND0_ALPHA
OpenGL ES 1.1 constant.
int
GL_OPERAND1_ALPHA
OpenGL ES 1.1 constant.
int
GL_OPERAND2_ALPHA
OpenGL ES 1.1 constant.
int
GL_ALPHA_SCALE
OpenGL ES 1.1 constant.
int
GL_SRC0_RGB
OpenGL ES 1.1 constant.
int
GL_SRC1_RGB
OpenGL ES 1.1 constant.
int
GL_SRC2_RGB
OpenGL ES 1.1 constant.
int
GL_SRC0_ALPHA
OpenGL ES 1.1 constant.
int
GL_SRC1_ALPHA
OpenGL ES 1.1 constant.
int
GL_SRC2_ALPHA
OpenGL ES 1.1 constant.
int
GL_DOT3_RGB
OpenGL ES 1.1 constant.
int
GL_DOT3_RGBA
OpenGL ES 1.1 constant.
int
GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES
Constant for use with glGet (OES_matrix_get extension).
int
GL_PROJECTION_MATRIX_FLOAT_AS_INT_BITS_OES
Constant for use with glGet (OES_matrix_get extension).
int
GL_TEXTURE_MATRIX_FLOAT_AS_INT_BITS_OES
Constant for use with glGet (OES_matrix_get extension).
int
GL_POINT_SPRITE_OES
Constant for use with glTexEnv and glEnable (OES_point_sprite extension).
int
GL_COORD_REPLACE_OES
Constant for use with glTexEnv (OES_point_sprite extension).
int
GL_POINT_SIZE_ARRAY_OES
Constant for use with glEnableClientState and glDisableClientState (OES_point_size_array extension).
int
GL_POINT_SIZE_ARRAY_TYPE_OES
Constant for use with glGet (OES_point_size_array extension).
int
GL_POINT_SIZE_ARRAY_STRIDE_OES
Constant for use with glGet (OES_point_size_array extension).
int
GL_POINT_SIZE_ARRAY_POINTER_OES
Constant for use with glGetPointer (OES_point_size_array extension).
int
GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES
Constant for use with glGet (OES_point_size_array extension).
Constructors Summary
Methods Summary
public voidglBindBuffer(int target, int buffer)
Bind a named buffer to a target.

glBindBuffer lets you create or use a named buffer. Calling glBindBuffer with target set to GL_ARRAY_BUFFER or GL_ELEMENT_ARRAY_BUFFER and buffer set to the buffer name, binds the buffer name to the target.

Buffer names are unsigned integers. The value 0 is reserved for GL.

When a buffer is bound to a target, any previous binding for that target is automatically broken.

If an unused buffer name is specified, a buffer object is created. The resulting buffer object is a new state vector, initialized with a zero-sized memory buffer, and with the following state values.

GL_BUFFER_SIZE initialized to 0.

GL_BUFFER_USAGE initialized to GL_STATIC_DRAW.

GL_BUFFER_ACCESS initialized to GL_WRITE_ONLY.

glBindBuffer may also be used to bind an existing buffer object. If the bind is successful no change is made to the state of the newly bound buffer object.

While a buffer is bound, GL operations on the target to which it is bound affect the bound buffer object, and queries of the target to which a buffer object is bound return state from the bound object.

Notes

In the initial state the reserved name zero is bound to GL_ARRAY_BUFFER and GL_ELEMENT_ARRAY_BUFFER. There is no buffer object corresponding to the name zero, so client attempts to modify or query buffer object state for the target GL_ARRAY_BUFFER or GL_ELEMENT_ARRAY_BUFFER while zero is bound will generate GL errors.

While a buffer object is bound, any GL operations on that object affect any other bindings of that object.

Errors

GL_INVALID_ENUM is generated if target is not one of the allowable values.

param
target Specifies the target to which the buffer is bound. Which must be GL_ARRAY_BUFFER or GL_ELEMENT_ARRAY_BUFFER.
param
buffer Specifies the name of a buffer.

public voidglBufferData(int target, int size, java.nio.Buffer data, int usage)
Creates and initializes the data store of a buffer object. glBufferData lets you create and initialize the data store of a buffer object.

If data is non-null, then the source data is copied to the buffer object