Package org.lwjgl.opengl
Class GL21
- java.lang.Object
-
- org.lwjgl.opengl.GL21
-
public class GL21 extends java.lang.Object
The core OpenGL 2.1 functionality. OpenGL 2.1 implementations must support at least revision 1.20 of the OpenGL Shading Language.Extensions promoted to core in this release:
-
-
Field Summary
Fields Modifier and Type Field and Description static int
GL_COMPRESSED_SLUMINANCE
GL_COMPRESSED_SLUMINANCE_ALPHA
GL_COMPRESSED_SRGB
GL_COMPRESSED_SRGB_ALPHAAccepted by theinternalformat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D.static int
GL_CURRENT_RASTER_SECONDARY_COLOR
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_FLOAT_MAT2x3
GL_FLOAT_MAT2x4
GL_FLOAT_MAT3x2
GL_FLOAT_MAT3x4
GL_FLOAT_MAT4x2
GL_FLOAT_MAT4x3Returned by thetype
parameter of GetActiveUniform.static int
GL_PIXEL_PACK_BUFFER
Accepted by thetarget
parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, GetBufferParameteriv, and GetBufferPointerv.static int
GL_PIXEL_PACK_BUFFER_BINDING
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_PIXEL_UNPACK_BUFFER
Accepted by thetarget
parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, GetBufferParameteriv, and GetBufferPointerv.static int
GL_PIXEL_UNPACK_BUFFER_BINDING
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_SLUMINANCE
GL_SLUMINANCE_ALPHA
GL_SLUMINANCE8
GL_SLUMINANCE8_ALPHA8
GL_SRGB
GL_SRGB_ALPHA
GL_SRGB8
GL_SRGB8_ALPHA8Accepted by theinternalformat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static void
glUniformMatrix2x3fv(int location, boolean transpose, float[] value)
static void
glUniformMatrix2x3fv(int location, boolean transpose, java.nio.FloatBuffer value)
static void
glUniformMatrix2x4fv(int location, boolean transpose, float[] value)
static void
glUniformMatrix2x4fv(int location, boolean transpose, java.nio.FloatBuffer value)
static void
glUniformMatrix3x2fv(int location, boolean transpose, float[] value)
static void
glUniformMatrix3x2fv(int location, boolean transpose, java.nio.FloatBuffer value)
static void
glUniformMatrix3x4fv(int location, boolean transpose, float[] value)
static void
glUniformMatrix3x4fv(int location, boolean transpose, java.nio.FloatBuffer value)
static void
glUniformMatrix4x2fv(int location, boolean transpose, float[] value)
static void
glUniformMatrix4x2fv(int location, boolean transpose, java.nio.FloatBuffer value)
static void
glUniformMatrix4x3fv(int location, boolean transpose, float[] value)
static void
glUniformMatrix4x3fv(int location, boolean transpose, java.nio.FloatBuffer value)
-
-
-
Field Detail
-
GL_CURRENT_RASTER_SECONDARY_COLOR
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_FLOAT_MAT2x3, GL_FLOAT_MAT2x4, GL_FLOAT_MAT3x2, GL_FLOAT_MAT3x4, GL_FLOAT_MAT4x2, GL_FLOAT_MAT4x3
Returned by thetype
parameter of GetActiveUniform.
-
GL_PIXEL_PACK_BUFFER, GL_PIXEL_UNPACK_BUFFER
Accepted by thetarget
parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, GetBufferParameteriv, and GetBufferPointerv.
-
GL_PIXEL_PACK_BUFFER_BINDING, GL_PIXEL_UNPACK_BUFFER_BINDING
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, GL_SRGB8_ALPHA8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SLUMINANCE, GL_SLUMINANCE8, GL_COMPRESSED_SRGB, GL_COMPRESSED_SRGB_ALPHA, GL_COMPRESSED_SLUMINANCE, GL_COMPRESSED_SLUMINANCE_ALPHA
Accepted by theinternalformat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D.
-
-
Method Detail
-
glUniformMatrix2x3fv
public static void glUniformMatrix2x3fv(int location, boolean transpose, java.nio.FloatBuffer value)
Specifies the value of a single mat2x3 uniform variable or a mat2x3 uniform variable array for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedtranspose
- whether to transpose the matrix as the values are loaded into the uniform variablevalue
- a pointer to an array ofcount
values that will be used to update the specified uniform variable
-
glUniformMatrix3x2fv
public static void glUniformMatrix3x2fv(int location, boolean transpose, java.nio.FloatBuffer value)
Specifies the value of a single mat3x2 uniform variable or a mat3x2 uniform variable array for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedtranspose
- whether to transpose the matrix as the values are loaded into the uniform variablevalue
- a pointer to an array ofcount
values that will be used to update the specified uniform variable
-
glUniformMatrix2x4fv
public static void glUniformMatrix2x4fv(int location, boolean transpose, java.nio.FloatBuffer value)
Specifies the value of a single mat2x4 uniform variable or a mat2x4 uniform variable array for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedtranspose
- whether to transpose the matrix as the values are loaded into the uniform variablevalue
- a pointer to an array ofcount
values that will be used to update the specified uniform variable
-
glUniformMatrix4x2fv
public static void glUniformMatrix4x2fv(int location, boolean transpose, java.nio.FloatBuffer value)
Specifies the value of a single mat4x2 uniform variable or a mat4x2 uniform variable array for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedtranspose
- whether to transpose the matrix as the values are loaded into the uniform variablevalue
- a pointer to an array ofcount
values that will be used to update the specified uniform variable
-
glUniformMatrix3x4fv
public static void glUniformMatrix3x4fv(int location, boolean transpose, java.nio.FloatBuffer value)
Specifies the value of a single mat3x4 uniform variable or a mat3x4 uniform variable array for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedtranspose
- whether to transpose the matrix as the values are loaded into the uniform variablevalue
- a pointer to an array ofcount
values that will be used to update the specified uniform variable
-
glUniformMatrix4x3fv
public static void glUniformMatrix4x3fv(int location, boolean transpose, java.nio.FloatBuffer value)
Specifies the value of a single mat4x3 uniform variable or a mat4x3 uniform variable array for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedtranspose
- whether to transpose the matrix as the values are loaded into the uniform variablevalue
- a pointer to an array ofcount
values that will be used to update the specified uniform variable
-
glUniformMatrix2x3fv
public static void glUniformMatrix2x3fv(int location, boolean transpose, float[] value)
Array version of:UniformMatrix2x3fv
-
glUniformMatrix3x2fv
public static void glUniformMatrix3x2fv(int location, boolean transpose, float[] value)
Array version of:UniformMatrix3x2fv
-
glUniformMatrix2x4fv
public static void glUniformMatrix2x4fv(int location, boolean transpose, float[] value)
Array version of:UniformMatrix2x4fv
-
glUniformMatrix4x2fv
public static void glUniformMatrix4x2fv(int location, boolean transpose, float[] value)
Array version of:UniformMatrix4x2fv
-
glUniformMatrix3x4fv
public static void glUniformMatrix3x4fv(int location, boolean transpose, float[] value)
Array version of:UniformMatrix3x4fv
-
glUniformMatrix4x3fv
public static void glUniformMatrix4x3fv(int location, boolean transpose, float[] value)
Array version of:UniformMatrix4x3fv
-
-