Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class EXTSecondaryColor

extends Object
Class Inheritance
Imports
java.nio.*, org.lwjgl.system.*

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 Summary

Modifier and TypeField and Description
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.

public static final int
GL_CURRENT_SECONDARY_COLOR_EXT

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.

public static final int
GL_SECONDARY_COLOR_ARRAY_EXT

Accepted by the array parameter of EnableClientState and DisableClientState.

public static final int
GL_SECONDARY_COLOR_ARRAY_POINTER_EXT

Accepted by the pname parameter of GetPointerv.

public static final int
GL_SECONDARY_COLOR_ARRAY_SIZE_EXT

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.

public static final int
GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.

public static final int
GL_SECONDARY_COLOR_ARRAY_TYPE_EXT

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static native void
glSecondaryColor3bEXT(byte
the red component of the current secondary color
red
,
byte
the green component of the current secondary color
green
,
byte
the blue component of the current secondary color
blue
)

Sets the R, G, and B components of the current secondary color.

public static void
glSecondaryColor3bvEXT(ByteBuffer
the secondary color buffer
v
)

Pointer version of SecondaryColor3bEXT.

public static native void
glSecondaryColor3dEXT(double
the red component of the current secondary color
red
,
double
the green component of the current secondary color
green
,
double
the blue component of the current secondary color
blue
)

Double version of SecondaryColor3bEXT

public static void
glSecondaryColor3dvEXT(DoubleBuffer
the secondary color buffer
v
)

Pointer version of SecondaryColor3dEXT.

public static void
glSecondaryColor3dvEXT(double[] v)

Array version of: SecondaryColor3dvEXT

public static native void
glSecondaryColor3fEXT(float
the red component of the current secondary color
red
,
float
the green component of the current secondary color
green
,
float
the blue component of the current secondary color
blue
)

Float version of SecondaryColor3bEXT

public static void
glSecondaryColor3fvEXT(FloatBuffer
the secondary color buffer
v
)

Pointer version of SecondaryColor3fEXT.

public static void
glSecondaryColor3fvEXT(float[] v)

Array version of: SecondaryColor3fvEXT

public static native void
glSecondaryColor3iEXT(int
the red component of the current secondary color
red
,
int
the green component of the current secondary color
green
,
int
the blue component of the current secondary color
blue
)

Integer version of SecondaryColor3bEXT

public static void
glSecondaryColor3ivEXT(IntBuffer
the secondary color buffer
v
)

Pointer version of SecondaryColor3iEXT.

public static void
glSecondaryColor3ivEXT(int[] v)

Array version of: SecondaryColor3ivEXT

public static native void
glSecondaryColor3sEXT(short
the red component of the current secondary color
red
,
short
the green component of the current secondary color
green
,
short
the blue component of the current secondary color
blue
)

Short version of SecondaryColor3bEXT

public static void
glSecondaryColor3svEXT(ShortBuffer
the secondary color buffer
v
)

Pointer version of SecondaryColor3sEXT.

public static void
glSecondaryColor3svEXT(short[] v)

Array version of: SecondaryColor3svEXT

public static native void
glSecondaryColor3ubEXT(byte
the red component of the current secondary color
red
,
byte
the green component of the current secondary color
green
,
byte
the blue component of the current secondary color
blue
)

Unsigned version of SecondaryColor3bEXT

public static void
glSecondaryColor3ubvEXT(ByteBuffer
the secondary color buffer
v
)

Pointer version of SecondaryColor3ubEXT.

public static native void
glSecondaryColor3uiEXT(int
the red component of the current secondary color
red
,
int
the green component of the current secondary color
green
,
int
the blue component of the current secondary color
blue
)

Unsigned int version of SecondaryColor3bEXT

public static void
glSecondaryColor3uivEXT(IntBuffer
the secondary color buffer
v
)

Pointer version of SecondaryColor3uiEXT.

public static void
public static native void
glSecondaryColor3usEXT(short
the red component of the current secondary color
red
,
short
the green component of the current secondary color
green
,
short
the blue component of the current secondary color
blue
)

Unsigned short version of SecondaryColor3bEXT

public static void
glSecondaryColor3usvEXT(ShortBuffer
the secondary color buffer
v
)

Pointer version of SecondaryColor3usEXT.

