Class GL20
- java.lang.Object
-
- org.lwjgl.opengl.GL20
-
public class GL20 extends java.lang.Object
The core OpenGL 2.0 functionality.Extensions promoted to core in this release:
-
-
Field Summary
Fields Modifier and Type Field and Description static int
GL_ACTIVE_ATTRIBUTE_MAX_LENGTH
GL_ACTIVE_ATTRIBUTES
GL_ACTIVE_UNIFORM_MAX_LENGTH
GL_ACTIVE_UNIFORMS
GL_ATTACHED_SHADERSAccepted by thepname
parameter of GetShaderiv.static int
GL_BLEND_EQUATION_ALPHA
GL_BLEND_EQUATION_RGBAccepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_BOOL
GL_BOOL_VEC2
GL_BOOL_VEC3
GL_BOOL_VEC4Returned by thetype
parameter of GetActiveUniform.static int
GL_COMPILE_STATUS
Accepted by thepname
parameter of GetShaderiv.static int
GL_COORD_REPLACE
When thetarget
parameter of TexEnvf, TexEnvfv, TexEnvi, TexEnviv, GetTexEnvfv, or GetTexEnviv is POINT_SPRITE, then the value ofpname
may be.static int
GL_CURRENT_PROGRAM
Accepted by thepname
parameter of GetInteger.static int
GL_CURRENT_VERTEX_ATTRIB
Accepted by thepname
parameter of GetVertexAttrib{dfi}v.static int
GL_DELETE_STATUS
Accepted by thepname
parameter of GetShaderiv.static int
GL_DRAW_BUFFER0
GL_DRAW_BUFFER1
GL_DRAW_BUFFER10
GL_DRAW_BUFFER11
GL_DRAW_BUFFER12
GL_DRAW_BUFFER13
GL_DRAW_BUFFER14
GL_DRAW_BUFFER15
GL_DRAW_BUFFER2
GL_DRAW_BUFFER3
GL_DRAW_BUFFER4
GL_DRAW_BUFFER5
GL_DRAW_BUFFER6
GL_DRAW_BUFFER7
GL_DRAW_BUFFER8
GL_DRAW_BUFFER9Accepted by thepname
parameters of GetIntegerv, GetFloatv, and GetDoublev.static int
GL_FLOAT_MAT2
GL_FLOAT_MAT3
GL_FLOAT_MAT4
GL_FLOAT_VEC2
GL_FLOAT_VEC3
GL_FLOAT_VEC4Returned by thetype
parameter of GetActiveUniform.static int
GL_FRAGMENT_SHADER
Accepted by thetype
argument of CreateShader and returned by theparams
parameter of GetShaderiv.static int
GL_FRAGMENT_SHADER_DERIVATIVE_HINT
Accepted by thetarget
parameter of Hint and thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_INFO_LOG_LENGTH
Accepted by thepname
parameter of GetShaderiv.static int
GL_INT_VEC2
GL_INT_VEC3
GL_INT_VEC4Returned by thetype
parameter of GetActiveUniform.static int
GL_LINK_STATUS
Accepted by thepname
parameter of GetShaderiv.static int
GL_LOWER_LEFT
Accepted by theparam
parameter of PointParameter{if}v.static int
GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_MAX_DRAW_BUFFERS
Accepted by thepname
parameters of GetIntegerv, GetFloatv, and GetDoublev.static int
GL_MAX_FRAGMENT_UNIFORM_COMPONENTS
GL_MAX_TEXTURE_COORDS
GL_MAX_TEXTURE_IMAGE_UNITS
GL_MAX_VARYING_FLOATS
GL_MAX_VERTEX_ATTRIBS
GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS
GL_MAX_VERTEX_UNIFORM_COMPONENTSAccepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_POINT_SPRITE
Accepted by thecap
parameter of Enable, Disable, and IsEnabled, by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev, and by thetarget
parameter of TexEnvi, TexEnviv, TexEnvf, TexEnvfv, GetTexEnviv, and GetTexEnvfv.static int
GL_POINT_SPRITE_COORD_ORIGIN
Accepted by thepname
parameter of PointParameter{if}v.static int
GL_SAMPLER_1D
GL_SAMPLER_1D_SHADOW
GL_SAMPLER_2D
GL_SAMPLER_2D_SHADOW
GL_SAMPLER_3D
GL_SAMPLER_CUBEReturned by thetype
parameter of GetActiveUniform.static int
GL_SHADER_SOURCE_LENGTH
GL_SHADER_TYPEAccepted by thepname
parameter of GetShaderiv.static int
GL_SHADING_LANGUAGE_VERSION
Accepted by thename
parameter of GetString.static int
GL_STENCIL_BACK_FAIL
GL_STENCIL_BACK_FUNC
GL_STENCIL_BACK_PASS_DEPTH_FAIL
GL_STENCIL_BACK_PASS_DEPTH_PASS
GL_STENCIL_BACK_REF
GL_STENCIL_BACK_VALUE_MASK
GL_STENCIL_BACK_WRITEMASKAccepted by thepname
parameter of GetIntegerv.static int
GL_UPPER_LEFT
Accepted by theparam
parameter of PointParameter{if}v.static int
GL_VALIDATE_STATUS
Accepted by thepname
parameter of GetShaderiv.static int
GL_VERTEX_ATTRIB_ARRAY_ENABLED
GL_VERTEX_ATTRIB_ARRAY_NORMALIZEDAccepted by thepname
parameter of GetVertexAttrib{dfi}v.static int
GL_VERTEX_ATTRIB_ARRAY_POINTER
Accepted by thepname
parameter of GetVertexAttribPointerv.static int
GL_VERTEX_ATTRIB_ARRAY_SIZE
GL_VERTEX_ATTRIB_ARRAY_STRIDE
GL_VERTEX_ATTRIB_ARRAY_TYPEAccepted by thepname
parameter of GetVertexAttrib{dfi}v.static int
GL_VERTEX_PROGRAM_POINT_SIZE
GL_VERTEX_PROGRAM_TWO_SIDEAccepted by thecap
parameter of Disable, Enable, and IsEnabled, and by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_VERTEX_SHADER
Accepted by thetype
argument of CreateShader and returned by theparams
parameter of GetShaderiv.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static void
glAttachShader(int program, int shader)
static void
glBindAttribLocation(int program, int index, java.nio.ByteBuffer name)
static void
glBindAttribLocation(int program, int index, java.lang.CharSequence name)
static void
glBlendEquationSeparate(int modeRGB, int modeAlpha)
static void
glCompileShader(int shader)
static int
glCreateProgram()
static int
glCreateShader(int type)
static void
glDeleteProgram(int program)
static void
glDeleteShader(int shader)
static void
glDetachShader(int program, int shader)
static void
glDisableVertexAttribArray(int index)
static void
glDrawBuffers(int buf)
static void
glDrawBuffers(int[] bufs)
static void
glDrawBuffers(java.nio.IntBuffer bufs)
static void
glEnableVertexAttribArray(int index)
static void
glGetActiveAttrib(int program, int index, int[] length, int[] size, int[] type, java.nio.ByteBuffer name)
static java.lang.String
glGetActiveAttrib(int program, int index, java.nio.IntBuffer size, java.nio.IntBuffer type)
static void
glGetActiveAttrib(int program, int index, java.nio.IntBuffer length, java.nio.IntBuffer size, java.nio.IntBuffer type, java.nio.ByteBuffer name)
static java.lang.String
glGetActiveAttrib(int program, int index, int maxLength, java.nio.IntBuffer size, java.nio.IntBuffer type)
static void
glGetActiveUniform(int program, int index, int[] length, int[] size, int[] type, java.nio.ByteBuffer name)
static java.lang.String
glGetActiveUniform(int program, int index, java.nio.IntBuffer size, java.nio.IntBuffer type)
static void
glGetActiveUniform(int program, int index, java.nio.IntBuffer length, java.nio.IntBuffer size, java.nio.IntBuffer type, java.nio.ByteBuffer name)
static java.lang.String
glGetActiveUniform(int program, int index, int maxLength, java.nio.IntBuffer size, java.nio.IntBuffer type)
static void
glGetAttachedShaders(int program, int[] count, int[] shaders)
static void
glGetAttachedShaders(int program, java.nio.IntBuffer count, java.nio.IntBuffer shaders)
static int
glGetAttribLocation(int program, java.nio.ByteBuffer name)
static int
glGetAttribLocation(int program, java.lang.CharSequence name)
static int
glGetProgrami(int program, int pname)
static java.lang.String
glGetProgramInfoLog(int program)
static java.lang.String
glGetProgramInfoLog(int program, int maxLength)
static void
glGetProgramInfoLog(int program, int[] length, java.nio.ByteBuffer infoLog)
static void
glGetProgramInfoLog(int program, java.nio.IntBuffer length, java.nio.ByteBuffer infoLog)
static void
glGetProgramiv(int program, int pname, int[] params)
static void
glGetProgramiv(int program, int pname, java.nio.IntBuffer params)
static int
glGetShaderi(int shader, int pname)
static java.lang.String
glGetShaderInfoLog(int shader)
static java.lang.String
glGetShaderInfoLog(int shader, int maxLength)
static void
glGetShaderInfoLog(int shader, int[] length, java.nio.ByteBuffer infoLog)
static void
glGetShaderInfoLog(int shader, java.nio.IntBuffer length, java.nio.ByteBuffer infoLog)
static void
glGetShaderiv(int shader, int pname, int[] params)
static void
glGetShaderiv(int shader, int pname, java.nio.IntBuffer params)
static java.lang.String
glGetShaderSource(int shader)
static java.lang.String
glGetShaderSource(int shader, int maxLength)
static void
glGetShaderSource(int shader, int[] length, java.nio.ByteBuffer source)
static void
glGetShaderSource(int shader, java.nio.IntBuffer length, java.nio.ByteBuffer source)
static float
glGetUniformf(int program, int location)
static void
glGetUniformfv(int program, int location, float[] params)
static void
glGetUniformfv(int program, int location, java.nio.FloatBuffer params)
static int
glGetUniformi(int program, int location)
static void
glGetUniformiv(int program, int location, int[] params)
static void
glGetUniformiv(int program, int location, java.nio.IntBuffer params)
static int
glGetUniformLocation(int program, java.nio.ByteBuffer name)
static int
glGetUniformLocation(int program, java.lang.CharSequence name)
static void
glGetVertexAttribdv(int index, int pname, double[] params)
static void
glGetVertexAttribdv(int index, int pname, java.nio.DoubleBuffer params)
static void
glGetVertexAttribfv(int index, int pname, float[] params)
static void
glGetVertexAttribfv(int index, int pname, java.nio.FloatBuffer params)
static int
glGetVertexAttribi(int index, int pname)
static void
glGetVertexAttribiv(int index, int pname, int[] params)
static void
glGetVertexAttribiv(int index, int pname, java.nio.IntBuffer params)
static long
glGetVertexAttribPointer(int index, int pname)
static void
glGetVertexAttribPointerv(int index, int pname, org.lwjgl.PointerBuffer pointer)
static boolean
glIsProgram(int program)
static boolean
glIsShader(int shader)
static void
glLinkProgram(int program)
static void
glShaderSource(int shader, java.lang.CharSequence... strings)
static void
glShaderSource(int shader, java.lang.CharSequence string)
static void
glShaderSource(int shader, org.lwjgl.PointerBuffer strings, int[] length)
static void
glShaderSource(int shader, org.lwjgl.PointerBuffer strings, java.nio.IntBuffer length)
static void
glStencilFuncSeparate(int face, int func, int ref, int mask)
static void
glStencilMaskSeparate(int face, int mask)
static void
glStencilOpSeparate(int face, int sfail, int dpfail, int dppass)
static void
glUniform1f(int location, float v0)
static void
glUniform1fv(int location, float[] value)
static void
glUniform1fv(int location, java.nio.FloatBuffer value)
static void
glUniform1i(int location, int v0)
static void
glUniform1iv(int location, int[] value)
static void
glUniform1iv(int location, java.nio.IntBuffer value)
static void
glUniform2f(int location, float v0, float v1)
static void
glUniform2fv(int location, float[] value)
static void
glUniform2fv(int location, java.nio.FloatBuffer value)
static void
glUniform2i(int location, int v0, int v1)
static void
glUniform2iv(int location, int[] value)
static void
glUniform2iv(int location, java.nio.IntBuffer value)
static void
glUniform3f(int location, float v0, float v1, float v2)
static void
glUniform3fv(int location, float[] value)
static void
glUniform3fv(int location, java.nio.FloatBuffer value)
static void
glUniform3i(int location, int v0, int v1, int v2)
static void
glUniform3iv(int location, int[] value)
static void
glUniform3iv(int location, java.nio.IntBuffer value)
static void
glUniform4f(int location, float v0, float v1, float v2, float v3)
static void
glUniform4fv(int location, float[] value)
static void
glUniform4fv(int location, java.nio.FloatBuffer value)
static void
glUniform4i(int location, int v0, int v1, int v2, int v3)
static void
glUniform4iv(int location, int[] value)
static void
glUniform4iv(int location, java.nio.IntBuffer value)
static void
glUniformMatrix2fv(int location, boolean transpose, float[] value)
static void
glUniformMatrix2fv(int location, boolean transpose, java.nio.FloatBuffer value)
static void
glUniformMatrix3fv(int location, boolean transpose, float[] value)
static void
glUniformMatrix3fv(int location, boolean transpose, java.nio.FloatBuffer value)
static void
glUniformMatrix4fv(int location, boolean transpose, float[] value)
static void
glUniformMatrix4fv(int location, boolean transpose, java.nio.FloatBuffer value)
static void
glUseProgram(int program)
static void
glValidateProgram(int program)
static void
glVertexAttrib1d(int index, double v0)
static void
glVertexAttrib1dv(int index, double[] v)
static void
glVertexAttrib1dv(int index, java.nio.DoubleBuffer v)
static void
glVertexAttrib1f(int index, float v0)
static void
glVertexAttrib1fv(int index, float[] v)
static void
glVertexAttrib1fv(int index, java.nio.FloatBuffer v)
static void
glVertexAttrib1s(int index, short v0)
static void
glVertexAttrib1sv(int index, short[] v)
static void
glVertexAttrib1sv(int index, java.nio.ShortBuffer v)
static void
glVertexAttrib2d(int index, double v0, double v1)
static void
glVertexAttrib2dv(int index, double[] v)
static void
glVertexAttrib2dv(int index, java.nio.DoubleBuffer v)
static void
glVertexAttrib2f(int index, float v0, float v1)
static void
glVertexAttrib2fv(int index, float[] v)
static void
glVertexAttrib2fv(int index, java.nio.FloatBuffer v)
static void
glVertexAttrib2s(int index, short v0, short v1)
static void
glVertexAttrib2sv(int index, short[] v)
static void
glVertexAttrib2sv(int index, java.nio.ShortBuffer v)
static void
glVertexAttrib3d(int index, double v0, double v1, double v2)
static void
glVertexAttrib3dv(int index, double[] v)
static void
glVertexAttrib3dv(int index, java.nio.DoubleBuffer v)
static void
glVertexAttrib3f(int index, float v0, float v1, float v2)
static void
glVertexAttrib3fv(int index, float[] v)
static void
glVertexAttrib3fv(int index, java.nio.FloatBuffer v)
static void
glVertexAttrib3s(int index, short v0, short v1, short v2)
static void
glVertexAttrib3sv(int index, short[] v)
static void
glVertexAttrib3sv(int index, java.nio.ShortBuffer v)
static void
glVertexAttrib4bv(int index, java.nio.ByteBuffer v)
static void
glVertexAttrib4d(int index, double v0, double v1, double v2, double v3)
static void
glVertexAttrib4dv(int index, double[] v)
static void
glVertexAttrib4dv(int index, java.nio.DoubleBuffer v)
static void
glVertexAttrib4f(int index, float v0, float v1, float v2, float v3)
static void
glVertexAttrib4fv(int index, float[] v)
static void
glVertexAttrib4fv(int index, java.nio.FloatBuffer v)
static void
glVertexAttrib4iv(int index, int[] v)
static void
glVertexAttrib4iv(int index, java.nio.IntBuffer v)
static void
glVertexAttrib4Nbv(int index, java.nio.ByteBuffer v)
static void
glVertexAttrib4Niv(int index, int[] v)
static void
glVertexAttrib4Niv(int index, java.nio.IntBuffer v)
static void
glVertexAttrib4Nsv(int index, short[] v)
static void
glVertexAttrib4Nsv(int index, java.nio.ShortBuffer v)
static void
glVertexAttrib4Nub(int index, byte x, byte y, byte z, byte w)
static void
glVertexAttrib4Nubv(int index, java.nio.ByteBuffer v)
static void
glVertexAttrib4Nuiv(int index, int[] v)
static void
glVertexAttrib4Nuiv(int index, java.nio.IntBuffer v)
static void
glVertexAttrib4Nusv(int index, short[] v)
static void
glVertexAttrib4Nusv(int index, java.nio.ShortBuffer v)
static void
glVertexAttrib4s(int index, short v0, short v1, short v2, short v3)
static void
glVertexAttrib4sv(int index, short[] v)
static void
glVertexAttrib4sv(int index, java.nio.ShortBuffer v)
static void
glVertexAttrib4ubv(int index, java.nio.ByteBuffer v)
static void
glVertexAttrib4uiv(int index, int[] v)
static void
glVertexAttrib4uiv(int index, java.nio.IntBuffer v)
static void
glVertexAttrib4usv(int index, short[] v)
static void
glVertexAttrib4usv(int index, java.nio.ShortBuffer v)
static void
glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, java.nio.ByteBuffer pointer)
static void
glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, float[] pointer)
static void
glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, java.nio.FloatBuffer pointer)
static void
glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, int[] pointer)
static void
glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, java.nio.IntBuffer pointer)
static void
glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, long pointer)
static void
glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, short[] pointer)
static void
glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, java.nio.ShortBuffer pointer)
-
-
-
Field Detail
-
GL_SHADING_LANGUAGE_VERSION
Accepted by thename
parameter of GetString.
-
GL_CURRENT_PROGRAM
Accepted by thepname
parameter of GetInteger.
-
GL_SHADER_TYPE, GL_DELETE_STATUS, GL_COMPILE_STATUS, GL_LINK_STATUS, GL_VALIDATE_STATUS, GL_INFO_LOG_LENGTH, GL_ATTACHED_SHADERS, GL_ACTIVE_UNIFORMS, GL_ACTIVE_UNIFORM_MAX_LENGTH, GL_ACTIVE_ATTRIBUTES, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, GL_SHADER_SOURCE_LENGTH
Accepted by thepname
parameter of GetShaderiv.
-
GL_FLOAT_VEC2, GL_FLOAT_VEC3, GL_FLOAT_VEC4, GL_INT_VEC2, GL_INT_VEC3, GL_INT_VEC4, GL_BOOL, GL_BOOL_VEC2, GL_BOOL_VEC3, GL_BOOL_VEC4, GL_FLOAT_MAT2, GL_FLOAT_MAT3, GL_FLOAT_MAT4, GL_SAMPLER_1D, GL_SAMPLER_2D, GL_SAMPLER_3D, GL_SAMPLER_CUBE, GL_SAMPLER_1D_SHADOW, GL_SAMPLER_2D_SHADOW
Returned by thetype
parameter of GetActiveUniform.
-
GL_VERTEX_SHADER
Accepted by thetype
argument of CreateShader and returned by theparams
parameter of GetShaderiv.
-
GL_MAX_VERTEX_UNIFORM_COMPONENTS, GL_MAX_VARYING_FLOATS, GL_MAX_VERTEX_ATTRIBS, GL_MAX_TEXTURE_IMAGE_UNITS, GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS, GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS, GL_MAX_TEXTURE_COORDS
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_VERTEX_PROGRAM_POINT_SIZE, GL_VERTEX_PROGRAM_TWO_SIDE
Accepted by thecap
parameter of Disable, Enable, and IsEnabled, and by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, GL_CURRENT_VERTEX_ATTRIB
Accepted by thepname
parameter of GetVertexAttrib{dfi}v.
-
GL_VERTEX_ATTRIB_ARRAY_POINTER
Accepted by thepname
parameter of GetVertexAttribPointerv.
-
GL_FRAGMENT_SHADER
Accepted by thetype
argument of CreateShader and returned by theparams
parameter of GetShaderiv.
-
GL_MAX_FRAGMENT_UNIFORM_COMPONENTS
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_FRAGMENT_SHADER_DERIVATIVE_HINT
Accepted by thetarget
parameter of Hint and thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_MAX_DRAW_BUFFERS, GL_DRAW_BUFFER0, GL_DRAW_BUFFER1, GL_DRAW_BUFFER2, GL_DRAW_BUFFER3, GL_DRAW_BUFFER4, GL_DRAW_BUFFER5, GL_DRAW_BUFFER6, GL_DRAW_BUFFER7, GL_DRAW_BUFFER8, GL_DRAW_BUFFER9, GL_DRAW_BUFFER10, GL_DRAW_BUFFER11, GL_DRAW_BUFFER12, GL_DRAW_BUFFER13, GL_DRAW_BUFFER14, GL_DRAW_BUFFER15
Accepted by thepname
parameters of GetIntegerv, GetFloatv, and GetDoublev.
-
GL_POINT_SPRITE
Accepted by thecap
parameter of Enable, Disable, and IsEnabled, by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev, and by thetarget
parameter of TexEnvi, TexEnviv, TexEnvf, TexEnvfv, GetTexEnviv, and GetTexEnvfv.
-
GL_COORD_REPLACE
When thetarget
parameter of TexEnvf, TexEnvfv, TexEnvi, TexEnviv, GetTexEnvfv, or GetTexEnviv is POINT_SPRITE, then the value ofpname
may be.
-
GL_POINT_SPRITE_COORD_ORIGIN
Accepted by thepname
parameter of PointParameter{if}v.
-
GL_LOWER_LEFT, GL_UPPER_LEFT
Accepted by theparam
parameter of PointParameter{if}v.
-
GL_BLEND_EQUATION_RGB, GL_BLEND_EQUATION_ALPHA
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_STENCIL_BACK_FUNC, GL_STENCIL_BACK_FAIL, GL_STENCIL_BACK_PASS_DEPTH_FAIL, GL_STENCIL_BACK_PASS_DEPTH_PASS, GL_STENCIL_BACK_REF, GL_STENCIL_BACK_VALUE_MASK, GL_STENCIL_BACK_WRITEMASK
Accepted by thepname
parameter of GetIntegerv.
-
-
Method Detail
-
glCreateProgram
public static int glCreateProgram()
Creates a program object.
-
glDeleteProgram
public static void glDeleteProgram(int program)
Deletes a program object.- Parameters:
program
- the program object to be deleted
-
glIsProgram
public static boolean glIsProgram(int program)
ReturnsTRUE
ifprogram
is the name of a program object. Ifprogram
is zero, or a non-zero value that is not the name of a program object, IsProgram returnsFALSE
. No error is generated if program is not a valid program object name.- Parameters:
program
- the program object name to query
-
glCreateShader
public static int glCreateShader(int type)
Creates a shader object.- Parameters:
type
- the type of shader to be created. One of:VERTEX_SHADER
FRAGMENT_SHADER
GEOMETRY_SHADER
TESS_CONTROL_SHADER
TESS_EVALUATION_SHADER
-
glDeleteShader
public static void glDeleteShader(int shader)
Deletes a shader object.- Parameters:
shader
- the shader object to be deleted
-
glIsShader
public static boolean glIsShader(int shader)
ReturnsTRUE
ifshader
is the name of a shader object. Ifshader
is zero, or a nonzero value that is not the name of a shader object, IsShader returnsFALSE
. No error is generated if shader is not a valid shader object name.- Parameters:
shader
- the shader object name to query
-
glAttachShader
public static void glAttachShader(int program, int shader)
Attaches a shader object to a program object.In order to create a complete shader program, there must be a way to specify the list of things that will be linked together. Program objects provide this mechanism. Shaders that are to be linked together in a program object must first be attached to that program object. glAttachShader attaches the shader object specified by shader to the program object specified by program. This indicates that shader will be included in link operations that will be performed on program.
All operations that can be performed on a shader object are valid whether or not the shader object is attached to a program object. It is permissible to attach a shader object to a program object before source code has been loaded into the shader object or before the shader object has been compiled. It is permissible to attach multiple shader objects of the same type because each may contain a portion of the complete shader. It is also permissible to attach a shader object to more than one program object. If a shader object is deleted while it is attached to a program object, it will be flagged for deletion, and deletion will not occur until glDetachShader is called to detach it from all program objects to which it is attached.
- Parameters:
program
- the program object to which a shader object will be attachedshader
- the shader object that is to be attached
-
glDetachShader
public static void glDetachShader(int program, int shader)
Detaches a shader object from a program object to which it is attached.- Parameters:
program
- the program object from which to detach the shader objectshader
- the shader object to be detached
-
glShaderSource
public static void glShaderSource(int shader, org.lwjgl.PointerBuffer strings, java.nio.IntBuffer length)
Sets the source code inshader
to the source code in the array of strings specified bystrings
. Any source code previously stored in the shader object is completely replaced. The number of strings in the array is specified bycount
. Iflength
isNULL
, each string is assumed to be null terminated. Iflength
is a value other thanNULL
, it points to an array containing a string length for each of the corresponding elements ofstrings
. Each element in the length array may contain the length of the corresponding string (the null character is not counted as part of the string length) or a value less than 0 to indicate that the string is null terminated. The source code strings are not scanned or parsed at this time; they are simply copied into the specified shader object.- Parameters:
shader
- the shader object whose source code is to be replacedstrings
- an array of pointers to strings containing the source code to be loaded into the shaderlength
- an array of string lengths
-
glShaderSource
public static void glShaderSource(int shader, java.lang.CharSequence... strings)
Sets the source code inshader
to the source code in the array of strings specified bystrings
. Any source code previously stored in the shader object is completely replaced. The number of strings in the array is specified bycount
. Iflength
isNULL
, each string is assumed to be null terminated. Iflength
is a value other thanNULL
, it points to an array containing a string length for each of the corresponding elements ofstrings
. Each element in the length array may contain the length of the corresponding string (the null character is not counted as part of the string length) or a value less than 0 to indicate that the string is null terminated. The source code strings are not scanned or parsed at this time; they are simply copied into the specified shader object.- Parameters:
shader
- the shader object whose source code is to be replacedstrings
- an array of pointers to strings containing the source code to be loaded into the shader
-
glShaderSource
public static void glShaderSource(int shader, java.lang.CharSequence string)
Sets the source code inshader
to the source code in the array of strings specified bystrings
. Any source code previously stored in the shader object is completely replaced. The number of strings in the array is specified bycount
. Iflength
isNULL
, each string is assumed to be null terminated. Iflength
is a value other thanNULL
, it points to an array containing a string length for each of the corresponding elements ofstrings
. Each element in the length array may contain the length of the corresponding string (the null character is not counted as part of the string length) or a value less than 0 to indicate that the string is null terminated. The source code strings are not scanned or parsed at this time; they are simply copied into the specified shader object.- Parameters:
shader
- the shader object whose source code is to be replaced
-
glCompileShader
public static void glCompileShader(int shader)
Compiles a shader object.- Parameters:
shader
- the shader object to be compiled
-
glLinkProgram
public static void glLinkProgram(int program)
Links a program object.- Parameters:
program
- the program object to be linked
-
glUseProgram
public static void glUseProgram(int program)
Installs a program object as part of current rendering state.- Parameters:
program
- the program object whose executables are to be used as part of current rendering state
-
glValidateProgram
public static void glValidateProgram(int program)
Validates a program object.- Parameters:
program
- the program object to be validated
-
glUniform1f
public static void glUniform1f(int location, float v0)
Specifies the value of a float uniform variable for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedv0
- the uniform value
-
glUniform2f
public static void glUniform2f(int location, float v0, float v1)
Specifies the value of a vec2 uniform variable for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedv0
- the uniform x valuev1
- the uniform y value
-
glUniform3f
public static void glUniform3f(int location, float v0, float v1, float v2)
Specifies the value of a vec3 uniform variable for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedv0
- the uniform x valuev1
- the uniform y valuev2
- the uniform z value
-
glUniform4f
public static void glUniform4f(int location, float v0, float v1, float v2, float v3)
Specifies the value of a vec4 uniform variable for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedv0
- the uniform x valuev1
- the uniform y valuev2
- the uniform z valuev3
- the uniform w value
-
glUniform1i
public static void glUniform1i(int location, int v0)
Specifies the value of an int uniform variable for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedv0
- the uniform value
-
glUniform2i
public static void glUniform2i(int location, int v0, int v1)
Specifies the value of an ivec2 uniform variable for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedv0
- the uniform x valuev1
- the uniform y value
-
glUniform3i
public static void glUniform3i(int location, int v0, int v1, int v2)
Specifies the value of an ivec3 uniform variable for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedv0
- the uniform x valuev1
- the uniform y valuev2
- the uniform z value
-
glUniform4i
public static void glUniform4i(int location, int v0, int v1, int v2, int v3)
Specifies the value of an ivec4 uniform variable for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedv0
- the uniform x valuev1
- the uniform y valuev2
- the uniform z valuev3
- the uniform w value
-
glUniform1fv
public static void glUniform1fv(int location, java.nio.FloatBuffer value)
Specifies the value of a single float uniform variable or a float uniform variable array for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedvalue
- a pointer to an array ofcount
values that will be used to update the specified uniform variable
-
glUniform2fv
public static void glUniform2fv(int location, java.nio.FloatBuffer value)
Specifies the value of a single vec2 uniform variable or a vec2 uniform variable array for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedvalue
- a pointer to an array ofcount
values that will be used to update the specified uniform variable
-
glUniform3fv
public static void glUniform3fv(int location, java.nio.FloatBuffer value)
Specifies the value of a single vec3 uniform variable or a vec3 uniform variable array for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedvalue
- a pointer to an array ofcount
values that will be used to update the specified uniform variable
-
glUniform4fv
public static void glUniform4fv(int location, java.nio.FloatBuffer value)
Specifies the value of a single vec4 uniform variable or a vec4 uniform variable array for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedvalue
- a pointer to an array ofcount
values that will be used to update the specified uniform variable
-
glUniform1iv
public static void glUniform1iv(int location, java.nio.IntBuffer value)
Specifies the value of a single int uniform variable or a int uniform variable array for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedvalue
- a pointer to an array ofcount
values that will be used to update the specified uniform variable
-
glUniform2iv
public static void glUniform2iv(int location, java.nio.IntBuffer value)
Specifies the value of a single ivec2 uniform variable or an ivec2 uniform variable array for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedvalue
- a pointer to an array ofcount
values that will be used to update the specified uniform variable
-
glUniform3iv
public static void glUniform3iv(int location, java.nio.IntBuffer value)
Specifies the value of a single ivec3 uniform variable or an ivec3 uniform variable array for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedvalue
- a pointer to an array ofcount
values that will be used to update the specified uniform variable
-
glUniform4iv
public static void glUniform4iv(int location, java.nio.IntBuffer value)
Specifies the value of a single ivec4 uniform variable or an ivec4 uniform variable array for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedvalue
- a pointer to an array ofcount
values that will be used to update the specified uniform variable
-
glUniformMatrix2fv
public static void glUniformMatrix2fv(int location, boolean transpose, java.nio.FloatBuffer value)
Specifies the value of a single mat2 uniform variable or a mat2 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
-
glUniformMatrix3fv
public static void glUniformMatrix3fv(int location, boolean transpose, java.nio.FloatBuffer value)
Specifies the value of a single mat3 uniform variable or a mat3 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
-
glUniformMatrix4fv
public static void glUniformMatrix4fv(int location, boolean transpose, java.nio.FloatBuffer value)
Specifies the value of a single mat4 uniform variable or a mat4 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
-
glGetShaderiv
public static void glGetShaderiv(int shader, int pname, java.nio.IntBuffer params)
Returns a parameter from a shader object.- Parameters:
shader
- the shader object to be queriedpname
- the object parameter. One of:SHADER_TYPE
DELETE_STATUS
COMPILE_STATUS
INFO_LOG_LENGTH
SHADER_SOURCE_LENGTH
params
- the requested object parameter
-
glGetShaderi
public static int glGetShaderi(int shader, int pname)
Returns a parameter from a shader object.- Parameters:
shader
- the shader object to be queriedpname
- the object parameter. One of:SHADER_TYPE
DELETE_STATUS
COMPILE_STATUS
INFO_LOG_LENGTH
SHADER_SOURCE_LENGTH
-
glGetProgramiv
public static void glGetProgramiv(int program, int pname, java.nio.IntBuffer params)
Returns a parameter from a program object.- Parameters:
program
- the program object to be queriedpname
- the object parameter. One of:params
- the requested object parameter
-
glGetProgrami
public static int glGetProgrami(int program, int pname)
Returns a parameter from a program object.- Parameters:
program
- the program object to be queriedpname
- the object parameter. One of:
-
glGetShaderInfoLog
public static void glGetShaderInfoLog(int shader, java.nio.IntBuffer length, java.nio.ByteBuffer infoLog)
Returns the information log for a shader object.- Parameters:
shader
- the shader object whose information log is to be queriedlength
- the length of the string returned ininfoLog
(excluding the null terminator)infoLog
- an array of characters that is used to return the information log
-
glGetShaderInfoLog
public static java.lang.String glGetShaderInfoLog(int shader, int maxLength)
Returns the information log for a shader object.- Parameters:
shader
- the shader object whose information log is to be queriedmaxLength
- the size of the character buffer for storing the returned information log
-
glGetShaderInfoLog
public static java.lang.String glGetShaderInfoLog(int shader)
Returns the information log for a shader object.- Parameters:
shader
- the shader object whose information log is to be queried
-
glGetProgramInfoLog
public static void glGetProgramInfoLog(int program, java.nio.IntBuffer length, java.nio.ByteBuffer infoLog)
Returns the information log for a program object.- Parameters:
program
- the program object whose information log is to be queriedlength
- the length of the string returned ininfoLog
(excluding the null terminator)infoLog
- an array of characters that is used to return the information log
-
glGetProgramInfoLog
public static java.lang.String glGetProgramInfoLog(int program, int maxLength)
Returns the information log for a program object.- Parameters:
program
- the program object whose information log is to be queriedmaxLength
- the size of the character buffer for storing the returned information log
-
glGetProgramInfoLog
public static java.lang.String glGetProgramInfoLog(int program)
Returns the information log for a program object.- Parameters:
program
- the program object whose information log is to be queried
-
glGetAttachedShaders
public static void glGetAttachedShaders(int program, java.nio.IntBuffer count, java.nio.IntBuffer shaders)
Returns the shader objects attached to a program object.- Parameters:
program
- the program object to be queriedcount
- the number of names actually returned inshaders
shaders
- an array that is used to return the names of attached shader objects
-
glGetUniformLocation
public static int glGetUniformLocation(int program, java.nio.ByteBuffer name) public static int glGetUniformLocation(int program, java.lang.CharSequence name)
Returns the location of a uniform variable.- Parameters:
program
- the program object to be queriedname
- a null terminated string containing the name of the uniform variable whose location is to be queried
-
glGetActiveUniform
public static void glGetActiveUniform(int program, int index, java.nio.IntBuffer length, java.nio.IntBuffer size, java.nio.IntBuffer type, java.nio.ByteBuffer name)
Returns information about an active uniform variable for the specified program object.- Parameters:
program
- the program object to be queriedindex
- the index of the uniform variable to be queriedlength
- the number of characters actually written by OpenGL in the string indicated byname
(excluding the null terminator) if a value other than NULL is passedsize
- the size of the uniform variabletype
- the data type of the uniform variablename
- a null terminated string containing the name of the uniform variable
-
glGetActiveUniform
public static java.lang.String glGetActiveUniform(int program, int index, int maxLength, java.nio.IntBuffer size, java.nio.IntBuffer type)
Returns information about an active uniform variable for the specified program object.- Parameters:
program
- the program object to be queriedindex
- the index of the uniform variable to be queriedmaxLength
- the maximum number of characters OpenGL is allowed to write in the character buffer indicated byname
size
- the size of the uniform variabletype
- the data type of the uniform variable
-
glGetActiveUniform
public static java.lang.String glGetActiveUniform(int program, int index, java.nio.IntBuffer size, java.nio.IntBuffer type)
Returns information about an active uniform variable for the specified program object.- Parameters:
program
- the program object to be queriedindex
- the index of the uniform variable to be queriedsize
- the size of the uniform variabletype
- the data type of the uniform variable
-
glGetUniformfv
public static void glGetUniformfv(int program, int location, java.nio.FloatBuffer params)
Returns the float value(s) of a uniform variable.- Parameters:
program
- the program object to be queriedlocation
- the location of the uniform variable to be queriedparams
- the value of the specified uniform variable
-
glGetUniformf
public static float glGetUniformf(int program, int location)
Returns the float value(s) of a uniform variable.- Parameters:
program
- the program object to be queriedlocation
- the location of the uniform variable to be queried
-
glGetUniformiv
public static void glGetUniformiv(int program, int location, java.nio.IntBuffer params)
Returns the int value(s) of a uniform variable.- Parameters:
program
- the program object to be queriedlocation
- the location of the uniform variable to be queriedparams
- the value of the specified uniform variable
-
glGetUniformi
public static int glGetUniformi(int program, int location)
Returns the int value(s) of a uniform variable.- Parameters:
program
- the program object to be queriedlocation
- the location of the uniform variable to be queried
-
glGetShaderSource
public static void glGetShaderSource(int shader, java.nio.IntBuffer length, java.nio.ByteBuffer source)
Returns the source code string from a shader object.- Parameters:
shader
- the shader object to be queriedlength
- the length of the string returned in source (excluding the null terminator)source
- an array of characters that is used to return the source code string
-
glGetShaderSource
public static java.lang.String glGetShaderSource(int shader, int maxLength)
Returns the source code string from a shader object.- Parameters:
shader
- the shader object to be queriedmaxLength
- the size of the character buffer for storing the returned source code string
-
glGetShaderSource
public static java.lang.String glGetShaderSource(int shader)
Returns the source code string from a shader object.- Parameters:
shader
- the shader object to be queried
-
glVertexAttrib1f
public static void glVertexAttrib1f(int index, float v0)
Specifies the value of a generic vertex attribute. The y and z components are implicitly set to 0.0f and w to 1.0f.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv0
- the vertex attribute x component
-
glVertexAttrib1s
public static void glVertexAttrib1s(int index, short v0)
Short version ofVertexAttrib1f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv0
- the vertex attribute x component
-
glVertexAttrib1d
public static void glVertexAttrib1d(int index, double v0)
Double version ofVertexAttrib1f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv0
- the vertex attribute x component
-
glVertexAttrib2f
public static void glVertexAttrib2f(int index, float v0, float v1)
Specifies the value of a generic vertex attribute. The y component is implicitly set to 0.0f and w to 1.0f.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv0
- the vertex attribute x componentv1
- the vertex attribute y component
-
glVertexAttrib2s
public static void glVertexAttrib2s(int index, short v0, short v1)
Short version ofVertexAttrib2f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv0
- the vertex attribute x componentv1
- the vertex attribute y component
-
glVertexAttrib2d
public static void glVertexAttrib2d(int index, double v0, double v1)
Double version ofVertexAttrib2f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv0
- the vertex attribute x componentv1
- the vertex attribute y component
-
glVertexAttrib3f
public static void glVertexAttrib3f(int index, float v0, float v1, float v2)
Specifies the value of a generic vertex attribute. The w is implicitly set to 1.0f.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv0
- the vertex attribute x componentv1
- the vertex attribute y componentv2
- the vertex attribute z component
-
glVertexAttrib3s
public static void glVertexAttrib3s(int index, short v0, short v1, short v2)
Short version ofVertexAttrib3f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv0
- the vertex attribute x componentv1
- the vertex attribute y componentv2
- the vertex attribute z component
-
glVertexAttrib3d
public static void glVertexAttrib3d(int index, double v0, double v1, double v2)
Double version ofVertexAttrib3f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv0
- the vertex attribute x componentv1
- the vertex attribute y componentv2
- the vertex attribute z component
-
glVertexAttrib4f
public static void glVertexAttrib4f(int index, float v0, float v1, float v2, float v3)
Specifies the value of a generic vertex attribute.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv0
- the vertex attribute x componentv1
- the vertex attribute y componentv2
- the vertex attribute z componentv3
- the vertex attribute w component
-
glVertexAttrib4s
public static void glVertexAttrib4s(int index, short v0, short v1, short v2, short v3)
Short version ofVertexAttrib4f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv0
- the vertex attribute x componentv1
- the vertex attribute y componentv2
- the vertex attribute z componentv3
- the vertex attribute w component
-
glVertexAttrib4d
public static void glVertexAttrib4d(int index, double v0, double v1, double v2, double v3)
Double version ofVertexAttrib4f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv0
- the vertex attribute x componentv1
- the vertex attribute y componentv2
- the vertex attribute z componentv3
- the vertex attribute w component
-
glVertexAttrib4Nub
public static void glVertexAttrib4Nub(int index, byte x, byte y, byte z, byte w)
Normalized unsigned byte version ofVertexAttrib4f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedx
- the vertex attribute x componenty
- the vertex attribute y componentz
- the vertex attribute z componentw
- the vertex attribute w component
-
glVertexAttrib1fv
public static void glVertexAttrib1fv(int index, java.nio.FloatBuffer v)
Pointer version ofVertexAttrib1f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib1sv
public static void glVertexAttrib1sv(int index, java.nio.ShortBuffer v)
Pointer version ofVertexAttrib1s
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib1dv
public static void glVertexAttrib1dv(int index, java.nio.DoubleBuffer v)
Pointer version ofVertexAttrib1d
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib2fv
public static void glVertexAttrib2fv(int index, java.nio.FloatBuffer v)
Pointer version ofVertexAttrib2f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib2sv
public static void glVertexAttrib2sv(int index, java.nio.ShortBuffer v)
Pointer version ofVertexAttrib2s
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib2dv
public static void glVertexAttrib2dv(int index, java.nio.DoubleBuffer v)
Pointer version ofVertexAttrib2d
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib3fv
public static void glVertexAttrib3fv(int index, java.nio.FloatBuffer v)
Pointer version ofVertexAttrib3f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib3sv
public static void glVertexAttrib3sv(int index, java.nio.ShortBuffer v)
Pointer version ofVertexAttrib3s
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib3dv
public static void glVertexAttrib3dv(int index, java.nio.DoubleBuffer v)
Pointer version ofVertexAttrib3d
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib4fv
public static void glVertexAttrib4fv(int index, java.nio.FloatBuffer v)
Pointer version ofVertexAttrib4f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib4sv
public static void glVertexAttrib4sv(int index, java.nio.ShortBuffer v)
Pointer version ofVertexAttrib4s
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib4dv
public static void glVertexAttrib4dv(int index, java.nio.DoubleBuffer v)
Pointer version ofVertexAttrib4d
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib4iv
public static void glVertexAttrib4iv(int index, java.nio.IntBuffer v)
Integer pointer version ofVertexAttrib4f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib4bv
public static void glVertexAttrib4bv(int index, java.nio.ByteBuffer v)
Byte pointer version ofVertexAttrib4f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib4ubv
public static void glVertexAttrib4ubv(int index, java.nio.ByteBuffer v)
Pointer version ofVertexAttrib4Nub
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib4usv
public static void glVertexAttrib4usv(int index, java.nio.ShortBuffer v)
Unsigned short pointer version ofVertexAttrib4f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib4uiv
public static void glVertexAttrib4uiv(int index, java.nio.IntBuffer v)
Unsigned int pointer version ofVertexAttrib4f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib4Nbv
public static void glVertexAttrib4Nbv(int index, java.nio.ByteBuffer v)
Normalized byte pointer version ofVertexAttrib4f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib4Nsv
public static void glVertexAttrib4Nsv(int index, java.nio.ShortBuffer v)
Normalized short pointer version ofVertexAttrib4f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib4Niv
public static void glVertexAttrib4Niv(int index, java.nio.IntBuffer v)
Normalized int pointer version ofVertexAttrib4f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib4Nubv
public static void glVertexAttrib4Nubv(int index, java.nio.ByteBuffer v)
Normalized unsigned byte pointer version ofVertexAttrib4f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib4Nusv
public static void glVertexAttrib4Nusv(int index, java.nio.ShortBuffer v)
Normalized unsigned short pointer version ofVertexAttrib4f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttrib4Nuiv
public static void glVertexAttrib4Nuiv(int index, java.nio.IntBuffer v)
Normalized unsigned int pointer version ofVertexAttrib4f
.- Parameters:
index
- the index of the generic vertex attribute to be modifiedv
- the vertex attribute buffer
-
glVertexAttribPointer
public static void glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, java.nio.ByteBuffer pointer) public static void glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, long pointer) public static void glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, java.nio.ShortBuffer pointer) public static void glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, java.nio.IntBuffer pointer) public static void glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, java.nio.FloatBuffer pointer)
Specifies the location and organization of a vertex attribute array.- Parameters:
index
- the index of the generic vertex attribute to be modifiedsize
- the number of values per vertex that are stored in the array. The initial value is 4. One of:1 2 3 4 BGRA
type
- the data type of each component in the array. The initial value is GL_FLOAT. One of:BYTE
UNSIGNED_BYTE
SHORT
UNSIGNED_SHORT
INT
UNSIGNED_INT
HALF_FLOAT
FLOAT
DOUBLE
UNSIGNED_INT_2_10_10_10_REV
INT_2_10_10_10_REV
FIXED
normalized
- whether fixed-point data values should be normalized or converted directly as fixed-point values when they are accessedstride
- the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0.pointer
- the vertex attribute data or the offset of the first component of the first generic vertex attribute in the array in the data store of the buffer currently bound to theARRAY_BUFFER
target. The initial value is 0.
-
glEnableVertexAttribArray
public static void glEnableVertexAttribArray(int index)
Enables a generic vertex attribute array.- Parameters:
index
- the index of the generic vertex attribute to be enabled
-
glDisableVertexAttribArray
public static void glDisableVertexAttribArray(int index)
Disables a generic vertex attribute array.- Parameters:
index
- the index of the generic vertex attribute to be disabled
-
glBindAttribLocation
public static void glBindAttribLocation(int program, int index, java.nio.ByteBuffer name) public static void glBindAttribLocation(int program, int index, java.lang.CharSequence name)
Associates a generic vertex attribute index with a named attribute variable.- Parameters:
program
- the program object in which the association is to be madeindex
- the index of the generic vertex attribute to be boundname
- a null terminated string containing the name of the vertex shader attribute variable to whichindex
is to be bound
-
glGetActiveAttrib
public static void glGetActiveAttrib(int program, int index, java.nio.IntBuffer length, java.nio.IntBuffer size, java.nio.IntBuffer type, java.nio.ByteBuffer name)
Returns information about an active attribute variable for the specified program object.- Parameters:
program
- the program object to be queriedindex
- the index of the attribute variable to be queriedlength
- the number of characters actually written by OpenGL in the string indicated byname
(excluding the null terminator) if a value other thanNULL
is passedsize
- the size of the attribute variabletype
- the data type of the attribute variablename
- a null terminated string containing the name of the attribute variable
-
glGetActiveAttrib
public static java.lang.String glGetActiveAttrib(int program, int index, int maxLength, java.nio.IntBuffer size, java.nio.IntBuffer type)
Returns information about an active attribute variable for the specified program object.- Parameters:
program
- the program object to be queriedindex
- the index of the attribute variable to be queriedmaxLength
- the maximum number of characters OpenGL is allowed to write in the character buffer indicated byname
size
- the size of the attribute variabletype
- the data type of the attribute variable
-
glGetActiveAttrib
public static java.lang.String glGetActiveAttrib(int program, int index, java.nio.IntBuffer size, java.nio.IntBuffer type)
Returns information about an active attribute variable for the specified program object.- Parameters:
program
- the program object to be queriedindex
- the index of the attribute variable to be queriedsize
- the size of the attribute variabletype
- the data type of the attribute variable
-
glGetAttribLocation
public static int glGetAttribLocation(int program, java.nio.ByteBuffer name) public static int glGetAttribLocation(int program, java.lang.CharSequence name)
Returns the location of an attribute variable.- Parameters:
program
- the program object to be queriedname
- a null terminated string containing the name of the attribute variable whose location is to be queried
-
glGetVertexAttribiv
public static void glGetVertexAttribiv(int index, int pname, java.nio.IntBuffer params)
Returns the integer value of a generic vertex attribute parameter.- Parameters:
index
- the generic vertex attribute parameter to be queriedpname
- the symbolic name of the vertex attribute parameter to be queried. One of:params
- returns the requested data
-
glGetVertexAttribi
public static int glGetVertexAttribi(int index, int pname)
Returns the integer value of a generic vertex attribute parameter.- Parameters:
index
- the generic vertex attribute parameter to be queriedpname
- the symbolic name of the vertex attribute parameter to be queried. One of:
-
glGetVertexAttribfv
public static void glGetVertexAttribfv(int index, int pname, java.nio.FloatBuffer params)
Float version ofGetVertexAttribiv
.- Parameters:
index
- the generic vertex attribute parameter to be queriedpname
- the symbolic name of the vertex attribute parameter to be queriedparams
- returns the requested data
-
glGetVertexAttribdv
public static void glGetVertexAttribdv(int index, int pname, java.nio.DoubleBuffer params)
Double version ofGetVertexAttribiv
.- Parameters:
index
- the generic vertex attribute parameter to be queriedpname
- the symbolic name of the vertex attribute parameter to be queriedparams
- returns the requested data
-
glGetVertexAttribPointerv
public static void glGetVertexAttribPointerv(int index, int pname, org.lwjgl.PointerBuffer pointer)
Returns the address of the specified generic vertex attribute pointer.- Parameters:
index
- the generic vertex attribute parameter to be queriedpname
- the symbolic name of the generic vertex attribute parameter to be returned. Must be:VERTEX_ATTRIB_ARRAY_POINTER
pointer
- the pointer value
-
glGetVertexAttribPointer
public static long glGetVertexAttribPointer(int index, int pname)
Returns the address of the specified generic vertex attribute pointer.- Parameters:
index
- the generic vertex attribute parameter to be queriedpname
- the symbolic name of the generic vertex attribute parameter to be returned. Must be:VERTEX_ATTRIB_ARRAY_POINTER
-
glDrawBuffers
public static void glDrawBuffers(java.nio.IntBuffer bufs)
Specifies a list of color buffers to be drawn into.- Parameters:
bufs
- an array of symbolic constants specifying the buffers into which fragment colors or data values will be written. One of:NONE
FRONT_LEFT
FRONT_RIGHT
BACK_LEFT
BACK_RIGHT
AUX0
AUX1
AUX2
AUX3
COLOR_ATTACHMENT0
GL30.GL_COLOR_ATTACHMENT[1-15]
-
glDrawBuffers
public static void glDrawBuffers(int buf)
Specifies a list of color buffers to be drawn into.
-
glBlendEquationSeparate
public static void glBlendEquationSeparate(int modeRGB, int modeAlpha)
Sets the RGB blend equation and the alpha blend equation separately.- Parameters:
modeRGB
- the RGB blend equation, how the red, green, and blue components of the source and destination colors are combined. One of:FUNC_ADD
FUNC_SUBTRACT
FUNC_REVERSE_SUBTRACT
MIN
MAX
modeAlpha
- the alpha blend equation, how the alpha component of the source and destination colors are combined
-
glStencilOpSeparate
public static void glStencilOpSeparate(int face, int sfail, int dpfail, int dppass)
Sets front and/or back stencil test actions.- Parameters:
face
- whether front and/or back stencil state is updated. One of:FRONT
BACK
FRONT_AND_BACK
sfail
- the action to take when the stencil test fails. The initial value is GL_KEEP. One of:KEEP
ZERO
REPLACE
INCR
INCR_WRAP
DECR
DECR_WRAP
INVERT
dpfail
- the stencil action when the stencil test passes, but the depth test fails. The initial value is GL_KEEPdppass
- the stencil action when both the stencil test and the depth test pass, or when the stencil test passes and either there is no depth buffer or depth testing is not enabled. The initial value is GL_KEEP
-
glStencilFuncSeparate
public static void glStencilFuncSeparate(int face, int func, int ref, int mask)
Sets front and/or back function and reference value for stencil testing.- Parameters:
face
- whether front and/or back stencil state is updated. One of:FRONT
BACK
FRONT_AND_BACK
func
- the test function. The initial value is GL_ALWAYS. One of:NEVER
LESS
LEQUAL
GREATER
GEQUAL
EQUAL
NOTEQUAL
ALWAYS
ref
- the reference value for the stencil test.ref
is clamped to the range [0, 2n – 1], wheren
is the number of bitplanes in the stencil buffer. The initial value is 0.mask
- a mask that is ANDed with both the reference value and the stored stencil value when the test is done. The initial value is all 1's.
-
glStencilMaskSeparate
public static void glStencilMaskSeparate(int face, int mask)
Controls the front and/or back writing of individual bits in the stencil planes.- Parameters:
face
- whether front and/or back stencil writemask is updated. One of:FRONT
BACK
FRONT_AND_BACK
mask
- a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, the mask is all 1's.
-
glShaderSource
public static void glShaderSource(int shader, org.lwjgl.PointerBuffer strings, int[] length)
Array version of:ShaderSource
-
glUniform1fv
public static void glUniform1fv(int location, float[] value)
Array version of:Uniform1fv
-
glUniform2fv
public static void glUniform2fv(int location, float[] value)
Array version of:Uniform2fv
-
glUniform3fv
public static void glUniform3fv(int location, float[] value)
Array version of:Uniform3fv
-
glUniform4fv
public static void glUniform4fv(int location, float[] value)
Array version of:Uniform4fv
-
glUniform1iv
public static void glUniform1iv(int location, int[] value)
Array version of:Uniform1iv
-
glUniform2iv
public static void glUniform2iv(int location, int[] value)
Array version of:Uniform2iv
-
glUniform3iv
public static void glUniform3iv(int location, int[] value)
Array version of:Uniform3iv
-
glUniform4iv
public static void glUniform4iv(int location, int[] value)
Array version of:Uniform4iv
-
glUniformMatrix2fv
public static void glUniformMatrix2fv(int location, boolean transpose, float[] value)
Array version of:UniformMatrix2fv
-
glUniformMatrix3fv
public static void glUniformMatrix3fv(int location, boolean transpose, float[] value)
Array version of:UniformMatrix3fv
-
glUniformMatrix4fv
public static void glUniformMatrix4fv(int location, boolean transpose, float[] value)
Array version of:UniformMatrix4fv
-
glGetShaderiv
public static void glGetShaderiv(int shader, int pname, int[] params)
Array version of:GetShaderiv
-
glGetProgramiv
public static void glGetProgramiv(int program, int pname, int[] params)
Array version of:GetProgramiv
-
glGetShaderInfoLog
public static void glGetShaderInfoLog(int shader, int[] length, java.nio.ByteBuffer infoLog)
Array version of:GetShaderInfoLog
-
glGetProgramInfoLog
public static void glGetProgramInfoLog(int program, int[] length, java.nio.ByteBuffer infoLog)
Array version of:GetProgramInfoLog
-
glGetAttachedShaders
public static void glGetAttachedShaders(int program, int[] count, int[] shaders)
Array version of:GetAttachedShaders
-
glGetActiveUniform
public static void glGetActiveUniform(int program, int index, int[] length, int[] size, int[] type, java.nio.ByteBuffer name)
Array version of:GetActiveUniform
-
glGetUniformfv
public static void glGetUniformfv(int program, int location, float[] params)
Array version of:GetUniformfv
-
glGetUniformiv
public static void glGetUniformiv(int program, int location, int[] params)
Array version of:GetUniformiv
-
glGetShaderSource
public static void glGetShaderSource(int shader, int[] length, java.nio.ByteBuffer source)
Array version of:GetShaderSource
-
glVertexAttrib1fv
public static void glVertexAttrib1fv(int index, float[] v)
Array version of:VertexAttrib1fv
-
glVertexAttrib1sv
public static void glVertexAttrib1sv(int index, short[] v)
Array version of:VertexAttrib1sv
-
glVertexAttrib1dv
public static void glVertexAttrib1dv(int index, double[] v)
Array version of:VertexAttrib1dv
-
glVertexAttrib2fv
public static void glVertexAttrib2fv(int index, float[] v)
Array version of:VertexAttrib2fv
-
glVertexAttrib2sv
public static void glVertexAttrib2sv(int index, short[] v)
Array version of:VertexAttrib2sv
-
glVertexAttrib2dv
public static void glVertexAttrib2dv(int index, double[] v)
Array version of:VertexAttrib2dv
-
glVertexAttrib3fv
public static void glVertexAttrib3fv(int index, float[] v)
Array version of:VertexAttrib3fv
-
glVertexAttrib3sv
public static void glVertexAttrib3sv(int index, short[] v)
Array version of:VertexAttrib3sv
-
glVertexAttrib3dv
public static void glVertexAttrib3dv(int index, double[] v)
Array version of:VertexAttrib3dv
-
glVertexAttrib4fv
public static void glVertexAttrib4fv(int index, float[] v)
Array version of:VertexAttrib4fv
-
glVertexAttrib4sv
public static void glVertexAttrib4sv(int index, short[] v)
Array version of:VertexAttrib4sv
-
glVertexAttrib4dv
public static void glVertexAttrib4dv(int index, double[] v)
Array version of:VertexAttrib4dv
-
glVertexAttrib4iv
public static void glVertexAttrib4iv(int index, int[] v)
Array version of:VertexAttrib4iv
-
glVertexAttrib4usv
public static void glVertexAttrib4usv(int index, short[] v)
Array version of:VertexAttrib4usv
-
glVertexAttrib4uiv
public static void glVertexAttrib4uiv(int index, int[] v)
Array version of:VertexAttrib4uiv
-
glVertexAttrib4Nsv
public static void glVertexAttrib4Nsv(int index, short[] v)
Array version of:VertexAttrib4Nsv
-
glVertexAttrib4Niv
public static void glVertexAttrib4Niv(int index, int[] v)
Array version of:VertexAttrib4Niv
-
glVertexAttrib4Nusv
public static void glVertexAttrib4Nusv(int index, short[] v)
Array version of:VertexAttrib4Nusv
-
glVertexAttrib4Nuiv
public static void glVertexAttrib4Nuiv(int index, int[] v)
Array version of:VertexAttrib4Nuiv
-
glVertexAttribPointer
public static void glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, short[] pointer) public static void glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, int[] pointer) public static void glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, float[] pointer)
Array version of:VertexAttribPointer
-
glGetActiveAttrib
public static void glGetActiveAttrib(int program, int index, int[] length, int[] size, int[] type, java.nio.ByteBuffer name)
Array version of:GetActiveAttrib
-
glGetVertexAttribiv
public static void glGetVertexAttribiv(int index, int pname, int[] params)
Array version of:GetVertexAttribiv
-
glGetVertexAttribfv
public static void glGetVertexAttribfv(int index, int pname, float[] params)
Array version of:GetVertexAttribfv
-
glGetVertexAttribdv
public static void glGetVertexAttribdv(int index, int pname, double[] params)
Array version of:GetVertexAttribdv
-
glDrawBuffers
public static void glDrawBuffers(int[] bufs)
Array version of:DrawBuffers
-
-