Class GL21

Direct Known Subclasses:
GL30

public class GL21 extends GL20
The OpenGL functionality up to version 2.1. Includes the deprecated symbols of the Compatibility Profile.

OpenGL 2.1 implementations must support at least revision 1.20 of the OpenGL Shading Language.

Extensions promoted to core in this release:

  • Field Details

    • GL_CURRENT_RASTER_SECONDARY_COLOR

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

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

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

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

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

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

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

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

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

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

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

      public static final int GL_SRGB
      Accepted by the internalformat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D.
      See Also:
    • GL_SRGB8

      public static final int GL_SRGB8
      Accepted by the internalformat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D.
      See Also:
    • GL_SRGB_ALPHA

      public static final int GL_SRGB_ALPHA
      Accepted by the internalformat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D.
      See Also:
    • GL_SRGB8_ALPHA8

      public static final int GL_SRGB8_ALPHA8
      Accepted by the internalformat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D.
      See Also:
    • GL_SLUMINANCE_ALPHA

      public static final int GL_SLUMINANCE_ALPHA
      Accepted by the internalformat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D.
      See Also:
    • GL_SLUMINANCE8_ALPHA8

      public static final int GL_SLUMINANCE8_ALPHA8
      Accepted by the internalformat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D.
      See Also:
    • GL_SLUMINANCE

      public static final int GL_SLUMINANCE
      Accepted by the internalformat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D.
      See Also:
    • GL_SLUMINANCE8

      public static final int GL_SLUMINANCE8
      Accepted by the internalformat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D.
      See Also:
    • GL_COMPRESSED_SRGB

      public static final int GL_COMPRESSED_SRGB
      Accepted by the internalformat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D.
      See Also:
    • GL_COMPRESSED_SRGB_ALPHA

      public static final int GL_COMPRESSED_SRGB_ALPHA
      Accepted by the internalformat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D.
      See Also:
    • GL_COMPRESSED_SLUMINANCE

      public static final int GL_COMPRESSED_SLUMINANCE
      Accepted by the internalformat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D.
      See Also:
    • GL_COMPRESSED_SLUMINANCE_ALPHA

      public static final int GL_COMPRESSED_SLUMINANCE_ALPHA
      Accepted by the internalformat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D.
      See Also:
  • Method Details

    • nglUniformMatrix2x3fv

      public static void nglUniformMatrix2x3fv(int location, int count, boolean transpose, long value)
      Unsafe version of: UniformMatrix2x3fv
      Parameters:
      count - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.
    • glUniformMatrix2x3fv

      public static void glUniformMatrix2x3fv(int location, boolean transpose, FloatBuffer value)
      Specifies the value of a single mat2x3 uniform variable or a mat2x3 uniform variable array for the current program object.
      Parameters:
      location - the location of the uniform variable to be modified
      transpose - whether to transpose the matrix as the values are loaded into the uniform variable
      value - a pointer to an array of count values that will be used to update the specified uniform variable
      See Also:
    • nglUniformMatrix3x2fv

      public static void nglUniformMatrix3x2fv(int location, int count, boolean transpose, long value)
      Unsafe version of: UniformMatrix3x2fv
      Parameters:
      count - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.
    • glUniformMatrix3x2fv

      public static void glUniformMatrix3x2fv(int location, boolean transpose, FloatBuffer value)
      Specifies the value of a single mat3x2 uniform variable or a mat3x2 uniform variable array for the current program object.
      Parameters:
      location - the location of the uniform variable to be modified
      transpose - whether to transpose the matrix as the values are loaded into the uniform variable
      value - a pointer to an array of count values that will be used to update the specified uniform variable
      See Also:
    • nglUniformMatrix2x4fv

      public static void nglUniformMatrix2x4fv(int location, int count, boolean transpose, long value)
      Unsafe version of: UniformMatrix2x4fv
      Parameters:
      count - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.
    • glUniformMatrix2x4fv

      public static void glUniformMatrix2x4fv(int location, boolean transpose, FloatBuffer value)
      Specifies the value of a single mat2x4 uniform variable or a mat2x4 uniform variable array for the current program object.
      Parameters:
      location - the location of the uniform variable to be modified
      transpose - whether to transpose the matrix as the values are loaded into the uniform variable
      value - a pointer to an array of count values that will be used to update the specified uniform variable
      See Also:
    • nglUniformMatrix4x2fv

      public static void nglUniformMatrix4x2fv(int location, int count, boolean transpose, long value)
      Unsafe version of: UniformMatrix4x2fv
      Parameters:
      count - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.
    • glUniformMatrix4x2fv

      public static void glUniformMatrix4x2fv(int location, boolean transpose, FloatBuffer value)
      Specifies the value of a single mat4x2 uniform variable or a mat4x2 uniform variable array for the current program object.
      Parameters:
      location - the location of the uniform variable to be modified
      transpose - whether to transpose the matrix as the values are loaded into the uniform variable
      value - a pointer to an array of count values that will be used to update the specified uniform variable
      See Also:
    • nglUniformMatrix3x4fv

      public static void nglUniformMatrix3x4fv(int location, int count, boolean transpose, long value)
      Unsafe version of: UniformMatrix3x4fv
      Parameters:
      count - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.
    • glUniformMatrix3x4fv

      public static void glUniformMatrix3x4fv(int location, boolean transpose, FloatBuffer value)
      Specifies the value of a single mat3x4 uniform variable or a mat3x4 uniform variable array for the current program object.
      Parameters:
      location - the location of the uniform variable to be modified
      transpose - whether to transpose the matrix as the values are loaded into the uniform variable
      value - a pointer to an array of count values that will be used to update the specified uniform variable
      See Also:
    • nglUniformMatrix4x3fv

      public static void nglUniformMatrix4x3fv(int location, int count, boolean transpose, long value)
      Unsafe version of: UniformMatrix4x3fv
      Parameters:
      count - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.
    • glUniformMatrix4x3fv

      public static void glUniformMatrix4x3fv(int location, boolean transpose, FloatBuffer value)
      Specifies the value of a single mat4x3 uniform variable or a mat4x3 uniform variable array for the current program object.
      Parameters:
      location - the location of the uniform variable to be modified
      transpose - whether to transpose the matrix as the values are loaded into the uniform variable
      value - a pointer to an array of count values that will be used to update the specified uniform variable
      See Also:
    • glUniformMatrix2x3fv

      public static void glUniformMatrix2x3fv(int location, boolean transpose, float[] value)
      Array version of: UniformMatrix2x3fv
      See Also:
    • glUniformMatrix3x2fv

      public static void glUniformMatrix3x2fv(int location, boolean transpose, float[] value)
      Array version of: UniformMatrix3x2fv
      See Also:
    • glUniformMatrix2x4fv

      public static void glUniformMatrix2x4fv(int location, boolean transpose, float[] value)
      Array version of: UniformMatrix2x4fv
      See Also:
    • glUniformMatrix4x2fv

      public static void glUniformMatrix4x2fv(int location, boolean transpose, float[] value)
      Array version of: UniformMatrix4x2fv
      See Also:
    • glUniformMatrix3x4fv

      public static void glUniformMatrix3x4fv(int location, boolean transpose, float[] value)
      Array version of: UniformMatrix3x4fv
      See Also:
    • glUniformMatrix4x3fv

      public static void glUniformMatrix4x3fv(int location, boolean transpose, float[] value)
      Array version of: UniformMatrix4x3fv
      See Also: