public class ARBTransposeMatrix
extends java.lang.Object
New functions and tokens are added allowing application matrices stored in row major order rather than column major order to be transferred to the
OpenGL implementation. This allows an application to use standard C-language 2-dimensional arrays (m[row][col]) and have the array indices match the
expected matrix row and column indexes. These arrays are referred to as transpose matrices since they are the transpose of the standard matrices passed
to OpenGL.
This extension adds an interface for transfering data to and from the OpenGL pipeline, it does not change any OpenGL processing or imply any changes in state representation.
Promoted to core in OpenGL 1.3.
| Modifier and Type | Field and Description |
|---|---|
static int |
GL_TRANSPOSE_COLOR_MATRIX_ARB
Accepted by the
pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. |
static int |
GL_TRANSPOSE_MODELVIEW_MATRIX_ARB
Accepted by the
pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. |
static int |
GL_TRANSPOSE_PROJECTION_MATRIX_ARB
Accepted by the
pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. |
static int |
GL_TRANSPOSE_TEXTURE_MATRIX_ARB
Accepted by the
pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. |
| Modifier and Type | Method and Description |
|---|---|
static void |
glLoadTransposeMatrixdARB(double[] m)
Array version of:
LoadTransposeMatrixdARB |
static void |
glLoadTransposeMatrixdARB(java.nio.DoubleBuffer m)
Double version of
LoadTransposeMatrixfARB. |
static void |
glLoadTransposeMatrixfARB(float[] m)
Array version of:
LoadTransposeMatrixfARB |
static void |
glLoadTransposeMatrixfARB(java.nio.FloatBuffer m)
Sets the current matrix to a 4 × 4 matrix in row-major order.
|
static void |
glMultTransposeMatrixdARB(double[] m)
Array version of:
MultTransposeMatrixdARB |
static void |
glMultTransposeMatrixdARB(java.nio.DoubleBuffer m)
Double version of
MultTransposeMatrixfARB. |
static void |
glMultTransposeMatrixfARB(float[] m)
Array version of:
MultTransposeMatrixfARB |
static void |
glMultTransposeMatrixfARB(java.nio.FloatBuffer m)
Multiplies the current matrix with a 4 × 4 matrix in row-major order.
|
static void |
nglLoadTransposeMatrixdARB(long m)
Unsafe version of:
LoadTransposeMatrixdARB |
static void |
nglLoadTransposeMatrixfARB(long m)
Unsafe version of:
LoadTransposeMatrixfARB |
static void |
nglMultTransposeMatrixdARB(long m)
Unsafe version of:
MultTransposeMatrixdARB |
static void |
nglMultTransposeMatrixfARB(long m)
Unsafe version of:
MultTransposeMatrixfARB |
public static final int GL_TRANSPOSE_MODELVIEW_MATRIX_ARB
pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.public static final int GL_TRANSPOSE_PROJECTION_MATRIX_ARB
pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.public static final int GL_TRANSPOSE_TEXTURE_MATRIX_ARB
pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.public static final int GL_TRANSPOSE_COLOR_MATRIX_ARB
pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.public static void nglLoadTransposeMatrixfARB(long m)
LoadTransposeMatrixfARBpublic static void glLoadTransposeMatrixfARB(java.nio.FloatBuffer m)
The matrix is stored as 16 consecutive values, i.e. as:
| a1 | a2 | a3 | a4 |
| a5 | a6 | a7 | a8 |
| a9 | a10 | a11 | a12 |
| a13 | a14 | a15 | a16 |
m - the matrix datapublic static void nglLoadTransposeMatrixdARB(long m)
LoadTransposeMatrixdARBpublic static void glLoadTransposeMatrixdARB(java.nio.DoubleBuffer m)
LoadTransposeMatrixfARB.m - the matrix datapublic static void nglMultTransposeMatrixfARB(long m)
MultTransposeMatrixfARBpublic static void glMultTransposeMatrixfARB(java.nio.FloatBuffer m)
LoadTransposeMatrixfARB for details.m - the matrix datapublic static void nglMultTransposeMatrixdARB(long m)
MultTransposeMatrixdARBpublic static void glMultTransposeMatrixdARB(java.nio.DoubleBuffer m)
MultTransposeMatrixfARB.m - the matrix datapublic static void glLoadTransposeMatrixfARB(float[] m)
LoadTransposeMatrixfARBpublic static void glLoadTransposeMatrixdARB(double[] m)
LoadTransposeMatrixdARBpublic static void glMultTransposeMatrixfARB(float[] m)
MultTransposeMatrixfARBpublic static void glMultTransposeMatrixdARB(double[] m)
MultTransposeMatrixdARBCopyright LWJGL. All Rights Reserved. License terms.