public class ARBMatrixPalette
extends java.lang.Object
This extension extends the abilities of ARBVertexBlend to include a palette of modelview matrices. The n vertex units use a palette of m modelview
matrices. (Where n and m are constrained to implementation defined maxima.) Each vertex has a set of n indices into the palette, and a corresponding set
of n weights. Matrix indices can be changed for each vertex (between Begin and End).
When this extension is utilized, the enabled units transform each vertex by the modelview matrices specified by the vertices' respective indices. These results are subsequently scaled by the weights of the respective units and then summed to create the eyespace vertex.
A similar procedure is followed for normals. Normals, however, are transformed by the inverse transpose of the modelview matrix.
| Modifier and Type | Field and Description |
|---|---|
static int |
GL_CURRENT_MATRIX_INDEX_ARB
Accepted by the
pname parameter of GetFloatv. |
static int |
GL_CURRENT_PALETTE_MATRIX_ARB
Accepted by the
pname parameters of GetIntegerv, GetFloatv, and GetDoublev. |
static int |
GL_MATRIX_INDEX_ARRAY_ARB
Accepted by the
cap parameters of EnableClientState and DisableClientState and by the pname parameter of IsEnabled. |
static int |
GL_MATRIX_INDEX_ARRAY_POINTER_ARB
Accepted by the
pname parameter of GetPointerv. |
static int |
GL_MATRIX_INDEX_ARRAY_SIZE_ARB
Accepted by the
pname parameter of GetIntegerv. |
static int |
GL_MATRIX_INDEX_ARRAY_STRIDE_ARB
Accepted by the
pname parameter of GetIntegerv. |
static int |
GL_MATRIX_INDEX_ARRAY_TYPE_ARB
Accepted by the
pname parameter of GetIntegerv. |
static int |
GL_MATRIX_PALETTE_ARB
Accepted by the
pname parameters of GetFloatv, GetDoublev, and IsEnabled, by the mode parameter of MatrixMode, and by the cap
parameters of Enable and Disable. |
static int |
GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB
Accepted by the
pname parameters of GetIntegerv, GetFloatv, and GetDoublev. |
static int |
GL_MAX_PALETTE_MATRICES_ARB
Accepted by the
pname parameters of GetIntegerv, GetFloatv, and GetDoublev. |
| Modifier and Type | Method and Description |
|---|---|
static void |
glCurrentPaletteMatrixARB(int index)
Defines which of the palette's matrices is affected by subsequent matrix operations when the current matrix mode is
MATRIX_PALETTE_ARB, |
static void |
glMatrixIndexPointerARB(int size,
int stride,
java.nio.ByteBuffer pointer) |
static void |
glMatrixIndexPointerARB(int size,
int stride,
java.nio.IntBuffer pointer) |
static void |
glMatrixIndexPointerARB(int size,
int type,
int stride,
java.nio.ByteBuffer pointer) |
static void |
glMatrixIndexPointerARB(int size,
int type,
int stride,
long pointer) |
static void |
glMatrixIndexPointerARB(int size,
int stride,
java.nio.ShortBuffer pointer) |
static void |
glMatrixIndexubvARB(java.nio.ByteBuffer indices)
Byte version of
MatrixIndexuivARB. |
static void |
glMatrixIndexuivARB(int[] indices)
Array version of:
MatrixIndexuivARB |
static void |
glMatrixIndexuivARB(java.nio.IntBuffer indices)
Sets the current matrix indices.
|
static void |
glMatrixIndexusvARB(short[] indices)
Array version of:
MatrixIndexusvARB |
static void |
glMatrixIndexusvARB(java.nio.ShortBuffer indices)
Short version of
MatrixIndexuivARB. |
static void |
nglMatrixIndexPointerARB(int size,
int type,
int stride,
long pointer)
Unsafe version of:
MatrixIndexPointerARB |
static void |
nglMatrixIndexubvARB(int size,
long indices)
Unsafe version of:
MatrixIndexubvARB |
static void |
nglMatrixIndexuivARB(int size,
long indices)
Unsafe version of:
MatrixIndexuivARB |
static void |
nglMatrixIndexusvARB(int size,
long indices)
Unsafe version of:
MatrixIndexusvARB |
public static final int GL_MATRIX_PALETTE_ARB
pname parameters of GetFloatv, GetDoublev, and IsEnabled, by the mode parameter of MatrixMode, and by the cap
parameters of Enable and Disable.public static final int GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB
pname parameters of GetIntegerv, GetFloatv, and GetDoublev.public static final int GL_MAX_PALETTE_MATRICES_ARB
pname parameters of GetIntegerv, GetFloatv, and GetDoublev.public static final int GL_CURRENT_PALETTE_MATRIX_ARB
pname parameters of GetIntegerv, GetFloatv, and GetDoublev.public static final int GL_MATRIX_INDEX_ARRAY_ARB
cap parameters of EnableClientState and DisableClientState and by the pname parameter of IsEnabled.public static final int GL_CURRENT_MATRIX_INDEX_ARB
pname parameter of GetFloatv.public static final int GL_MATRIX_INDEX_ARRAY_SIZE_ARB
pname parameter of GetIntegerv.public static final int GL_MATRIX_INDEX_ARRAY_TYPE_ARB
pname parameter of GetIntegerv.public static final int GL_MATRIX_INDEX_ARRAY_STRIDE_ARB
pname parameter of GetIntegerv.public static final int GL_MATRIX_INDEX_ARRAY_POINTER_ARB
pname parameter of GetPointerv.public static void glCurrentPaletteMatrixARB(int index)
MATRIX_PALETTE_ARB,index - the current matrix index. Must be a value between 0 and MAX_PALETTE_MATRICES_ARB.public static void nglMatrixIndexuivARB(int size,
long indices)
MatrixIndexuivARBsize - the number of index values to set. Must be a value between 1 and MAX_VERTEX_UNITS_ARB.public static void glMatrixIndexuivARB(java.nio.IntBuffer indices)
indices - the matrix index valuespublic static void nglMatrixIndexubvARB(int size,
long indices)
MatrixIndexubvARBsize - the number of index values to set. Must be a value between 1 and MAX_VERTEX_UNITS_ARB.public static void glMatrixIndexubvARB(java.nio.ByteBuffer indices)
MatrixIndexuivARB.indices - the matrix index valuespublic static void nglMatrixIndexusvARB(int size,
long indices)
MatrixIndexusvARBsize - the number of index values to set. Must be a value between 1 and MAX_VERTEX_UNITS_ARB.public static void glMatrixIndexusvARB(java.nio.ShortBuffer indices)
MatrixIndexuivARB.indices - the matrix index valuespublic static void nglMatrixIndexPointerARB(int size,
int type,
int stride,
long pointer)
MatrixIndexPointerARBtype - the data type of the values stored in the array. One of:UNSIGNED_BYTE | UNSIGNED_SHORT | UNSIGNED_INT |
public static void glMatrixIndexPointerARB(int size,
int type,
int stride,
java.nio.ByteBuffer pointer)
size - the number of index values per vertex that are stored in the array. Must be a value between 1 and MAX_VERTEX_UNITS_ARB.type - the data type of the values stored in the array. One of:UNSIGNED_BYTE | UNSIGNED_SHORT | UNSIGNED_INT |
stride - the vertex stride in bytes. If specified as zero, then array elements are stored sequentiallypointer - the matrix index datapublic static void glMatrixIndexPointerARB(int size,
int type,
int stride,
long pointer)
size - the number of index values per vertex that are stored in the array. Must be a value between 1 and MAX_VERTEX_UNITS_ARB.type - the data type of the values stored in the array. One of:UNSIGNED_BYTE | UNSIGNED_SHORT | UNSIGNED_INT |
stride - the vertex stride in bytes. If specified as zero, then array elements are stored sequentiallypointer - the matrix index datapublic static void glMatrixIndexPointerARB(int size,
int stride,
java.nio.ByteBuffer pointer)
size - the number of index values per vertex that are stored in the array. Must be a value between 1 and MAX_VERTEX_UNITS_ARB.stride - the vertex stride in bytes. If specified as zero, then array elements are stored sequentiallypointer - the matrix index datapublic static void glMatrixIndexPointerARB(int size,
int stride,
java.nio.ShortBuffer pointer)
size - the number of index values per vertex that are stored in the array. Must be a value between 1 and MAX_VERTEX_UNITS_ARB.stride - the vertex stride in bytes. If specified as zero, then array elements are stored sequentiallypointer - the matrix index datapublic static void glMatrixIndexPointerARB(int size,
int stride,
java.nio.IntBuffer pointer)
size - the number of index values per vertex that are stored in the array. Must be a value between 1 and MAX_VERTEX_UNITS_ARB.stride - the vertex stride in bytes. If specified as zero, then array elements are stored sequentiallypointer - the matrix index datapublic static void glMatrixIndexuivARB(int[] indices)
MatrixIndexuivARBpublic static void glMatrixIndexusvARB(short[] indices)
MatrixIndexusvARBCopyright LWJGL. All Rights Reserved. License terms.