Class GL20
- java.lang.Object
-
- org.lwjgl.opengl.GL20
-
public class GL20 extends java.lang.ObjectThe core OpenGL 2.0 functionality.Extensions promoted to core in this release:
-
-
Field Summary
Fields Modifier and Type Field and Description static intGL_ACTIVE_ATTRIBUTE_MAX_LENGTH
GL_ACTIVE_ATTRIBUTES
GL_ACTIVE_UNIFORM_MAX_LENGTH
GL_ACTIVE_UNIFORMS
GL_ATTACHED_SHADERSAccepted by thepnameparameter of GetShaderiv.static intGL_BLEND_EQUATION_ALPHA
GL_BLEND_EQUATION_RGBAccepted by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static intGL_BOOL
GL_BOOL_VEC2
GL_BOOL_VEC3
GL_BOOL_VEC4Returned by thetypeparameter of GetActiveUniform.static intGL_COMPILE_STATUSAccepted by thepnameparameter of GetShaderiv.static intGL_COORD_REPLACEWhen thetargetparameter of TexEnvf, TexEnvfv, TexEnvi, TexEnviv, GetTexEnvfv, or GetTexEnviv is POINT_SPRITE, then the value ofpnamemay be.static intGL_CURRENT_PROGRAMAccepted by thepnameparameter of GetInteger.static intGL_CURRENT_VERTEX_ATTRIBAccepted by thepnameparameter of GetVertexAttrib{dfi}v.static intGL_DELETE_STATUSAccepted by thepnameparameter of GetShaderiv.static intGL_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 thepnameparameters of GetIntegerv, GetFloatv, and GetDoublev.static intGL_FLOAT_MAT2
GL_FLOAT_MAT3
GL_FLOAT_MAT4
GL_FLOAT_VEC2
GL_FLOAT_VEC3
GL_FLOAT_VEC4Returned by thetypeparameter of GetActiveUniform.static intGL_FRAGMENT_SHADERAccepted by thetypeargument of CreateShader and returned by theparamsparameter of GetShaderiv.static intGL_FRAGMENT_SHADER_DERIVATIVE_HINTAccepted by thetargetparameter of Hint and thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static intGL_INFO_LOG_LENGTHAccepted by thepnameparameter of GetShaderiv.static intGL_INT_VEC2
GL_INT_VEC3
GL_INT_VEC4Returned by thetypeparameter of GetActiveUniform.static intGL_LINK_STATUSAccepted by thepnameparameter of GetShaderiv.static intGL_LOWER_LEFTAccepted by theparamparameter of PointParameter{if}v.static intGL_MAX_COMBINED_TEXTURE_IMAGE_UNITSAccepted by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static intGL_MAX_DRAW_BUFFERSAccepted by thepnameparameters of GetIntegerv, GetFloatv, and GetDoublev.static intGL_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 thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static intGL_POINT_SPRITEAccepted by thecapparameter of Enable, Disable, and IsEnabled, by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev, and by thetargetparameter of TexEnvi, TexEnviv, TexEnvf, TexEnvfv, GetTexEnviv, and GetTexEnvfv.static intGL_POINT_SPRITE_COORD_ORIGINAccepted by thepnameparameter of PointParameter{if}v.static intGL_SAMPLER_1D
GL_SAMPLER_1D_SHADOW
GL_SAMPLER_2D
GL_SAMPLER_2D_SHADOW
GL_SAMPLER_3D
GL_SAMPLER_CUBEReturned by thetypeparameter of GetActiveUniform.static intGL_SHADER_SOURCE_LENGTH
GL_SHADER_TYPEAccepted by thepnameparameter of GetShaderiv.static intGL_SHADING_LANGUAGE_VERSIONAccepted by thenameparameter of GetString.static intGL_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 thepnameparameter of GetIntegerv.static intGL_UPPER_LEFTAccepted by theparamparameter of PointParameter{if}v.static intGL_VALIDATE_STATUSAccepted by thepnameparameter of GetShaderiv.static intGL_VERTEX_ATTRIB_ARRAY_ENABLED
GL_VERTEX_ATTRIB_ARRAY_NORMALIZEDAccepted by thepnameparameter of GetVertexAttrib{dfi}v.static intGL_VERTEX_ATTRIB_ARRAY_POINTERAccepted by thepnameparameter of GetVertexAttribPointerv.static intGL_VERTEX_ATTRIB_ARRAY_SIZE
GL_VERTEX_ATTRIB_ARRAY_STRIDE
GL_VERTEX_ATTRIB_ARRAY_TYPEAccepted by thepnameparameter of GetVertexAttrib{dfi}v.static intGL_VERTEX_PROGRAM_POINT_SIZE
GL_VERTEX_PROGRAM_TWO_SIDEAccepted by thecapparameter of Disable, Enable, and IsEnabled, and by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static intGL_VERTEX_SHADERAccepted by thetypeargument of CreateShader and returned by theparamsparameter of GetShaderiv.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidglAttachShader(int program, int shader)static voidglBindAttribLocation(int program, int index, java.nio.ByteBuffer name)static voidglBindAttribLocation(int program, int index, java.lang.CharSequence name)static voidglBlendEquationSeparate(int modeRGB, int modeAlpha)static voidglCompileShader(int shader)static intglCreateProgram()static intglCreateShader(int type)static voidglDeleteProgram(int program)static voidglDeleteShader(int shader)static voidglDetachShader(int program, int shader)static voidglDisableVertexAttribArray(int index)static voidglDrawBuffers(int buf)static voidglDrawBuffers(int[] bufs)static voidglDrawBuffers(java.nio.IntBuffer bufs)static voidglEnableVertexAttribArray(int index)static voidglGetActiveAttrib(int program, int index, int[] length, int[] size, int[] type, java.nio.ByteBuffer name)static java.lang.StringglGetActiveAttrib(int program, int index, java.nio.IntBuffer size, java.nio.IntBuffer type)static voidglGetActiveAttrib(int program, int index, java.nio.IntBuffer length, java.nio.IntBuffer size, java.nio.IntBuffer type, java.nio.ByteBuffer name)static java.lang.StringglGetActiveAttrib(int program, int index, int maxLength, java.nio.IntBuffer size, java.nio.IntBuffer type)static voidglGetActiveUniform(int program, int index, int[] length, int[] size, int[] type, java.nio.ByteBuffer name)static java.lang.StringglGetActiveUniform(int program, int index, java.nio.IntBuffer size, java.nio.IntBuffer type)static voidglGetActiveUniform(int program, int index, java.nio.IntBuffer length, java.nio.IntBuffer size, java.nio.IntBuffer type, java.nio.ByteBuffer name)static java.lang.StringglGetActiveUniform(int program, int index, int maxLength, java.nio.IntBuffer size, java.nio.IntBuffer type)static voidglGetAttachedShaders(int program, int[] count, int[] shaders)static voidglGetAttachedShaders(int program, java.nio.IntBuffer count, java.nio.IntBuffer shaders)static intglGetAttribLocation(int program, java.nio.ByteBuffer name)static intglGetAttribLocation(int program, java.lang.CharSequence name)static intglGetProgrami(int program, int pname)static java.lang.StringglGetProgramInfoLog(int program)static java.lang.StringglGetProgramInfoLog(int program, int maxLength)static voidglGetProgramInfoLog(int program, int[] length, java.nio.ByteBuffer infoLog)static voidglGetProgramInfoLog(int program, java.nio.IntBuffer length, java.nio.ByteBuffer infoLog)static voidglGetProgramiv(int program, int pname, int[] params)static voidglGetProgramiv(int program, int pname, java.nio.IntBuffer params)static intglGetShaderi(int shader, int pname)static java.lang.StringglGetShaderInfoLog(int shader)static java.lang.StringglGetShaderInfoLog(int shader, int maxLength)static voidglGetShaderInfoLog(int shader, int[] length, java.nio.ByteBuffer infoLog)static voidglGetShaderInfoLog(int shader, java.nio.IntBuffer length, java.nio.ByteBuffer infoLog)static voidglGetShaderiv(int shader, int pname, int[] params)static voidglGetShaderiv(int shader, int pname, java.nio.IntBuffer params)static java.lang.StringglGetShaderSource(int shader)static java.lang.StringglGetShaderSource(int shader, int maxLength)static voidglGetShaderSource(int shader, int[] length, java.nio.ByteBuffer source)static voidglGetShaderSource(int shader, java.nio.IntBuffer length, java.nio.ByteBuffer source)static floatglGetUniformf(int program, int location)static voidglGetUniformfv(int program, int location, float[] params)static voidglGetUniformfv(int program, int location, java.nio.FloatBuffer params)static intglGetUniformi(int program, int location)static voidglGetUniformiv(int program, int location, int[] params)static voidglGetUniformiv(int program, int location, java.nio.IntBuffer params)static intglGetUniformLocation(int program, java.nio.ByteBuffer name)static intglGetUniformLocation(int program, java.lang.CharSequence name)static voidglGetVertexAttribdv(int index, int pname, double[] params)static voidglGetVertexAttribdv(int index, int pname, java.nio.DoubleBuffer params)static voidglGetVertexAttribfv(int index, int pname, float[] params)static voidglGetVertexAttribfv(int index, int pname, java.nio.FloatBuffer params)static intglGetVertexAttribi(int index, int pname)static voidglGetVertexAttribiv(int index, int pname, int[] params)static voidglGetVertexAttribiv(int index, int pname, java.nio.IntBuffer params)static longglGetVertexAttribPointer(int index, int pname)static voidglGetVertexAttribPointerv(int index, int pname, org.lwjgl.PointerBuffer pointer)static booleanglIsProgram(int program)static booleanglIsShader(int shader)static voidglLinkProgram(int program)static voidglShaderSource(int shader, java.lang.CharSequence... strings)static voidglShaderSource(int shader, java.lang.CharSequence string)static voidglShaderSource(int shader, org.lwjgl.PointerBuffer strings, int[] length)static voidglShaderSource(int shader, org.lwjgl.PointerBuffer strings, java.nio.IntBuffer length)static voidglStencilFuncSeparate(int face, int func, int ref, int mask)static voidglStencilMaskSeparate(int face, int mask)static voidglStencilOpSeparate(int face, int sfail, int dpfail, int dppass)static voidglUniform1f(int location, float v0)static voidglUniform1fv(int location, float[] value)static voidglUniform1fv(int location, java.nio.FloatBuffer value)static voidglUniform1i(int location, int v0)static voidglUniform1iv(int location, int[] value)static voidglUniform1iv(int location, java.nio.IntBuffer value)static voidglUniform2f(int location, float v0, float v1)static voidglUniform2fv(int location, float[] value)static voidglUniform2fv(int location, java.nio.FloatBuffer value)static voidglUniform2i(int location, int v0, int v1)static voidglUniform2iv(int location, int[] value)static voidglUniform2iv(int location, java.nio.IntBuffer value)static voidglUniform3f(int location, float v0, float v1, float v2)static voidglUniform3fv(int location, float[] value)static voidglUniform3fv(int location, java.nio.FloatBuffer value)static voidglUniform3i(int location, int v0, int v1, int v2)static voidglUniform3iv(int location, int[] value)static voidglUniform3iv(int location, java.nio.IntBuffer value)static voidglUniform4f(int location, float v0, float v1, float v2, float v3)static voidglUniform4fv(int location, float[] value)static voidglUniform4fv(int location, java.nio.FloatBuffer value)static voidglUniform4i(int location, int v0, int v1, int v2, int v3)static voidglUniform4iv(int location, int[] value)static voidglUniform4iv(int location, java.nio.IntBuffer value)static voidglUniformMatrix2fv(int location, boolean transpose, float[] value)static voidglUniformMatrix2fv(int location, boolean transpose, java.nio.FloatBuffer value)static voidglUniformMatrix3fv(int location, boolean transpose, float[] value)static voidglUniformMatrix3fv(int location, boolean transpose, java.nio.FloatBuffer value)static voidglUniformMatrix4fv(int location, boolean transpose, float[] value)static voidglUniformMatrix4fv(int location, boolean transpose, java.nio.FloatBuffer value)static voidglUseProgram(int program)static voidglValidateProgram(int program)static voidglVertexAttrib1d(int index, double v0)static voidglVertexAttrib1dv(int index, double[] v)static voidglVertexAttrib1dv(int index, java.nio.DoubleBuffer v)static voidglVertexAttrib1f(int index, float v0)static voidglVertexAttrib1fv(int index, float[] v)static voidglVertexAttrib1fv(int index, java.nio.FloatBuffer v)static voidglVertexAttrib1s(int index, short v0)static voidglVertexAttrib1sv(int index, short[] v)static voidglVertexAttrib1sv(int index, java.nio.ShortBuffer v)static voidglVertexAttrib2d(int index, double v0, double v1)static voidglVertexAttrib2dv(int index, double[] v)static voidglVertexAttrib2dv(int index, java.nio.DoubleBuffer v)static voidglVertexAttrib2f(int index, float v0, float v1)static voidglVertexAttrib2fv(int index, float[] v)static voidglVertexAttrib2fv(int index, java.nio.FloatBuffer v)static voidglVertexAttrib2s(int index, short v0, short v1)static voidglVertexAttrib2sv(int index, short[] v)static voidglVertexAttrib2sv(int index, java.nio.ShortBuffer v)static voidglVertexAttrib3d(int index, double v0, double v1, double v2)static voidglVertexAttrib3dv(int index, double[] v)static voidglVertexAttrib3dv(int index, java.nio.DoubleBuffer v)static voidglVertexAttrib3f(int index, float v0, float v1, float v2)static voidglVertexAttrib3fv(int index, float[] v)static voidglVertexAttrib3fv(int index, java.nio.FloatBuffer v)static voidglVertexAttrib3s(int index, short v0, short v1, short v2)static voidglVertexAttrib3sv(int index, short[] v)static voidglVertexAttrib3sv(int index, java.nio.ShortBuffer v)static voidglVertexAttrib4bv(int index, java.nio.ByteBuffer v)static voidglVertexAttrib4d(int index, double v0, double v1, double v2, double v3)static voidglVertexAttrib4dv(int index, double[] v)static voidglVertexAttrib4dv(int index, java.nio.DoubleBuffer v)static voidglVertexAttrib4f(int index, float v0, float v1, float v2, float v3)static voidglVertexAttrib4fv(int index, float[] v)static voidglVertexAttrib4fv(int index, java.nio.FloatBuffer v)static voidglVertexAttrib4iv(int index, int[] v)static voidglVertexAttrib4iv(int index, java.nio.IntBuffer v)static voidglVertexAttrib4Nbv(int index, java.nio.ByteBuffer v)static voidglVertexAttrib4Niv(int index, int[] v)static voidglVertexAttrib4Niv(int index, java.nio.IntBuffer v)static voidglVertexAttrib4Nsv(int index, short[] v)static voidglVertexAttrib4Nsv(int index, java.nio.ShortBuffer v)static voidglVertexAttrib4Nub(int index, byte x, byte y, byte z, byte w)static voidglVertexAttrib4Nubv(int index, java.nio.ByteBuffer v)static voidglVertexAttrib4Nuiv(int index, int[] v)static voidglVertexAttrib4Nuiv(int index, java.nio.IntBuffer v)static voidglVertexAttrib4Nusv(int index, short[] v)static voidglVertexAttrib4Nusv(int index, java.nio.ShortBuffer v)static voidglVertexAttrib4s(int index, short v0, short v1, short v2, short v3)static voidglVertexAttrib4sv(int index, short[] v)static voidglVertexAttrib4sv(int index, java.nio.ShortBuffer v)static voidglVertexAttrib4ubv(int index, java.nio.ByteBuffer v)static voidglVertexAttrib4uiv(int index, int[] v)static voidglVertexAttrib4uiv(int index, java.nio.IntBuffer v)static voidglVertexAttrib4usv(int index, short[] v)static voidglVertexAttrib4usv(int index, java.nio.ShortBuffer v)static voidglVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, java.nio.ByteBuffer pointer)static voidglVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, float[] pointer)static voidglVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, java.nio.FloatBuffer pointer)static voidglVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, int[] pointer)static voidglVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, java.nio.IntBuffer pointer)static voidglVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, long pointer)static voidglVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, short[] pointer)static voidglVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, java.nio.ShortBuffer pointer)
-
-
-
Field Detail
-
GL_SHADING_LANGUAGE_VERSION
Accepted by thenameparameter of GetString.
-
GL_CURRENT_PROGRAM
Accepted by thepnameparameter 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 thepnameparameter 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 thetypeparameter of GetActiveUniform.
-
GL_VERTEX_SHADER
Accepted by thetypeargument of CreateShader and returned by theparamsparameter 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 thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_VERTEX_PROGRAM_POINT_SIZE, GL_VERTEX_PROGRAM_TWO_SIDE
Accepted by thecapparameter of Disable, Enable, and IsEnabled, and by thepnameparameter 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 thepnameparameter of GetVertexAttrib{dfi}v.
-
GL_VERTEX_ATTRIB_ARRAY_POINTER
Accepted by thepnameparameter of GetVertexAttribPointerv.
-
GL_FRAGMENT_SHADER
Accepted by thetypeargument of CreateShader and returned by theparamsparameter of GetShaderiv.
-
GL_MAX_FRAGMENT_UNIFORM_COMPONENTS
Accepted by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_FRAGMENT_SHADER_DERIVATIVE_HINT
Accepted by thetargetparameter of Hint and thepnameparameter 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 thepnameparameters of GetIntegerv, GetFloatv, and GetDoublev.
-
GL_POINT_SPRITE
Accepted by thecapparameter of Enable, Disable, and IsEnabled, by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev, and by thetargetparameter of TexEnvi, TexEnviv, TexEnvf, TexEnvfv, GetTexEnviv, and GetTexEnvfv.
-
GL_COORD_REPLACE
When thetargetparameter of TexEnvf, TexEnvfv, TexEnvi, TexEnviv, GetTexEnvfv, or GetTexEnviv is POINT_SPRITE, then the value ofpnamemay be.
-
GL_POINT_SPRITE_COORD_ORIGIN
Accepted by thepnameparameter of PointParameter{if}v.
-
GL_LOWER_LEFT, GL_UPPER_LEFT
Accepted by theparamparameter of PointParameter{if}v.
-
GL_BLEND_EQUATION_RGB, GL_BLEND_EQUATION_ALPHA
Accepted by thepnameparameter 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 thepnameparameter 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)
ReturnsTRUEifprogramis the name of a program object. Ifprogramis 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_SHADERFRAGMENT_SHADERGEOMETRY_SHADERTESS_CONTROL_SHADERTESS_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)
ReturnsTRUEifshaderis the name of a shader object. Ifshaderis 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 inshaderto 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. IflengthisNULL, each string is assumed to be null terminated. Iflengthis 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 inshaderto 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. IflengthisNULL, each string is assumed to be null terminated. Iflengthis 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 inshaderto 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. IflengthisNULL, each string is assumed to be null terminated. Iflengthis 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 ofcountvalues 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 ofcountvalues 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 ofcountvalues 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 ofcountvalues 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 ofcountvalues 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 ofcountvalues 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 ofcountvalues 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 ofcountvalues 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 ofcountvalues 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 ofcountvalues 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 ofcountvalues 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_TYPEDELETE_STATUSCOMPILE_STATUSINFO_LOG_LENGTHSHADER_SOURCE_LENGTHparams- 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_TYPEDELETE_STATUSCOMPILE_STATUSINFO_LOG_LENGTHSHADER_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 inshadersshaders- 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 bynamesize- 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 BGRAtype- the data type of each component in the array. The initial value is GL_FLOAT. One of:BYTEUNSIGNED_BYTESHORTUNSIGNED_SHORTINTUNSIGNED_INTHALF_FLOATFLOATDOUBLEUNSIGNED_INT_2_10_10_10_REVINT_2_10_10_10_REVFIXEDnormalized- 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_BUFFERtarget. 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 whichindexis 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 thanNULLis 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 bynamesize- 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_POINTERpointer- 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:NONEFRONT_LEFTFRONT_RIGHTBACK_LEFTBACK_RIGHTAUX0AUX1AUX2AUX3COLOR_ATTACHMENT0GL30.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_ADDFUNC_SUBTRACTFUNC_REVERSE_SUBTRACTMINMAXmodeAlpha- 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:FRONTBACKFRONT_AND_BACKsfail- the action to take when the stencil test fails. The initial value is GL_KEEP. One of:KEEPZEROREPLACEINCRINCR_WRAPDECRDECR_WRAPINVERTdpfail- 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:FRONTBACKFRONT_AND_BACKfunc- the test function. The initial value is GL_ALWAYS. One of:NEVERLESSLEQUALGREATERGEQUALEQUALNOTEQUALALWAYSref- the reference value for the stencil test.refis clamped to the range [0, 2n – 1], wherenis 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:FRONTBACKFRONT_AND_BACKmask- 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
-
-