public static void
glSecondaryColor3usvEXT(short[] v)

Array version of: SecondaryColor3usvEXT

public static void
glSecondaryColorPointerEXT(int
the number of values per vertex that are stored in the array, as well as their component ordering. Must be:
3
size
,
int type, int
the vertex stride in bytes. If specified as zero, then array elements are stored sequentially
stride
,
ByteBuffer
the secondary color array data
pointer
)

Specifies the location and organization of a secondary color array.

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

Specifies the location and organization of a secondary color array.

public static void
glSecondaryColorPointerEXT(int
the number of values per vertex that are stored in the array, as well as their component ordering. Must be:
3
size
,
int type, int
the vertex stride in bytes. If specified as zero, then array elements are stored sequentially
stride
,
ShortBuffer
the secondary color array data
pointer
)

Specifies the location and organization of a secondary color array.

public static void
glSecondaryColorPointerEXT(int
the number of values per vertex that are stored in the array, as well as their component ordering. Must be:
3
size
,
int type, int
the vertex stride in bytes. If specified as zero, then array elements are stored sequentially
stride
,
IntBuffer
the secondary color array data
pointer
)

Specifies the location and organization of a secondary color array.

public static void
glSecondaryColorPointerEXT(int
the number of values per vertex that are stored in the array, as well as their component ordering. Must be:
3
size
,
int type, int
the vertex stride in bytes. If specified as zero, then array elements are stored sequentially
stride
,
FloatBuffer
the secondary color array data
pointer
)

Specifies the location and organization of a secondary color array.

public static void
glSecondaryColorPointerEXT(int size, int type, int stride, short[] pointer)

Array version of: SecondaryColorPointerEXT

public static void
glSecondaryColorPointerEXT(int size, int type, int stride, int[] pointer)

Array version of: SecondaryColorPointerEXT

public static void
glSecondaryColorPointerEXT(int size, int type, int stride, float[] pointer)

Array version of: SecondaryColorPointerEXT

public static native void
public static native void
public static native void
public static native void
public static native void
public static native void
public static native void
public static native void
public static native void
nglSecondaryColorPointerEXT(int size, int type, int stride, long pointer)

Unsafe version of: SecondaryColorPointerEXT

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_COLOR_SUM_EXTback to summary
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.

GL_CURRENT_SECONDARY_COLOR_EXTback to summary
public static final int GL_CURRENT_SECONDARY_COLOR_EXT

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.

GL_SECONDARY_COLOR_ARRAY_EXTback to summary
public static final int GL_SECONDARY_COLOR_ARRAY_EXT

Accepted by the array parameter of EnableClientState and DisableClientState.

GL_SECONDARY_COLOR_ARRAY_POINTER_EXTback to summary
public static final int GL_SECONDARY_COLOR_ARRAY_POINTER_EXT

Accepted by the pname parameter of GetPointerv.

GL_SECONDARY_COLOR_ARRAY_SIZE_EXTback to summary
public static final int GL_SECONDARY_COLOR_ARRAY_SIZE_EXT

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.

GL_SECONDARY_COLOR_ARRAY_STRIDE_EXTback to summary
public static final int GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.

GL_SECONDARY_COLOR_ARRAY_TYPE_EXTback to summary
public static final int GL_SECONDARY_COLOR_ARRAY_TYPE_EXT

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.

Constructor Detail

EXTSecondaryColorback to summary
protected EXTSecondaryColor()

Method Detail

glSecondaryColor3bEXTback to summary
public static native void glSecondaryColor3bEXT(byte red, byte green, byte blue)

Sets the R, G, and B components of the current secondary color.

Parameters
red:byte

the red component of the current secondary color

green:byte

the green component of the current secondary color

blue:byte

the blue component of the current secondary color

glSecondaryColor3bvEXTback to summary
public static void glSecondaryColor3bvEXT(ByteBuffer v)

Pointer version of SecondaryColor3bEXT.

Parameters
v:ByteBuffer

the secondary color buffer

glSecondaryColor3dEXTback to summary
public static native void glSecondaryColor3dEXT(double red, double green, double blue)

Double version of SecondaryColor3bEXT

Parameters
red:double

the red component of the current secondary color

green:double

the green component of the current secondary color

blue:double

the blue component of the current secondary color

