Class GL31

Direct Known Subclasses:
GL32

public class GL31 extends GL30
The OpenGL functionality up to version 3.1. Includes the deprecated symbols of the Compatibility Profile.

OpenGL 3.1 implementations support revision 1.40 of the OpenGL Shading Language.

Extensions promoted to core in this release:

  • Field Details

    • GL_R8_SNORM

      public static final int GL_R8_SNORM
      Accepted by the internalFormat parameter of TexImage1D, TexImage2D, and TexImage3D.
      See Also:
    • GL_RG8_SNORM

      public static final int GL_RG8_SNORM
      Accepted by the internalFormat parameter of TexImage1D, TexImage2D, and TexImage3D.
      See Also:
    • GL_RGB8_SNORM

      public static final int GL_RGB8_SNORM
      Accepted by the internalFormat parameter of TexImage1D, TexImage2D, and TexImage3D.
      See Also:
    • GL_RGBA8_SNORM

      public static final int GL_RGBA8_SNORM
      Accepted by the internalFormat parameter of TexImage1D, TexImage2D, and TexImage3D.
      See Also:
    • GL_R16_SNORM

      public static final int GL_R16_SNORM
      Accepted by the internalFormat parameter of TexImage1D, TexImage2D, and TexImage3D.
      See Also:
    • GL_RG16_SNORM

      public static final int GL_RG16_SNORM
      Accepted by the internalFormat parameter of TexImage1D, TexImage2D, and TexImage3D.
      See Also:
    • GL_RGB16_SNORM

      public static final int GL_RGB16_SNORM
      Accepted by the internalFormat parameter of TexImage1D, TexImage2D, and TexImage3D.
      See Also:
    • GL_RGBA16_SNORM

      public static final int GL_RGBA16_SNORM
      Accepted by the internalFormat parameter of TexImage1D, TexImage2D, and TexImage3D.
      See Also:
    • GL_SIGNED_NORMALIZED

      public static final int GL_SIGNED_NORMALIZED
      Returned by GetTexLevelParameter and GetFramebufferAttachmentParameter.
      See Also:
    • GL_SAMPLER_BUFFER

      public static final int GL_SAMPLER_BUFFER
      Returned by the type parameter of GetActiveUniform.
      See Also:
    • GL_INT_SAMPLER_2D_RECT

      public static final int GL_INT_SAMPLER_2D_RECT
      Returned by the type parameter of GetActiveUniform.
      See Also:
    • GL_INT_SAMPLER_BUFFER

      public static final int GL_INT_SAMPLER_BUFFER
      Returned by the type parameter of GetActiveUniform.
      See Also:
    • GL_UNSIGNED_INT_SAMPLER_2D_RECT

      public static final int GL_UNSIGNED_INT_SAMPLER_2D_RECT
      Returned by the type parameter of GetActiveUniform.
      See Also:
    • GL_UNSIGNED_INT_SAMPLER_BUFFER

      public static final int GL_UNSIGNED_INT_SAMPLER_BUFFER
      Returned by the type parameter of GetActiveUniform.
      See Also:
    • GL_COPY_READ_BUFFER

      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.
      See Also:
    • GL_COPY_WRITE_BUFFER

      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.
      See Also:
    • GL_PRIMITIVE_RESTART

      public static final int GL_PRIMITIVE_RESTART
      Accepted by the cap parameter of Enable, Disable and IsEnabled.
      See Also:
    • GL_PRIMITIVE_RESTART_INDEX

      public static final int GL_PRIMITIVE_RESTART_INDEX
      Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
      See Also:
    • GL_TEXTURE_BUFFER

      public static final int GL_TEXTURE_BUFFER
      Accepted by the target parameter of BindBuffer, BufferData, BufferSubData, MapBuffer, MapBufferRange, BindTexture, UnmapBuffer, GetBufferSubData, GetBufferParameteriv, GetBufferPointerv, and TexBuffer, and the pname parameter of GetBooleanv, GetDoublev, GetFloatv, and GetIntegerv.
      See Also:
    • GL_MAX_TEXTURE_BUFFER_SIZE

      public static final int GL_MAX_TEXTURE_BUFFER_SIZE
      Accepted by the pname parameters of GetBooleanv, GetDoublev, GetFloatv, and GetIntegerv.
      See Also:
    • GL_TEXTURE_BINDING_BUFFER

      public static final int GL_TEXTURE_BINDING_BUFFER
      Accepted by the pname parameters of GetBooleanv, GetDoublev, GetFloatv, and GetIntegerv.
      See Also:
    • GL_TEXTURE_BUFFER_DATA_STORE_BINDING

      public static final int GL_TEXTURE_BUFFER_DATA_STORE_BINDING
      Accepted by the pname parameters of GetBooleanv, GetDoublev, GetFloatv, and GetIntegerv.
      See Also:
    • GL_TEXTURE_RECTANGLE

      public static final int GL_TEXTURE_RECTANGLE
      Accepted by the cap parameter of Enable, Disable and IsEnabled; by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv and GetDoublev; and by the target parameter of BindTexture, GetTexParameterfv, GetTexParameteriv, TexParameterf, TexParameteri, TexParameterfv and TexParameteriv.
      See Also:
    • GL_TEXTURE_BINDING_RECTANGLE

      public static final int GL_TEXTURE_BINDING_RECTANGLE
      Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv and GetDoublev.
      See Also:
    • GL_PROXY_TEXTURE_RECTANGLE

      public static final int GL_PROXY_TEXTURE_RECTANGLE
      Accepted by the target parameter of GetTexLevelParameteriv, GetTexLevelParameterfv, GetTexParameteriv and TexImage2D.
      See Also:
    • GL_MAX_RECTANGLE_TEXTURE_SIZE

      public static final int GL_MAX_RECTANGLE_TEXTURE_SIZE
      Accepted by the pname parameter of GetBooleanv, GetDoublev, GetIntegerv and GetFloatv.
      See Also:
    • GL_SAMPLER_2D_RECT

      public static final int GL_SAMPLER_2D_RECT
      Returned by type parameter of GetActiveUniform when the location index for program object program is of type sampler2DRect.
      See Also:
    • GL_SAMPLER_2D_RECT_SHADOW

      public static final int GL_SAMPLER_2D_RECT_SHADOW
      Returned by type parameter of GetActiveUniform when the location index for program object program is of type sampler2DRectShadow.
      See Also:
    • GL_UNIFORM_BUFFER

      public static final int GL_UNIFORM_BUFFER
      Accepted by the target parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, and GetBufferPointerv.
      See Also:
    • GL_UNIFORM_BUFFER_BINDING

      public static final int GL_UNIFORM_BUFFER_BINDING
      Accepted by the pname parameter of GetIntegeri_v, GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
      See Also:
    • GL_UNIFORM_BUFFER_START

      public static final int GL_UNIFORM_BUFFER_START
      Accepted by the pname parameter of GetIntegeri_v.
      See Also:
    • GL_UNIFORM_BUFFER_SIZE

      public static final int GL_UNIFORM_BUFFER_SIZE
      Accepted by the pname parameter of GetIntegeri_v.
      See Also:
    • GL_MAX_VERTEX_UNIFORM_BLOCKS

      public static final int GL_MAX_VERTEX_UNIFORM_BLOCKS
      Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
      See Also:
    • GL_MAX_GEOMETRY_UNIFORM_BLOCKS

      public static final int GL_MAX_GEOMETRY_UNIFORM_BLOCKS
      Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
      See Also:
    • GL_MAX_FRAGMENT_UNIFORM_BLOCKS

      public static final int GL_MAX_FRAGMENT_UNIFORM_BLOCKS
      Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
      See Also:
    • GL_MAX_COMBINED_UNIFORM_BLOCKS

      public static final int GL_MAX_COMBINED_UNIFORM_BLOCKS
      Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
      See Also:
    • GL_MAX_UNIFORM_BUFFER_BINDINGS

      public static final int GL_MAX_UNIFORM_BUFFER_BINDINGS
      Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
      See Also:
    • GL_MAX_UNIFORM_BLOCK_SIZE

      public static final int GL_MAX_UNIFORM_BLOCK_SIZE
      Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
      See Also:
    • GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS

      public static final int GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS
      Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
      See Also:
    • GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS

      public static final int GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS
      Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
      See Also:
    • GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS

      public static final int GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS
      Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
      See Also:
    • GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT

      public static final int GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT
      Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
      See Also:
    • GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH

      public static final int GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH
      Accepted by the pname parameter of GetProgramiv.
      See Also:
    • GL_ACTIVE_UNIFORM_BLOCKS

      public static final int GL_ACTIVE_UNIFORM_BLOCKS
      Accepted by the pname parameter of GetProgramiv.
      See Also:
    • GL_UNIFORM_TYPE

      public static final int GL_UNIFORM_TYPE
      Accepted by the pname parameter of GetActiveUniformsiv.
      See Also:
    • GL_UNIFORM_SIZE

      public static final int GL_UNIFORM_SIZE
      Accepted by the pname parameter of GetActiveUniformsiv.
      See Also:
    • GL_UNIFORM_NAME_LENGTH

      public static final int GL_UNIFORM_NAME_LENGTH
      Accepted by the pname parameter of GetActiveUniformsiv.
      See Also:
    • GL_UNIFORM_BLOCK_INDEX

      public static final int GL_UNIFORM_BLOCK_INDEX
      Accepted by the pname parameter of GetActiveUniformsiv.
      See Also:
    • GL_UNIFORM_OFFSET

      public static final int GL_UNIFORM_OFFSET
      Accepted by the pname parameter of GetActiveUniformsiv.
      See Also:
    • GL_UNIFORM_ARRAY_STRIDE

      public static final int GL_UNIFORM_ARRAY_STRIDE
      Accepted by the pname parameter of GetActiveUniformsiv.
      See Also:
    • GL_UNIFORM_MATRIX_STRIDE

      public static final int GL_UNIFORM_MATRIX_STRIDE
      Accepted by the pname parameter of GetActiveUniformsiv.
      See Also:
    • GL_UNIFORM_IS_ROW_MAJOR

      public static final int GL_UNIFORM_IS_ROW_MAJOR
      Accepted by the pname parameter of GetActiveUniformsiv.
      See Also:
    • GL_UNIFORM_BLOCK_BINDING

      public static final int GL_UNIFORM_BLOCK_BINDING
      Accepted by the pname parameter of GetActiveUniformBlockiv.
      See Also:
    • GL_UNIFORM_BLOCK_DATA_SIZE

      public static final int GL_UNIFORM_BLOCK_DATA_SIZE
      Accepted by the pname parameter of GetActiveUniformBlockiv.
      See Also:
    • GL_UNIFORM_BLOCK_NAME_LENGTH

      public static final int GL_UNIFORM_BLOCK_NAME_LENGTH
      Accepted by the pname parameter of GetActiveUniformBlockiv.
      See Also:
    • GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS

      public static final int GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS
      Accepted by the pname parameter of GetActiveUniformBlockiv.
      See Also:
    • GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES

      public static final int GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES
      Accepted by the pname parameter of GetActiveUniformBlockiv.
      See Also:
    • GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER

      public static final int GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER
      Accepted by the pname parameter of GetActiveUniformBlockiv.
      See Also:
    • GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER

      public static final int GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER
      Accepted by the pname parameter of GetActiveUniformBlockiv.
      See Also:
    • GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER

      public static final int GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER
      Accepted by the pname parameter of GetActiveUniformBlockiv.
      See Also:
    • GL_INVALID_INDEX

      public static final int GL_INVALID_INDEX
      Returned by GetActiveUniformsiv and GetUniformBlockIndex.
      See Also:
  • Method Details

    • glDrawArraysInstanced

      public static void glDrawArraysInstanced(int mode, int first, int count, int primcount)
      Draw multiple instances of a range of elements.
      Parameters:
      mode - the kind of primitives to render. One of:
      POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FAN
      TRIANGLESLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHES
      first - the index of the first vertex to be rendered
      count - the number of vertices to be rendered
      primcount - the number of instances of the specified range of vertices to be rendered
      See Also:
    • nglDrawElementsInstanced

      public static void nglDrawElementsInstanced(int mode, int count, int type, long indices, int primcount)
      Unsafe version of: DrawElementsInstanced
      Parameters:
      count - the number of elements to be rendered
      type - the type of the values in indices. One of:
      UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
    • glDrawElementsInstanced

      public static void glDrawElementsInstanced(int mode, int count, int type, long indices, int primcount)
      Draws multiple instances of a set of elements.
      Parameters:
      mode - the kind of primitives to render. One of:
      POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FAN
      TRIANGLESLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHES
      count - the number of elements to be rendered
      type - the type of the values in indices. One of:
      UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
      indices - the ByteBuffer containing the indices to be rendered
      primcount - the number of instances of the specified range of indices to be rendered
      See Also:
    • glDrawElementsInstanced

      public static void glDrawElementsInstanced(int mode, int type, ByteBuffer indices, int primcount)
      Draws multiple instances of a set of elements.
      Parameters:
      mode - the kind of primitives to render. One of:
      POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FAN
      TRIANGLESLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHES
      type - the type of the values in indices. One of:
      UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
      indices - the ByteBuffer containing the indices to be rendered
      primcount - the number of instances of the specified range of indices to be rendered
      See Also:
    • glDrawElementsInstanced

      public static void glDrawElementsInstanced(int mode, ByteBuffer indices, int primcount)
      Draws multiple instances of a set of elements.
      Parameters:
      mode - the kind of primitives to render. One of:
      POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FAN
      TRIANGLESLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHES
      indices - the ByteBuffer containing the indices to be rendered
      primcount - the number of instances of the specified range of indices to be rendered
      See Also:
    • glDrawElementsInstanced

      public static void glDrawElementsInstanced(int mode, ShortBuffer indices, int primcount)
      Draws multiple instances of a set of elements.
      Parameters:
      mode - the kind of primitives to render. One of:
      POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FAN
      TRIANGLESLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHES
      indices - the ByteBuffer containing the indices to be rendered
      primcount - the number of instances of the specified range of indices to be rendered
      See Also:
    • glDrawElementsInstanced

      public static void glDrawElementsInstanced(int mode, IntBuffer indices, int primcount)
      Draws multiple instances of a set of elements.
      Parameters:
      mode - the kind of primitives to render. One of:
      POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FAN
      TRIANGLESLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHES
      indices - the ByteBuffer containing the indices to be rendered
      primcount - the number of instances of the specified range of indices to be rendered
      See Also:
    • glCopyBufferSubData

      public static void glCopyBufferSubData(int readTarget, int writeTarget, long readOffset, long writeOffset, long size)
      Copies all or part of one buffer object's data store to the data store of another buffer object.

      An INVALID_VALUE error is generated if any of readoffset, writeoffset, or size are negative, if readoffset+size exceeds the size of the buffer object bound to readtarget, or if writeoffset+size exceeds the size of the buffer object bound to writetarget.

      An INVALID_VALUE error is generated if the same buffer object is bound to both readtarget and writetarget, and the ranges [readoffset, readoffset+size) and [writeoffset, writeoffset+size) overlap.

      An INVALID_OPERATION error is generated if zero is bound to readtarget or writetarget.

      An INVALID_OPERATION error is generated if the buffer objects bound to either readtarget or writetarget are mapped.

      Parameters:
      readTarget - the source buffer object target. One of:
      ARRAY_BUFFERCOPY_READ_BUFFERCOPY_WRITE_BUFFERELEMENT_ARRAY_BUFFER
      PIXEL_PACK_BUFFERPIXEL_UNPACK_BUFFERTRANSFORM_FEEDBACK_BUFFERTEXTURE_BUFFER
      UNIFORM_BUFFER
      writeTarget - the destination buffer object target
      readOffset - the source buffer object offset, in bytes
      writeOffset - the destination buffer object offset, in bytes
      size - the number of bytes to copy
      See Also:
    • glPrimitiveRestartIndex

      public static void glPrimitiveRestartIndex(int index)
      Specifies the primitive restart index.
      Parameters:
      index - the value to be interpreted as the primitive restart index
      See Also:
    • glTexBuffer

      public static void glTexBuffer(int target, int internalformat, int buffer)
      Attaches the storage for the buffer object named buffer to the active buffer texture, and specifies an internal format for the texel array found in the attached buffer object. If buffer is zero, any buffer object attached to the buffer texture is detached, and no new buffer object is attached. If buffer is non-zero, but is not the name of an existing buffer object, the error INVALID_OPERATION is generated.

      When a buffer object is attached to a buffer texture, the buffer object's data store is taken as the texture's texel array. The number of texels in the buffer texture's texel array is given by

      floor(buffer_size / (components * sizeof(base_type)),

      where buffer_size is the size of the buffer object, in basic machine units and components and base_type are the element count and base data type for elements. The number of texels in the texel array is then clamped to the implementation-dependent limit MAX_TEXTURE_BUFFER_SIZE. When a buffer texture is accessed in a shader, the results of a texel fetch are undefined if the specified texel number is greater than or equal to the clamped number of texels in the texel array.

      When a buffer texture is accessed in a shader, an integer is provided to indicate the texel number being accessed. If no buffer object is bound to the buffer texture, the results of the texel access are undefined. Otherwise, the attached buffer object's data store is interpreted as an array of elements of the GL data type corresponding to internalformat. Each texel consists of one to four elements that are mapped to texture components (R, G, B, A, L, and I). Element m of the texel numbered n is taken from element n * components + m of the attached buffer object's data store. Elements and texels are both numbered starting with zero. For texture formats with normalized components, the extracted values are converted to floating-point values. The components of the texture are then converted to an (R,G,B,A) vector, and returned to the shader as a four-component result vector with components of the appropriate data type for the texture's internal format.

      Parameters:
      target - the target of the operation. Must be:
      TEXTURE_BUFFER
      internalformat - the sized internal format of the data in the store belonging to buffer
      buffer - the name of the buffer object whose storage to attach to the active buffer texture
      See Also:
    • nglGetUniformIndices

      public static void nglGetUniformIndices(int program, int uniformCount, long uniformNames, long uniformIndices)
      Unsafe version of: GetUniformIndices
      Parameters:
      uniformCount - the number of uniforms whose indices to query
    • glGetUniformIndices

      public static void glGetUniformIndices(int program, PointerBuffer uniformNames, IntBuffer uniformIndices)
      Retrieves the indices of a number of uniforms within a program object
      Parameters:
      program - the name of a program containing uniforms whose indices to query
      uniformNames - an array of pointers to buffers containing the names of the queried uniforms
      uniformIndices - an array that will receive the indices of the uniforms
      See Also:
    • glGetUniformIndices

      public static void glGetUniformIndices(int program, CharSequence[] uniformNames, IntBuffer uniformIndices)
      Retrieves the indices of a number of uniforms within a program object
      Parameters:
      program - the name of a program containing uniforms whose indices to query
      uniformNames - an array of pointers to buffers containing the names of the queried uniforms
      uniformIndices - an array that will receive the indices of the uniforms
      See Also:
    • glGetUniformIndices

      public static int glGetUniformIndices(int program, CharSequence uniformName)
      Retrieves the indices of a number of uniforms within a program object
      Parameters:
      program - the name of a program containing uniforms whose indices to query
      See Also:
    • nglGetActiveUniformsiv

      public static void nglGetActiveUniformsiv(int program, int uniformCount, long uniformIndices, int pname, long params)
      Unsafe version of: GetActiveUniformsiv
      Parameters:
      uniformCount - the number of elements in the array of indices uniformIndices and the number of parameters written to params upon successful return
    • glGetActiveUniformsiv

      public static void glGetActiveUniformsiv(int program, IntBuffer uniformIndices, int pname, IntBuffer params)
      Returns information about several active uniform variables for the specified program object.
      Parameters:
      program - the program object to be queried
      uniformIndices - an array of uniformCount integers containing the indices of uniforms within program
      pname - the property of the each uniform in uniformIndices that should be written into the corresponding element of params
      params - an array of uniformCount integers which are to receive the value of pname for each uniform in uniformIndices
      See Also:
    • glGetActiveUniformsi

      public static int glGetActiveUniformsi(int program, int uniformIndex, int pname)
      Returns information about several active uniform variables for the specified program object.
      Parameters:
      program - the program object to be queried
      pname - the property of the each uniform in uniformIndices that should be written into the corresponding element of params
      See Also:
    • nglGetActiveUniformName

      public static void nglGetActiveUniformName(int program, int uniformIndex, int bufSize, long length, long uniformName)
      Unsafe version of: GetActiveUniformName
      Parameters:
      bufSize - the size of the buffer, in units of GLchar, of the buffer whose address is specified in uniformName
    • glGetActiveUniformName

      public static void glGetActiveUniformName(int program, int uniformIndex, @Nullable IntBuffer length, ByteBuffer uniformName)
      Queries the name of an active uniform.
      Parameters:
      program - the program containing the active uniform index uniformIndex
      uniformIndex - the index of the active uniform whose name to query
      length - the address of a variable that will receive the number of characters that were or would have been written to the buffer addressed by uniformName
      uniformName - the address of a buffer into which the GL will place the name of the active uniform at uniformIndex within program
      See Also:
    • glGetActiveUniformName

      public static String glGetActiveUniformName(int program, int uniformIndex, int bufSize)
      Queries the name of an active uniform.
      Parameters:
      program - the program containing the active uniform index uniformIndex
      uniformIndex - the index of the active uniform whose name to query
      bufSize - the size of the buffer, in units of GLchar, of the buffer whose address is specified in uniformName
      See Also:
    • glGetActiveUniformName

      public static String glGetActiveUniformName(int program, int uniformIndex)
      Queries the name of an active uniform.
      Parameters:
      program - the program containing the active uniform index uniformIndex
      uniformIndex - the index of the active uniform whose name to query
      See Also:
    • nglGetUniformBlockIndex

      public static int nglGetUniformBlockIndex(int program, long uniformBlockName)
      Unsafe version of: GetUniformBlockIndex
    • glGetUniformBlockIndex

      public static int glGetUniformBlockIndex(int program, ByteBuffer uniformBlockName)
      Retrieves the index of a named uniform block.
      Parameters:
      program - the name of a program containing the uniform block
      uniformBlockName - an array of characters to containing the name of the uniform block whose index to retrieve
      See Also:
    • glGetUniformBlockIndex

      public static int glGetUniformBlockIndex(int program, CharSequence uniformBlockName)
      Retrieves the index of a named uniform block.
      Parameters:
      program - the name of a program containing the uniform block
      uniformBlockName - an array of characters to containing the name of the uniform block whose index to retrieve
      See Also:
    • nglGetActiveUniformBlockiv

      public static void nglGetActiveUniformBlockiv(int program, int uniformBlockIndex, int pname, long params)
      Unsafe version of: GetActiveUniformBlockiv
    • glGetActiveUniformBlockiv

      public static void glGetActiveUniformBlockiv(int program, int uniformBlockIndex, int pname, IntBuffer params)
      Queries information about an active uniform block.
      Parameters:
      program - the name of a program containing the uniform block
      uniformBlockIndex - the index of the uniform block within program
      pname - the name of the parameter to query. One of:
      UNIFORM_BLOCK_BINDINGUNIFORM_BLOCK_DATA_SIZE
      UNIFORM_BLOCK_NAME_LENGTHUNIFORM_BLOCK_ACTIVE_UNIFORMS
      UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICESUNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER
      UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADERUNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER
      params - the address of a variable to receive the result of the query
      See Also:
    • glGetActiveUniformBlocki

      public static int glGetActiveUniformBlocki(int program, int uniformBlockIndex, int pname)
      Queries information about an active uniform block.
      Parameters:
      program - the name of a program containing the uniform block
      uniformBlockIndex - the index of the uniform block within program
      pname - the name of the parameter to query. One of:
      UNIFORM_BLOCK_BINDINGUNIFORM_BLOCK_DATA_SIZE
      UNIFORM_BLOCK_NAME_LENGTHUNIFORM_BLOCK_ACTIVE_UNIFORMS
      UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICESUNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER
      UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADERUNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER
      See Also:
    • nglGetActiveUniformBlockName

      public static void nglGetActiveUniformBlockName(int program, int uniformBlockIndex, int bufSize, long length, long uniformBlockName)
      Unsafe version of: GetActiveUniformBlockName
      Parameters:
      bufSize - the size of the buffer addressed by uniformBlockName
    • glGetActiveUniformBlockName

      public static void glGetActiveUniformBlockName(int program, int uniformBlockIndex, @Nullable IntBuffer length, ByteBuffer uniformBlockName)
      Retrieves the name of an active uniform block.
      Parameters:
      program - the name of a program containing the uniform block
      uniformBlockIndex - the index of the uniform block within program
      length - the address of a variable to receive the number of characters that were written to uniformBlockName
      uniformBlockName - an array of characters to receive the name of the uniform block at uniformBlockIndex
      See Also:
    • glGetActiveUniformBlockName

      public static String glGetActiveUniformBlockName(int program, int uniformBlockIndex, int bufSize)
      Retrieves the name of an active uniform block.
      Parameters:
      program - the name of a program containing the uniform block
      uniformBlockIndex - the index of the uniform block within program
      bufSize - the size of the buffer addressed by uniformBlockName
      See Also:
    • glGetActiveUniformBlockName

      public static String glGetActiveUniformBlockName(int program, int uniformBlockIndex)
      Retrieves the name of an active uniform block.
      Parameters:
      program - the name of a program containing the uniform block
      uniformBlockIndex - the index of the uniform block within program
      See Also:
    • glUniformBlockBinding

      public static void glUniformBlockBinding(int program, int uniformBlockIndex, int uniformBlockBinding)
      Assigns a binding point to an active uniform block.
      Parameters:
      program - the name of a program object containing the active uniform block whose binding to assign
      uniformBlockIndex - the index of the active uniform block within program whose binding to assign
      uniformBlockBinding - the binding point to which to bind the uniform block with index uniformBlockIndex within program
      See Also:
    • glGetUniformIndices

      public static void glGetUniformIndices(int program, PointerBuffer uniformNames, int[] uniformIndices)
      Array version of: GetUniformIndices
      See Also:
    • glGetActiveUniformsiv

      public static void glGetActiveUniformsiv(int program, int[] uniformIndices, int pname, int[] params)
      Array version of: GetActiveUniformsiv
      See Also:
    • glGetActiveUniformName

      public static void glGetActiveUniformName(int program, int uniformIndex, @Nullable int[] length, ByteBuffer uniformName)
      Array version of: GetActiveUniformName
      See Also:
    • glGetActiveUniformBlockiv

      public static void glGetActiveUniformBlockiv(int program, int uniformBlockIndex, int pname, int[] params)
      Array version of: GetActiveUniformBlockiv
      See Also:
    • glGetActiveUniformBlockName

      public static void glGetActiveUniformBlockName(int program, int uniformBlockIndex, @Nullable int[] length, ByteBuffer uniformBlockName)
      Array version of: GetActiveUniformBlockName
      See Also: