Class EXTSecondaryColor



  • public class EXTSecondaryColor
    extends java.lang.Object
    Native bindings to the EXT_secondary_color extension.

    This extension allows specifying the RGB components of the secondary color used in the Color Sum stage, instead of using the default (0,0,0,0) color. It applies only in RGBA mode and when LIGHTING is disabled.

    • Field Detail

      • GL_COLOR_SUM_EXT

        public static final int GL_COLOR_SUM_EXT
        Accepted by the cap parameter of Enable, Disable, and IsEnabled, and by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
        See Also:
        Constant Field Values
      • GL_CURRENT_SECONDARY_COLOR_EXT

        public static final int GL_CURRENT_SECONDARY_COLOR_EXT
        Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
        See Also:
        Constant Field Values
      • GL_SECONDARY_COLOR_ARRAY_SIZE_EXT

        public static final int GL_SECONDARY_COLOR_ARRAY_SIZE_EXT
        Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
        See Also:
        Constant Field Values
      • GL_SECONDARY_COLOR_ARRAY_TYPE_EXT

        public static final int GL_SECONDARY_COLOR_ARRAY_TYPE_EXT
        Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
        See Also:
        Constant Field Values
      • GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT

        public static final int GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT
        Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
        See Also:
        Constant Field Values
      • GL_SECONDARY_COLOR_ARRAY_POINTER_EXT

        public static final int GL_SECONDARY_COLOR_ARRAY_POINTER_EXT
        Accepted by the pname parameter of GetPointerv.
        See Also:
        Constant Field Values
      • GL_SECONDARY_COLOR_ARRAY_EXT

        public static final int GL_SECONDARY_COLOR_ARRAY_EXT
        Accepted by the array parameter of EnableClientState and DisableClientState.
        See Also:
        Constant Field Values
    • Method Detail

      • glSecondaryColor3bEXT

        public static void glSecondaryColor3bEXT(byte red,
                                                 byte green,
                                                 byte blue)
        Sets the R, G, and B components of the current secondary color.
        Parameters:
        red - the red component of the current secondary color
        green - the green component of the current secondary color
        blue - the blue component of the current secondary color
      • glSecondaryColor3sEXT

        public static void glSecondaryColor3sEXT(short red,
                                                 short green,
                                                 short blue)
        Short version of SecondaryColor3bEXT
        Parameters:
        red - the red component of the current secondary color
        green - the green component of the current secondary color
        blue - the blue component of the current secondary color
      • glSecondaryColor3iEXT

        public static void glSecondaryColor3iEXT(int red,
                                                 int green,
                                                 int blue)
        Integer version of SecondaryColor3bEXT
        Parameters:
        red - the red component of the current secondary color
        green - the green component of the current secondary color
        blue - the blue component of the current secondary color
      • glSecondaryColor3fEXT

        public static void glSecondaryColor3fEXT(float red,
                                                 float green,
                                                 float blue)
        Float version of SecondaryColor3bEXT
        Parameters:
        red - the red component of the current secondary color
        green - the green component of the current secondary color
        blue - the blue component of the current secondary color
      • glSecondaryColor3dEXT

        public static void glSecondaryColor3dEXT(double red,
                                                 double green,
                                                 double blue)
        Double version of SecondaryColor3bEXT
        Parameters:
        red - the red component of the current secondary color
        green - the green component of the current secondary color
        blue - the blue component of the current secondary color
      • glSecondaryColor3ubEXT

        public static void glSecondaryColor3ubEXT(byte red,
                                                  byte green,
                                                  byte blue)
        Unsigned version of SecondaryColor3bEXT
        Parameters:
        red - the red component of the current secondary color
        green - the green component of the current secondary color
        blue - the blue component of the current secondary color
      • glSecondaryColor3usEXT

        public static void glSecondaryColor3usEXT(short red,
                                                  short green,
                                                  short blue)
        Unsigned short version of SecondaryColor3bEXT
        Parameters:
        red - the red component of the current secondary color
        green - the green component of the current secondary color
        blue - the blue component of the current secondary color
      • glSecondaryColor3uiEXT

        public static void glSecondaryColor3uiEXT(int red,
                                                  int green,
                                                  int blue)
        Unsigned int version of SecondaryColor3bEXT
        Parameters:
        red - the red component of the current secondary color
        green - the green component of the current secondary color
        blue - the blue component of the current secondary color
      • glSecondaryColor3bvEXT

        public static void glSecondaryColor3bvEXT(java.nio.ByteBuffer v)
        Pointer version of SecondaryColor3bEXT.
        Parameters:
        v - the secondary color buffer
      • glSecondaryColor3svEXT

        public static void glSecondaryColor3svEXT(java.nio.ShortBuffer v)
        Pointer version of SecondaryColor3sEXT.
        Parameters:
        v - the secondary color buffer
      • glSecondaryColor3ivEXT

        public static void glSecondaryColor3ivEXT(java.nio.IntBuffer v)
        Pointer version of SecondaryColor3iEXT.
        Parameters:
        v - the secondary color buffer
      • glSecondaryColor3fvEXT

        public static void glSecondaryColor3fvEXT(java.nio.FloatBuffer v)
        Pointer version of SecondaryColor3fEXT.
        Parameters:
        v - the secondary color buffer
      • glSecondaryColor3dvEXT

        public static void glSecondaryColor3dvEXT(java.nio.DoubleBuffer v)
        Pointer version of SecondaryColor3dEXT.
        Parameters:
        v - the secondary color buffer
      • glSecondaryColor3ubvEXT

        public static void glSecondaryColor3ubvEXT(java.nio.ByteBuffer v)
        Pointer version of SecondaryColor3ubEXT.
        Parameters:
        v - the secondary color buffer
      • glSecondaryColor3usvEXT

        public static void glSecondaryColor3usvEXT(java.nio.ShortBuffer v)
        Pointer version of SecondaryColor3usEXT.
        Parameters:
        v - the secondary color buffer
      • glSecondaryColor3uivEXT

        public static void glSecondaryColor3uivEXT(java.nio.IntBuffer v)
        Pointer version of SecondaryColor3uiEXT.
        Parameters:
        v - the secondary color buffer
      • glSecondaryColorPointerEXT

        public static void glSecondaryColorPointerEXT(int size,
                                                      int type,
                                                      int stride,
                                                      java.nio.ByteBuffer pointer)
        Specifies the location and organization of a secondary color array.
        Parameters:
        size - the number of values per vertex that are stored in the array, as well as their component ordering. Must be:
        3
        type - the data type of the values stored in the array. One of:
        BYTEUNSIGNED_BYTESHORTUNSIGNED_SHORTINTUNSIGNED_INTHALF_FLOAT
        FLOATDOUBLEUNSIGNED_INT_2_10_10_10_REVINT_2_10_10_10_REV
        stride - the vertex stride in bytes. If specified as zero, then array elements are stored sequentially
        pointer - the secondary color array data
      • glSecondaryColorPointerEXT

        public static void glSecondaryColorPointerEXT(int size,
                                                      int type,
                                                      int stride,
                                                      long pointer)
        Specifies the location and organization of a secondary color array.
        Parameters:
        size - the number of values per vertex that are stored in the array, as well as their component ordering. Must be:
        3
        type - the data type of the values stored in the array. One of:
        BYTEUNSIGNED_BYTESHORTUNSIGNED_SHORTINTUNSIGNED_INTHALF_FLOAT
        FLOATDOUBLEUNSIGNED_INT_2_10_10_10_REVINT_2_10_10_10_REV
        stride - the vertex stride in bytes. If specified as zero, then array elements are stored sequentially
        pointer - the secondary color array data
      • glSecondaryColorPointerEXT

        public static void glSecondaryColorPointerEXT(int size,
                                                      int type,
                                                      int stride,
                                                      java.nio.ShortBuffer pointer)
        ShortBuffer version of: SecondaryColorPointerEXT
      • glSecondaryColorPointerEXT

        public static void glSecondaryColorPointerEXT(int size,
                                                      int type,
                                                      int stride,
                                                      java.nio.IntBuffer pointer)
        IntBuffer version of: SecondaryColorPointerEXT
      • glSecondaryColorPointerEXT

        public static void glSecondaryColorPointerEXT(int size,
                                                      int type,
                                                      int stride,
                                                      java.nio.FloatBuffer pointer)
        FloatBuffer version of: SecondaryColorPointerEXT
      • glSecondaryColor3svEXT

        public static void glSecondaryColor3svEXT(short[] v)
        Array version of: SecondaryColor3svEXT
      • glSecondaryColor3ivEXT

        public static void glSecondaryColor3ivEXT(int[] v)
        Array version of: SecondaryColor3ivEXT
      • glSecondaryColor3fvEXT

        public static void glSecondaryColor3fvEXT(float[] v)
        Array version of: SecondaryColor3fvEXT
      • glSecondaryColor3dvEXT

        public static void glSecondaryColor3dvEXT(double[] v)
        Array version of: SecondaryColor3dvEXT
      • glSecondaryColor3usvEXT

        public static void glSecondaryColor3usvEXT(short[] v)
        Array version of: SecondaryColor3usvEXT
      • glSecondaryColor3uivEXT

        public static void glSecondaryColor3uivEXT(int[] v)
        Array version of: SecondaryColor3uivEXT
      • glSecondaryColorPointerEXT

        public static void glSecondaryColorPointerEXT(int size,
                                                      int type,
                                                      int stride,
                                                      short[] pointer)
        short[] version of: SecondaryColorPointerEXT
      • glSecondaryColorPointerEXT

        public static void glSecondaryColorPointerEXT(int size,
                                                      int type,
                                                      int stride,
                                                      int[] pointer)
        int[] version of: SecondaryColorPointerEXT
      • glSecondaryColorPointerEXT

        public static void glSecondaryColorPointerEXT(int size,
                                                      int type,
                                                      int stride,
                                                      float[] pointer)
        float[] version of: SecondaryColorPointerEXT