glSecondaryColor3dvEXTback to summary
public static void glSecondaryColor3dvEXT(DoubleBuffer v)

Pointer version of SecondaryColor3dEXT.

Parameters
v:DoubleBuffer

the secondary color buffer

glSecondaryColor3dvEXTback to summary
public static void glSecondaryColor3dvEXT(double[] v)

Array version of: SecondaryColor3dvEXT

glSecondaryColor3fEXTback to summary
public static native void glSecondaryColor3fEXT(float red, float green, float blue)

Float version of SecondaryColor3bEXT

Parameters
red:float

the red component of the current secondary color

green:float

the green component of the current secondary color

blue:float

the blue component of the current secondary color

glSecondaryColor3fvEXTback to summary
public static void glSecondaryColor3fvEXT(FloatBuffer v)

Pointer version of SecondaryColor3fEXT.

Parameters
v:FloatBuffer

the secondary color buffer

glSecondaryColor3fvEXTback to summary
public static void glSecondaryColor3fvEXT(float[] v)

Array version of: SecondaryColor3fvEXT

glSecondaryColor3iEXTback to summary
public static native void glSecondaryColor3iEXT(int red, int green, int blue)

Integer version of SecondaryColor3bEXT

Parameters
red:int

the red component of the current secondary color

green:int

the green component of the current secondary color

blue:int

the blue component of the current secondary color

glSecondaryColor3ivEXTback to summary
public static void glSecondaryColor3ivEXT(IntBuffer v)

Pointer version of SecondaryColor3iEXT.

Parameters
v:IntBuffer

the secondary color buffer

glSecondaryColor3ivEXTback to summary
public static void glSecondaryColor3ivEXT(int[] v)

Array version of: SecondaryColor3ivEXT

glSecondaryColor3sEXTback to summary
public static native void glSecondaryColor3sEXT(short red, short green, short blue)

Short version of SecondaryColor3bEXT

Parameters
red:short

the red component of the current secondary color

green:short

the green component of the current secondary color

blue:short

the blue component of the current secondary color

glSecondaryColor3svEXTback to summary
public static void glSecondaryColor3svEXT(ShortBuffer v)

Pointer version of SecondaryColor3sEXT.

Parameters
v:ShortBuffer

the secondary color buffer

glSecondaryColor3svEXTback to summary
public static void glSecondaryColor3svEXT(short[] v)

Array version of: SecondaryColor3svEXT

glSecondaryColor3ubEXTback to summary
public static native void glSecondaryColor3ubEXT(byte red, byte green, byte blue)

Unsigned version of SecondaryColor3bEXT

Parameters
red:byte

the red component of the current secondary color

green:byte

the green component of the current secondary color

blue:byte

the blue component of the current secondary color

glSecondaryColor3ubvEXTback to summary
public static void glSecondaryColor3ubvEXT(ByteBuffer v)

Pointer version of SecondaryColor3ubEXT.

Parameters
v:ByteBuffer

the secondary color buffer

glSecondaryColor3uiEXTback to summary
public static native void glSecondaryColor3uiEXT(int red, int green, int blue)

Unsigned int version of SecondaryColor3bEXT

Parameters
red:int

the red component of the current secondary color

green:int

the green component of the current secondary color

blue:int

the blue component of the current secondary color

glSecondaryColor3uivEXTback to summary
public static void glSecondaryColor3uivEXT(IntBuffer v)

Pointer version of SecondaryColor3uiEXT.

Parameters
v:IntBuffer

the secondary color buffer

glSecondaryColor3uivEXTback to summary
public static void glSecondaryColor3uivEXT(int[] v)

Array version of: SecondaryColor3uivEXT

glSecondaryColor3usEXTback to summary
public static native void glSecondaryColor3usEXT(short red, short green, short blue)

Unsigned short version of SecondaryColor3bEXT

Parameters
red:short

the red component of the current secondary color

green:short

the green component of the current secondary color

blue:short

the blue component of the current secondary color

glSecondaryColor3usvEXTback to summary
public static void glSecondaryColor3usvEXT(ShortBuffer v)

Pointer version of SecondaryColor3usEXT.

Parameters
v:ShortBuffer

the secondary color buffer

glSecondaryColor3usvEXTback to summary
public static void glSecondaryColor3usvEXT(short[] v)

Array version of: SecondaryColor3usvEXT

