OpenGL 3.1 implementations support revision 1.40 of the OpenGL Shading Language.
Extensions promoted to core in this release:
| Modifier and Type | Field and Description |
|---|---|
| public static final int | GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH
Accepted by the |
| public static final int | GL_ACTIVE_UNIFORM_BLOCKS
Accepted by the |
| public static final int | GL_COPY_READ_BUFFER
Accepted by the target parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, GetBufferPointerv, MapBufferRange, FlushMappedBufferRange, GetBufferParameteriv, BindBufferRange, BindBufferBase, and CopyBufferSubData. |
| public static final int | GL_COPY_WRITE_BUFFER
Accepted by the target parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, GetBufferPointerv, MapBufferRange, FlushMappedBufferRange, GetBufferParameteriv, BindBufferRange, BindBufferBase, and CopyBufferSubData. |
| public static final int | GL_INT_SAMPLER_2D_RECT
Returned by the |
| public static final int | GL_INT_SAMPLER_BUFFER
Returned by the |
| public static final int | GL_INVALID_INDEX
Returned by GetActiveUniformsiv and GetUniformBlockIndex. |
| public static final int | GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS
Accepted by the |
| public static final int | GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS
Accepted by the |
| public static final int | GL_MAX_COMBINED_UNIFORM_BLOCKS
Accepted by the |
| public static final int | GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS
Accepted by the |
| public static final int | GL_MAX_FRAGMENT_UNIFORM_BLOCKS
Accepted by the |
| public static final int | GL_MAX_GEOMETRY_UNIFORM_BLOCKS
Accepted by the |
| public static final int | GL_MAX_RECTANGLE_TEXTURE_SIZE
Accepted by the |
| public static final int | GL_MAX_TEXTURE_BUFFER_SIZE
Accepted by the |
| public static final int | GL_MAX_UNIFORM_BLOCK_SIZE
Accepted by the |
| public static final int | GL_MAX_UNIFORM_BUFFER_BINDINGS
Accepted by the |
| public static final int | GL_MAX_VERTEX_UNIFORM_BLOCKS
Accepted by the |
| public static final int | GL_PRIMITIVE_RESTART
Accepted by the |
| public static final int | GL_PRIMITIVE_RESTART_INDEX
Accepted by the |
| public static final int | GL_PROXY_TEXTURE_RECTANGLE
Accepted by the |
| public static final int | GL_R16_SNORM
Accepted by the |
| public static final int | GL_R8_SNORM
Accepted by the |
| public static final int | GL_RG16_SNORM
Accepted by the |
| public static final int | GL_RG8_SNORM
Accepted by the |
| public static final int | GL_RGB16_SNORM
Accepted by the |
| public static final int | GL_RGB8_SNORM
Accepted by the |
| public static final int | GL_RGBA16_SNORM
Accepted by the |
| public static final int | GL_RGBA8_SNORM
Accepted by the |
| public static final int | GL_SAMPLER_2D_RECT
Returned by |
| public static final int | GL_SAMPLER_2D_RECT_SHADOW
Returned by |
| public static final int | GL_SAMPLER_BUFFER
Returned by the |
| public static final int | GL_SIGNED_NORMALIZED
Returned by GetTexLevelParameter and GetFramebufferAttachmentParameter. |
| public static final int | GL_TEXTURE_BINDING_BUFFER
Accepted by the |
| public static final int | GL_TEXTURE_BINDING_RECTANGLE
Accepted by the |
| public static final int | GL_TEXTURE_BUFFER
Accepted by the |
| public static final int | GL_TEXTURE_BUFFER_DATA_STORE_BINDING
Accepted by the |
| public static final int | GL_TEXTURE_RECTANGLE
Accepted by the |
| public static final int | GL_UNIFORM_ARRAY_STRIDE
Accepted by the |
| public static final int | GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES
Accepted by the |
| public static final int | GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS
Accepted by the |
| public static final int | GL_UNIFORM_BLOCK_BINDING
Accepted by the |
| public static final int | GL_UNIFORM_BLOCK_DATA_SIZE
Accepted by the |
| public static final int | GL_UNIFORM_BLOCK_INDEX
Accepted by the |
| public static final int | GL_UNIFORM_BLOCK_NAME_LENGTH
Accepted by the |
| public static final int | GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER
Accepted by the |
| public static final int | GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER
Accepted by the |
| public static final int | GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER
Accepted by the |
| public static final int | GL_UNIFORM_BUFFER
Accepted by the |
| public static final int | GL_UNIFORM_BUFFER_BINDING
Accepted by the |
| public static final int | GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT
Accepted by the |
| public static final int | GL_UNIFORM_BUFFER_SIZE
Accepted by the |
| public static final int | GL_UNIFORM_BUFFER_START
Accepted by the |
| public static final int | GL_UNIFORM_IS_ROW_MAJOR
Accepted by the |
| public static final int | GL_UNIFORM_MATRIX_STRIDE
Accepted by the |
| public static final int | GL_UNIFORM_NAME_LENGTH
Accepted by the |
| public static final int | GL_UNIFORM_OFFSET
Accepted by the |
| public static final int | GL_UNIFORM_SIZE
Accepted by the |
| public static final int | GL_UNIFORM_TYPE
Accepted by the |
| public static final int | GL_UNSIGNED_INT_SAMPLER_2D_RECT
Returned by the |
| public static final int | GL_UNSIGNED_INT_SAMPLER_BUFFER
Returned by the |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public static void | glCopyBufferSubData(int
the source buffer object target. One of: readTarget, int
the destination buffer object target writeTarget, long the source buffer object offset, in bytes readOffset, long the destination buffer object offset, in bytes writeOffset, long the number of bytes to copy size)Copies all or part of one buffer object's data store to the data store of another buffer object. | ||||||||||||
| public static void | glDrawArraysInstanced(int
the kind of primitives to render. One of: mode, int
the index of the first vertex to be rendered first, int the number of vertices to be rendered count, int the number of instances of the specified range of vertices to be rendered primcount)Draw multiple instances of a range of elements. | ||||||||||||
| public static void | glDrawElementsInstanced(int
the kind of primitives to render. One of: mode, int
the number of elements to be rendered count, int type, long the ByteBuffer containing the indices to be rendered indices, int the number of instances of the specified range of indices to be rendered primcount)Draws multiple instances of a set of elements. | ||||||||||||
| public static void | glDrawElementsInstanced(int
the kind of primitives to render. One of: mode, int type, ByteBuffer
the ByteBuffer containing the indices to be rendered indices, int the number of instances of the specified range of indices to be rendered primcount)Draws multiple instances of a set of elements. | ||||||||||||
| public static void | glDrawElementsInstanced(int
the kind of primitives to render. One of: mode, ByteBuffer
the ByteBuffer containing the indices to be rendered indices, int the number of instances of the specified range of indices to be rendered primcount)Draws multiple instances of a set of elements. | ||||||||||||
| public static void | glDrawElementsInstanced(int
the kind of primitives to render. One of: mode, ShortBuffer
the ByteBuffer containing the indices to be rendered indices, int the number of instances of the specified range of indices to be rendered primcount)Draws multiple instances of a set of elements. | ||||||||||||
| public static void | glDrawElementsInstanced(int
the kind of primitives to render. One of: mode, IntBuffer
the ByteBuffer containing the indices to be rendered indices, int the number of instances of the specified range of indices to be rendered primcount)Draws multiple instances of a set of elements. | ||||||||||||
| public static int | glGetActiveUniformBlocki(int
the name of a program containing the uniform block program, int the index of the uniform block within uniformBlockIndex, int programthe name of the parameter to query. One of: pname)Queries information about an active uniform block. | ||||||||||||
| public static void | glGetActiveUniformBlockiv(int
the name of a program containing the uniform block program, int the index of the uniform block within uniformBlockIndex, int programthe name of the parameter to query. One of: pname, IntBuffer the address of a variable to receive the result of the query params)Queries information about an active uniform block. | ||||||||||||
| public static void | glGetActiveUniformBlockiv(int program, int uniformBlockIndex, int pname, int[] params)
Array version of: | ||||||||||||
| public static void | glGetActiveUniformBlockName(int
the name of a program containing the uniform block program, int the index of the uniform block within uniformBlockIndex, IntBuffer programthe address of a variable to receive the number of characters that were written to length, ByteBuffer uniformBlockNamean array of characters to receive the name of the uniform block at uniformBlockName)uniformBlockIndexRetrieves the name of an active uniform block. | ||||||||||||
| public static String | glGetActiveUniformBlockName(int
the name of a program containing the uniform block program, int the index of the uniform block within uniformBlockIndex, int programthe size of the buffer addressed by bufSize)uniformBlockNameRetrieves the name of an active uniform block. | ||||||||||||
| public static String | glGetActiveUniformBlockName(int
the name of a program containing the uniform block program, int the index of the uniform block within uniformBlockIndex)programRetrieves the name of an active uniform block. | ||||||||||||
| public static void | glGetActiveUniformBlockName(int program, int uniformBlockIndex, int[] length, ByteBuffer uniformBlockName)
Array version of: | ||||||||||||
| public static void | glGetActiveUniformName(int
the program containing the active uniform index program, int uniformIndexthe index of the active uniform whose name to query uniformIndex, IntBuffer the address of a variable that will receive the number of characters that were or would have been written to the buffer addressed by length, ByteBuffer uniformNamethe address of a buffer into which the GL will place the name of the active uniform at uniformName)uniformIndex within programQueries the name of an active uniform. | ||||||||||||
| public static String | glGetActiveUniformName(int
the program containing the active uniform index program, int uniformIndexthe index of the active uniform whose name to query uniformIndex, int the size of the buffer, in units of bufSize)GLchar, of the buffer whose address is specified in uniformNameQueries the name of an active uniform. | ||||||||||||
| public static String | glGetActiveUniformName(int
the program containing the active uniform index program, int uniformIndexthe index of the active uniform whose name to query uniformIndex)Queries the name of an active uniform. | ||||||||||||
| public static void | glGetActiveUniformName(int program, int uniformIndex, int[] length, ByteBuffer uniformName)
Array version of: | ||||||||||||
| public static int | glGetActiveUniformsi(int
the program object to be queried program, int uniformIndex, int the property of the each uniform in pname)uniformIndices that should be written into the corresponding element of paramsReturns information about several active uniform variables for the specified program object. | ||||||||||||
| public static void | glGetActiveUniformsiv(int
the program object to be queried program, IntBuffer an array of uniformIndices, int uniformCount integers containing the indices of uniforms within programthe property of the each uniform in pname, IntBuffer uniformIndices that should be written into the corresponding element of paramsan array of params)uniformCount integers which are to receive the value of pname for each uniform in uniformIndicesReturns information about several active uniform variables for the specified program object. | ||||||||||||
| public static void | glGetActiveUniformsiv(int program, int[] uniformIndices, int pname, int[] params)
Array version of: | ||||||||||||
| public static int | glGetUniformBlockIndex(int
the name of a program containing the uniform block program, ByteBuffer an array of characters to containing the name of the uniform block whose index to retrieve uniformBlockName)Retrieves the index of a named uniform block. | ||||||||||||
| public static int | glGetUniformBlockIndex(int
the name of a program containing the uniform block program, CharSequence an array of characters to containing the name of the uniform block whose index to retrieve uniformBlockName)Retrieves the index of a named uniform block. | ||||||||||||
| public static void | glGetUniformIndices(int
the name of a program containing uniforms whose indices to query program, PointerBuffer an array of pointers to buffers containing the names of the queried uniforms uniformNames, IntBuffer an array that will receive the indices of the uniforms uniformIndices)Retrieves the indices of a number of uniforms within a program object | ||||||||||||
| public static void | glGetUniformIndices(int
the name of a program containing uniforms whose indices to query program, CharSequence[] an array of pointers to buffers containing the names of the queried uniforms uniformNames, IntBuffer an array that will receive the indices of the uniforms uniformIndices)Retrieves the indices of a number of uniforms within a program object | ||||||||||||
| public static int | glGetUniformIndices(int
the name of a program containing uniforms whose indices to query program, CharSequence uniformName)Retrieves the indices of a number of uniforms within a program object | ||||||||||||
| public static void | glGetUniformIndices(int program, PointerBuffer uniformNames, int[] uniformIndices)
Array version of: | ||||||||||||
| public static void | glPrimitiveRestartIndex(int
the value to be interpreted as the primitive restart index index)Specifies the primitive restart index. | ||||||||||||
| public static void | glTexBuffer(int
the target of the operation. Must be: target, int
the sized internal format of the data in the store belonging to internalformat, int bufferthe name of the buffer object whose storage to attach to the active buffer texture buffer)Attaches the storage for the buffer object named | ||||||||||||
| public static void | glUniformBlockBinding(int
the name of a program object containing the active uniform block whose binding to assign program, int the index of the active uniform block within uniformBlockIndex, int program whose binding to assignthe binding point to which to bind the uniform block with index uniformBlockBinding)uniformBlockIndex within programAssigns a binding point to an active uniform block. | ||||||||||||
| public static void | nglDrawElementsInstanced(int mode, int
the number of elements to be rendered count, int type, long indices, int primcount)Unsafe version of: | ||||||||||||
| public static void | nglGetActiveUniformBlockiv(int program, int uniformBlockIndex, int pname, long params)
Unsafe version of: | ||||||||||||
| public static void | nglGetActiveUniformBlockName(int program, int uniformBlockIndex, int
the size of the buffer addressed by bufSize, long length, long uniformBlockName)uniformBlockNameUnsafe version of: | ||||||||||||
| public static void | nglGetActiveUniformName(int program, int uniformIndex, int
the size of the buffer, in units of bufSize, long length, long uniformName)GLchar, of the buffer whose address is specified in uniformNameUnsafe version of: | ||||||||||||
| public static void | nglGetActiveUniformsiv(int program, int
the number of elements in the array of indices uniformCount, long uniformIndices, int pname, long params)uniformIndices and the number of parameters written to params upon successful returnUnsafe version of: | ||||||||||||
| public static int | |||||||||||||
| public static void | nglGetUniformIndices(int program, int
the number of uniforms whose indices to query uniformCount, long uniformNames, long uniformIndices)Unsafe version of: |