Package org.lwjgl.opengl
Class ARBVertexBlend
- java.lang.Object
-
- org.lwjgl.opengl.ARBVertexBlend
-
public class ARBVertexBlend extends java.lang.Object
Native bindings to the ARB_vertex_blend extension.This extension provides the ability to replace the single modelview transformation with a set of n vertex units. (Where n is constrained to an implementation defined maximum.) Each unit has its own modelview transform matrix. For each unit, there is a current weight associated with the vertex. When this extension is enabled the vertices are transformed by the modelview matrices of all of the enabled units. Afterward, these results are scaled by the weights for the respective units and then summed to create the eye-space vertex. A similar procedure is followed for the normals, except they are transformed by the inverse transpose of the modelview matrices.
-
-
Field Summary
Fields Modifier and Type Field and Description static int
GL_ACTIVE_VERTEX_UNITS_ARB
Accepted by thevalue
parameters of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_CURRENT_WEIGHT_ARB
Accepted by thevalue
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_MAX_VERTEX_UNITS_ARB
Accepted by thevalue
parameters of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_MODELVIEW0_ARB
GL_MODELVIEW1_ARB
GL_MODELVIEW10_ARB
GL_MODELVIEW11_ARB
GL_MODELVIEW12_ARB
GL_MODELVIEW13_ARB
GL_MODELVIEW14_ARB
GL_MODELVIEW15_ARB
GL_MODELVIEW16_ARB
GL_MODELVIEW17_ARB
GL_MODELVIEW18_ARB
GL_MODELVIEW19_ARB
GL_MODELVIEW2_ARB
GL_MODELVIEW20_ARB
GL_MODELVIEW21_ARB
GL_MODELVIEW22_ARB
GL_MODELVIEW23_ARB
GL_MODELVIEW24_ARB
GL_MODELVIEW25_ARB
GL_MODELVIEW26_ARB
GL_MODELVIEW27_ARB
GL_MODELVIEW28_ARB
GL_MODELVIEW29_ARB
GL_MODELVIEW3_ARB
GL_MODELVIEW30_ARB
GL_MODELVIEW31_ARB
GL_MODELVIEW4_ARB
GL_MODELVIEW5_ARB
GL_MODELVIEW6_ARB
GL_MODELVIEW7_ARB
GL_MODELVIEW8_ARB
GL_MODELVIEW9_ARBAccepted by themode
parameter of MatrixMode and by thevalue
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_VERTEX_BLEND_ARB
Accepted by thecap
parameters of Enable and Disable, by thevalue
parameter of IsEnabled, GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_WEIGHT_ARRAY_ARB
Accepted by thecap
parameters of EnableClientState and DisableClientState, by thevalue
parameter of IsEnabled, GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_WEIGHT_ARRAY_POINTER_ARB
Accepted by thepname
parameter of GetPointerv.static int
GL_WEIGHT_ARRAY_SIZE_ARB
GL_WEIGHT_ARRAY_STRIDE_ARB
GL_WEIGHT_ARRAY_TYPE_ARBAccepted by thevalue
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_WEIGHT_SUM_UNITY_ARB
Accepted by thecap
parameters of Enable and Disable, by thevalue
parameter of IsEnabled, GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static void
glVertexBlendARB(int count)
Sets the number of active transformations applied.static void
glWeightbvARB(java.nio.ByteBuffer weights)
Byte version ofWeightfvARB
.static void
glWeightdvARB(double[] weights)
Array version of:WeightdvARB
static void
glWeightdvARB(java.nio.DoubleBuffer weights)
Double version ofWeightfvARB
.static void
glWeightfvARB(float[] weights)
Array version of:WeightfvARB
static void
glWeightfvARB(java.nio.FloatBuffer weights)
Sets the current vertex weights.static void
glWeightivARB(int[] weights)
Array version of:WeightivARB
static void
glWeightivARB(java.nio.IntBuffer weights)
Integer version ofWeightfvARB
.static void
glWeightPointerARB(int size, int type, int stride, java.nio.ByteBuffer pointer)
Specifies the location and organization of a weight array.static void
glWeightPointerARB(int size, int type, int stride, float[] pointer)
Array version of:WeightPointerARB
static void
glWeightPointerARB(int size, int type, int stride, java.nio.FloatBuffer pointer)
Specifies the location and organization of a weight array.static void
glWeightPointerARB(int size, int type, int stride, int[] pointer)
Array version of:WeightPointerARB
static void
glWeightPointerARB(int size, int type, int stride, java.nio.IntBuffer pointer)
Specifies the location and organization of a weight array.static void
glWeightPointerARB(int size, int type, int stride, long pointer)
Specifies the location and organization of a weight array.static void
glWeightPointerARB(int size, int type, int stride, short[] pointer)
Array version of:WeightPointerARB
static void
glWeightPointerARB(int size, int type, int stride, java.nio.ShortBuffer pointer)
Specifies the location and organization of a weight array.static void
glWeightsvARB(short[] weights)
Array version of:WeightsvARB
static void
glWeightsvARB(java.nio.ShortBuffer weights)
Short version ofWeightfvARB
.static void
glWeightubvARB(java.nio.ByteBuffer weights)
Unsigned byte version ofWeightfvARB
.static void
glWeightuivARB(int[] weights)
Array version of:WeightuivARB
static void
glWeightuivARB(java.nio.IntBuffer weights)
Unsigned integer version ofWeightfvARB
.static void
glWeightusvARB(short[] weights)
Array version of:WeightusvARB
static void
glWeightusvARB(java.nio.ShortBuffer weights)
Unsigned short version ofWeightfvARB
.
-
-
-
Field Detail
-
GL_MAX_VERTEX_UNITS_ARB, GL_ACTIVE_VERTEX_UNITS_ARB
Accepted by thevalue
parameters of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_WEIGHT_SUM_UNITY_ARB, GL_VERTEX_BLEND_ARB
Accepted by thecap
parameters of Enable and Disable, by thevalue
parameter of IsEnabled, GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_MODELVIEW0_ARB, GL_MODELVIEW1_ARB, GL_MODELVIEW2_ARB, GL_MODELVIEW3_ARB, GL_MODELVIEW4_ARB, GL_MODELVIEW5_ARB, GL_MODELVIEW6_ARB, GL_MODELVIEW7_ARB, GL_MODELVIEW8_ARB, GL_MODELVIEW9_ARB, GL_MODELVIEW10_ARB, GL_MODELVIEW11_ARB, GL_MODELVIEW12_ARB, GL_MODELVIEW13_ARB, GL_MODELVIEW14_ARB, GL_MODELVIEW15_ARB, GL_MODELVIEW16_ARB, GL_MODELVIEW17_ARB, GL_MODELVIEW18_ARB, GL_MODELVIEW19_ARB, GL_MODELVIEW20_ARB, GL_MODELVIEW21_ARB, GL_MODELVIEW22_ARB, GL_MODELVIEW23_ARB, GL_MODELVIEW24_ARB, GL_MODELVIEW25_ARB, GL_MODELVIEW26_ARB, GL_MODELVIEW27_ARB, GL_MODELVIEW28_ARB, GL_MODELVIEW29_ARB, GL_MODELVIEW30_ARB, GL_MODELVIEW31_ARB
Accepted by themode
parameter of MatrixMode and by thevalue
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_CURRENT_WEIGHT_ARB, GL_WEIGHT_ARRAY_TYPE_ARB, GL_WEIGHT_ARRAY_STRIDE_ARB, GL_WEIGHT_ARRAY_SIZE_ARB
Accepted by thevalue
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_WEIGHT_ARRAY_POINTER_ARB
Accepted by thepname
parameter of GetPointerv.
-
GL_WEIGHT_ARRAY_ARB
Accepted by thecap
parameters of EnableClientState and DisableClientState, by thevalue
parameter of IsEnabled, GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
-
Method Detail
-
glWeightfvARB
public static void glWeightfvARB(java.nio.FloatBuffer weights)
Sets the current vertex weights.- Parameters:
weights
- the vertex weights
-
glWeightbvARB
public static void glWeightbvARB(java.nio.ByteBuffer weights)
Byte version ofWeightfvARB
.- Parameters:
weights
- the vertex weights
-
glWeightubvARB
public static void glWeightubvARB(java.nio.ByteBuffer weights)
Unsigned byte version ofWeightfvARB
.- Parameters:
weights
- the vertex weights
-
glWeightsvARB
public static void glWeightsvARB(java.nio.ShortBuffer weights)
Short version ofWeightfvARB
.- Parameters:
weights
- the vertex weights
-
glWeightusvARB
public static void glWeightusvARB(java.nio.ShortBuffer weights)
Unsigned short version ofWeightfvARB
.- Parameters:
weights
- the vertex weights
-
glWeightivARB
public static void glWeightivARB(java.nio.IntBuffer weights)
Integer version ofWeightfvARB
.- Parameters:
weights
- the vertex weights
-
glWeightuivARB
public static void glWeightuivARB(java.nio.IntBuffer weights)
Unsigned integer version ofWeightfvARB
.- Parameters:
weights
- the vertex weights
-
glWeightdvARB
public static void glWeightdvARB(java.nio.DoubleBuffer weights)
Double version ofWeightfvARB
.- Parameters:
weights
- the vertex weights
-
glWeightPointerARB
public static void glWeightPointerARB(int size, int type, int stride, java.nio.ByteBuffer pointer) public static void glWeightPointerARB(int size, int type, int stride, long pointer) public static void glWeightPointerARB(int size, int type, int stride, java.nio.ShortBuffer pointer) public static void glWeightPointerARB(int size, int type, int stride, java.nio.IntBuffer pointer) public static void glWeightPointerARB(int size, int type, int stride, java.nio.FloatBuffer pointer)
Specifies the location and organization of a weight array.- Parameters:
size
- the number of 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:BYTE
UNSIGNED_BYTE
SHORT
UNSIGNED_SHORT
INT
UNSIGNED_INT
FLOAT
DOUBLE
stride
- the vertex stride in bytes. If specified as zero, then array elements are stored sequentiallypointer
- the weight data
-
glVertexBlendARB
public static void glVertexBlendARB(int count)
Sets the number of active transformations applied.- Parameters:
count
- the number of transformations to blend
-
glWeightfvARB
public static void glWeightfvARB(float[] weights)
Array version of:WeightfvARB
-
glWeightsvARB
public static void glWeightsvARB(short[] weights)
Array version of:WeightsvARB
-
glWeightusvARB
public static void glWeightusvARB(short[] weights)
Array version of:WeightusvARB
-
glWeightivARB
public static void glWeightivARB(int[] weights)
Array version of:WeightivARB
-
glWeightuivARB
public static void glWeightuivARB(int[] weights)
Array version of:WeightuivARB
-
glWeightdvARB
public static void glWeightdvARB(double[] weights)
Array version of:WeightdvARB
-
glWeightPointerARB
public static void glWeightPointerARB(int size, int type, int stride, short[] pointer) public static void glWeightPointerARB(int size, int type, int stride, int[] pointer) public static void glWeightPointerARB(int size, int type, int stride, float[] pointer)
Array version of:WeightPointerARB
-
-