glSecondaryColorPointerEXTback to summary
public static void glSecondaryColorPointerEXT(int size, int type, int stride, ByteBuffer pointer)

Specifies the location and organization of a secondary color array.

Parameters
size:int

the number of values per vertex that are stored in the array, as well as their component ordering. Must be:

3
type:int

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:int

the vertex stride in bytes. If specified as zero, then array elements are stored sequentially

pointer:ByteBuffer

the secondary color array data

glSecondaryColorPointerEXTback to summary
public static void glSecondaryColorPointerEXT(int size, int type, int stride, long pointer)

Specifies the location and organization of a secondary color array.

Parameters
size:int

the number of values per vertex that are stored in the array, as well as their component ordering. Must be:

3
type:int

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:int

the vertex stride in bytes. If specified as zero, then array elements are stored sequentially

pointer:long

the secondary color array data

glSecondaryColorPointerEXTback to summary
public static void glSecondaryColorPointerEXT(int size, int type, int stride, ShortBuffer pointer)

Specifies the location and organization of a secondary color array.

Parameters
size:int

the number of values per vertex that are stored in the array, as well as their component ordering. Must be:

3
type:int

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:int

the vertex stride in bytes. If specified as zero, then array elements are stored sequentially

pointer:ShortBuffer

the secondary color array data

glSecondaryColorPointerEXTback to summary
public static void glSecondaryColorPointerEXT(int size, int type, int stride, IntBuffer pointer)

Specifies the location and organization of a secondary color array.

Parameters
size:int

the number of values per vertex that are stored in the array, as well as their component ordering. Must be:

3
type:int

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:int

the vertex stride in bytes. If specified as zero, then array elements are stored sequentially

pointer:IntBuffer

the secondary color array data

glSecondaryColorPointerEXTback to summary
public static void glSecondaryColorPointerEXT(int size, int type, int stride, FloatBuffer pointer)

Specifies the location and organization of a secondary color array.

Parameters
size:int

the number of values per vertex that are stored in the array, as well as their component ordering. Must be:

3
type:int

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:int

the vertex stride in bytes. If specified as zero, then array elements are stored sequentially

pointer:FloatBuffer

the secondary color array data

glSecondaryColorPointerEXTback to summary
public static void glSecondaryColorPointerEXT(int size, int type, int stride, short[] pointer)

Array version of: SecondaryColorPointerEXT

glSecondaryColorPointerEXTback to summary
public static void glSecondaryColorPointerEXT(int size, int type, int stride, int[] pointer)

Array version of: SecondaryColorPointerEXT

glSecondaryColorPointerEXTback to summary
public static void glSecondaryColorPointerEXT(int size, int type, int stride, float[] pointer)

Array version of: SecondaryColorPointerEXT

nglSecondaryColor3bvEXTback to summary
public static native void nglSecondaryColor3bvEXT(long v)

Unsafe version of: SecondaryColor3bvEXT

nglSecondaryColor3dvEXTback to summary
public static native void nglSecondaryColor3dvEXT(long v)

Unsafe version of: SecondaryColor3dvEXT

nglSecondaryColor3fvEXTback to summary
public static native void nglSecondaryColor3fvEXT(long v)

Unsafe version of: SecondaryColor3fvEXT

nglSecondaryColor3ivEXTback to summary
public static native void nglSecondaryColor3ivEXT(long v)

Unsafe version of: SecondaryColor3ivEXT

nglSecondaryColor3svEXTback to summary
public static native void nglSecondaryColor3svEXT(long v)

Unsafe version of: SecondaryColor3svEXT

nglSecondaryColor3ubvEXTback to summary
public static native void nglSecondaryColor3ubvEXT(long v)

Unsafe version of: SecondaryColor3ubvEXT

nglSecondaryColor3uivEXTback to summary
public static native void nglSecondaryColor3uivEXT(long v)

Unsafe version of: SecondaryColor3uivEXT

nglSecondaryColor3usvEXTback to summary
public static native void nglSecondaryColor3usvEXT(long v)

Unsafe version of: SecondaryColor3usvEXT

nglSecondaryColorPointerEXTback to summary
public static native void nglSecondaryColorPointerEXT(int size, int type, int stride, long pointer)

Unsafe version of: SecondaryColorPointerEXT