Class ARBMatrixPalette
- java.lang.Object
-
- org.lwjgl.opengl.ARBMatrixPalette
-
public class ARBMatrixPalette extends java.lang.ObjectNative bindings to the ARB_matrix_palette extension.This extension extends the abilities of
ARBVertexBlendto 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 (betweenBeginandEnd).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.
-
-
Field Summary
Fields Modifier and Type Field and Description static intGL_CURRENT_MATRIX_INDEX_ARBAccepted by thepnameparameter of GetFloatv.static intGL_CURRENT_PALETTE_MATRIX_ARBAccepted by thepnameparameters of GetIntegerv, GetFloatv, and GetDoublev.static intGL_MATRIX_INDEX_ARRAY_ARBAccepted by thecapparameters of EnableClientState and DisableClientState and by thepnameparameter of IsEnabled.static intGL_MATRIX_INDEX_ARRAY_POINTER_ARBAccepted by thepnameparameter of GetPointerv.static intGL_MATRIX_INDEX_ARRAY_SIZE_ARB
GL_MATRIX_INDEX_ARRAY_STRIDE_ARB
GL_MATRIX_INDEX_ARRAY_TYPE_ARBAccepted by thepnameparameter of GetIntegerv.static intGL_MATRIX_PALETTE_ARBAccepted by thepnameparameters of GetFloatv, GetDoublev, and IsEnabled, by themodeparameter of MatrixMode, and by thecapparameters of Enable and Disable.static intGL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB
GL_MAX_PALETTE_MATRICES_ARBAccepted by thepnameparameters of GetIntegerv, GetFloatv, and GetDoublev.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidglCurrentPaletteMatrixARB(int index)Defines which of the palette's matrices is affected by subsequent matrix operations when the current matrix mode isMATRIX_PALETTE_ARB,static voidglMatrixIndexPointerARB(int size, int stride, java.nio.ByteBuffer pointer)static voidglMatrixIndexPointerARB(int size, int stride, java.nio.IntBuffer pointer)static voidglMatrixIndexPointerARB(int size, int type, int stride, java.nio.ByteBuffer pointer)static voidglMatrixIndexPointerARB(int size, int type, int stride, long pointer)static voidglMatrixIndexPointerARB(int size, int stride, java.nio.ShortBuffer pointer)static voidglMatrixIndexubvARB(java.nio.ByteBuffer indices)Byte version ofMatrixIndexuivARB.static voidglMatrixIndexuivARB(int[] indices)Array version of:MatrixIndexuivARBstatic voidglMatrixIndexuivARB(java.nio.IntBuffer indices)Sets the current matrix indices.static voidglMatrixIndexusvARB(short[] indices)Array version of:MatrixIndexusvARBstatic voidglMatrixIndexusvARB(java.nio.ShortBuffer indices)Short version ofMatrixIndexuivARB.
-
-
-
Field Detail
-
GL_MATRIX_PALETTE_ARB
Accepted by thepnameparameters of GetFloatv, GetDoublev, and IsEnabled, by themodeparameter of MatrixMode, and by thecapparameters of Enable and Disable.
-
GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB, GL_MAX_PALETTE_MATRICES_ARB, GL_CURRENT_PALETTE_MATRIX_ARB
Accepted by thepnameparameters of GetIntegerv, GetFloatv, and GetDoublev.
-
GL_MATRIX_INDEX_ARRAY_ARB
Accepted by thecapparameters of EnableClientState and DisableClientState and by thepnameparameter of IsEnabled.
-
GL_CURRENT_MATRIX_INDEX_ARB
Accepted by thepnameparameter of GetFloatv.
-
GL_MATRIX_INDEX_ARRAY_SIZE_ARB, GL_MATRIX_INDEX_ARRAY_TYPE_ARB, GL_MATRIX_INDEX_ARRAY_STRIDE_ARB
Accepted by thepnameparameter of GetIntegerv.
-
GL_MATRIX_INDEX_ARRAY_POINTER_ARB
Accepted by thepnameparameter of GetPointerv.
-
-
Method Detail
-
glCurrentPaletteMatrixARB
public static void glCurrentPaletteMatrixARB(int index)
Defines which of the palette's matrices is affected by subsequent matrix operations when the current matrix mode isMATRIX_PALETTE_ARB,- Parameters:
index- the current matrix index. Must be a value between 0 andMAX_PALETTE_MATRICES_ARB.
-
glMatrixIndexuivARB
public static void glMatrixIndexuivARB(java.nio.IntBuffer indices)
Sets the current matrix indices.- Parameters:
indices- the matrix index values
-
glMatrixIndexubvARB
public static void glMatrixIndexubvARB(java.nio.ByteBuffer indices)
Byte version ofMatrixIndexuivARB.- Parameters:
indices- the matrix index values
-
glMatrixIndexusvARB
public static void glMatrixIndexusvARB(java.nio.ShortBuffer indices)
Short version ofMatrixIndexuivARB.- Parameters:
indices- the matrix index values
-
glMatrixIndexPointerARB
public static void glMatrixIndexPointerARB(int size, int type, int stride, java.nio.ByteBuffer pointer) public static void glMatrixIndexPointerARB(int size, int type, int stride, long pointer)- Parameters:
size- the number of index values per vertex that are stored in the array. Must be a value between 1 andMAX_VERTEX_UNITS_ARB.type- the data type of the values stored in the array. One of:UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INTstride- the vertex stride in bytes. If specified as zero, then array elements are stored sequentiallypointer- the matrix index data
-
glMatrixIndexPointerARB
public static void glMatrixIndexPointerARB(int size, int stride, java.nio.ByteBuffer pointer) public static void glMatrixIndexPointerARB(int size, int stride, java.nio.ShortBuffer pointer) public static void glMatrixIndexPointerARB(int size, int stride, java.nio.IntBuffer pointer)- Parameters:
size- the number of index values per vertex that are stored in the array. Must be a value between 1 andMAX_VERTEX_UNITS_ARB.stride- the vertex stride in bytes. If specified as zero, then array elements are stored sequentiallypointer- the matrix index data
-
glMatrixIndexuivARB
public static void glMatrixIndexuivARB(int[] indices)
Array version of:MatrixIndexuivARB
-
glMatrixIndexusvARB
public static void glMatrixIndexusvARB(short[] indices)
Array version of:MatrixIndexusvARB
-
-