Class GL21



  • public class GL21
    extends java.lang.Object
    The core OpenGL 2.1 functionality. OpenGL 2.1 implementations must support at least revision 1.20 of the OpenGL Shading Language.

    Extensions promoted to core in this release:

    • Field Detail

      • 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:
        Constant Field Values
      • GL_FLOAT_MAT2x3

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

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

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

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

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

        public static final int GL_FLOAT_MAT4x3
        Returned by the type parameter of GetActiveUniform.
        See Also:
        Constant Field Values
      • 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:
        Constant Field Values
      • 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:
        Constant Field Values
      • 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:
        Constant Field Values
      • 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:
        Constant Field Values
      • GL_SRGB

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

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

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

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

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

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

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

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

        public static final int GL_COMPRESSED_SRGB
        Accepted by the internalformat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D.
        See Also:
        Constant Field Values
      • 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:
        Constant Field Values
      • GL_COMPRESSED_SLUMINANCE

        public static final int GL_COMPRESSED_SLUMINANCE
        Accepted by the internalformat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D.
        See Also:
        Constant Field Values
      • 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:
        Constant Field Values
    • Method Detail

      • glUniformMatrix2x3fv

        public static void glUniformMatrix2x3fv(int location,
                                                boolean transpose,
                                                java.nio.FloatBuffer value)

        OpenGL SDK Reference

        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
      • glUniformMatrix3x2fv

        public static void glUniformMatrix3x2fv(int location,
                                                boolean transpose,
                                                java.nio.FloatBuffer value)

        OpenGL SDK Reference

        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
      • glUniformMatrix2x4fv

        public static void glUniformMatrix2x4fv(int location,
                                                boolean transpose,
                                                java.nio.FloatBuffer value)

        OpenGL SDK Reference

        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
      • glUniformMatrix4x2fv

        public static void glUniformMatrix4x2fv(int location,
                                                boolean transpose,
                                                java.nio.FloatBuffer value)

        OpenGL SDK Reference

        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
      • glUniformMatrix3x4fv

        public static void glUniformMatrix3x4fv(int location,
                                                boolean transpose,
                                                java.nio.FloatBuffer value)

        OpenGL SDK Reference

        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
      • glUniformMatrix4x3fv

        public static void glUniformMatrix4x3fv(int location,
                                                boolean transpose,
                                                java.nio.FloatBuffer value)

        OpenGL SDK Reference

        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