Package org.lwjgl.opengl
Class GL41
- java.lang.Object
-
- org.lwjgl.opengl.GL41
-
public class GL41 extends java.lang.ObjectThe core OpenGL 4.1 functionality. OpenGL 4.1 implementations support revision 4.10 of the OpenGL Shading Language.Extensions promoted to core in this release:
-
-
Field Summary
Fields Modifier and Type Field and Description static intGL_ACTIVE_PROGRAMAccepted bytypeparameter to GetProgramPipelineiv.static intGL_ALL_SHADER_BITSAccepted bystagesparameter to UseProgramStages.static intGL_FIXEDAccepted by thetypeparameter of VertexAttribPointer.static intGL_FRAGMENT_SHADER_BIT
GL_GEOMETRY_SHADER_BITAccepted bystagesparameter to UseProgramStages.static intGL_HIGH_FLOAT
GL_HIGH_INTAccepted by theprecisiontypeparameter of GetShaderPrecisionFormat.static intGL_IMPLEMENTATION_COLOR_READ_FORMAT
GL_IMPLEMENTATION_COLOR_READ_TYPEAccepted by thevalueparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.static intGL_LAYER_PROVOKING_VERTEXAccepted by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev and GetInteger64v.static intGL_LOW_FLOAT
GL_LOW_INTAccepted by theprecisiontypeparameter of GetShaderPrecisionFormat.static intGL_MAX_FRAGMENT_UNIFORM_VECTORS
GL_MAX_VARYING_VECTORS
GL_MAX_VERTEX_UNIFORM_VECTORSAccepted by thevalueparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.static intGL_MAX_VIEWPORTSAccepted by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev and GetInteger64v.static intGL_MEDIUM_FLOAT
GL_MEDIUM_INTAccepted by theprecisiontypeparameter of GetShaderPrecisionFormat.static intGL_NUM_PROGRAM_BINARY_FORMATSAccepted by thepnameparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv and GetDoublev.static intGL_NUM_SHADER_BINARY_FORMATSAccepted by thevalueparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.static intGL_PROGRAM_BINARY_FORMATSAccepted by thepnameparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv and GetDoublev.static intGL_PROGRAM_BINARY_LENGTHAccepted by thepnameparameter of GetProgramiv.static intGL_PROGRAM_BINARY_RETRIEVABLE_HINTAccepted by thepnameparameter of ProgramParameteri and GetProgramiv.static intGL_PROGRAM_PIPELINE_BINDINGAccepted by thepnameparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.static intGL_PROGRAM_SEPARABLEAccepted by thepnameparameter of ProgramParameteri and GetProgramiv.static intGL_RGB565Accepted by theformatparameter of most commands taking sized internal formats.static intGL_SHADER_BINARY_FORMATS
GL_SHADER_COMPILERAccepted by thevalueparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.static intGL_TESS_CONTROL_SHADER_BIT
GL_TESS_EVALUATION_SHADER_BITAccepted bystagesparameter to UseProgramStages.static intGL_UNDEFINED_VERTEXReturned in thedataparameter from a Get query with apnameof LAYER_PROVOKING_VERTEX or VIEWPORT_INDEX_PROVOKING_VERTEX.static intGL_VERTEX_SHADER_BITAccepted bystagesparameter to UseProgramStages.static intGL_VIEWPORT_BOUNDS_RANGE
GL_VIEWPORT_INDEX_PROVOKING_VERTEX
GL_VIEWPORT_SUBPIXEL_BITSAccepted by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev and GetInteger64v.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidglActiveShaderProgram(int pipeline, int program)static voidglBindProgramPipeline(int pipeline)static voidglClearDepthf(float depth)static intglCreateShaderProgramv(int type, java.lang.CharSequence... strings)static intglCreateShaderProgramv(int type, java.lang.CharSequence string)static intglCreateShaderProgramv(int type, org.lwjgl.PointerBuffer strings)static voidglDeleteProgramPipelines(int pipeline)static voidglDeleteProgramPipelines(int[] pipelines)static voidglDeleteProgramPipelines(java.nio.IntBuffer pipelines)static voidglDepthRangeArrayv(int first, double[] v)static voidglDepthRangeArrayv(int first, java.nio.DoubleBuffer v)static voidglDepthRangef(float zNear, float zFar)static voidglDepthRangeIndexed(int index, double zNear, double zFar)static intglGenProgramPipelines()static voidglGenProgramPipelines(int[] pipelines)static voidglGenProgramPipelines(java.nio.IntBuffer pipelines)static voidglGetDoublei_v(int target, int index, double[] data)static voidglGetDoublei_v(int target, int index, java.nio.DoubleBuffer data)static doubleglGetDoublei(int target, int index)static voidglGetFloati_v(int target, int index, float[] data)static voidglGetFloati_v(int target, int index, java.nio.FloatBuffer data)static floatglGetFloati(int target, int index)static voidglGetProgramBinary(int program, int[] length, int[] binaryFormat, java.nio.ByteBuffer binary)static voidglGetProgramBinary(int program, java.nio.IntBuffer length, java.nio.IntBuffer binaryFormat, java.nio.ByteBuffer binary)static intglGetProgramPipelinei(int pipeline, int pname)static java.lang.StringglGetProgramPipelineInfoLog(int pipeline)static java.lang.StringglGetProgramPipelineInfoLog(int pipeline, int bufSize)static voidglGetProgramPipelineInfoLog(int pipeline, int[] length, java.nio.ByteBuffer infoLog)static voidglGetProgramPipelineInfoLog(int pipeline, java.nio.IntBuffer length, java.nio.ByteBuffer infoLog)static voidglGetProgramPipelineiv(int pipeline, int pname, int[] params)static voidglGetProgramPipelineiv(int pipeline, int pname, java.nio.IntBuffer params)static voidglGetShaderPrecisionFormat(int shadertype, int precisiontype, int[] range, int[] precision)static intglGetShaderPrecisionFormat(int shadertype, int precisiontype, java.nio.IntBuffer range)static voidglGetShaderPrecisionFormat(int shadertype, int precisiontype, java.nio.IntBuffer range, java.nio.IntBuffer precision)static voidglGetVertexAttribLdv(int index, int pname, double[] params)static voidglGetVertexAttribLdv(int index, int pname, java.nio.DoubleBuffer params)static booleanglIsProgramPipeline(int pipeline)static voidglProgramBinary(int program, int binaryFormat, java.nio.ByteBuffer binary)static voidglProgramParameteri(int program, int pname, int value)static voidglProgramUniform1d(int program, int location, double x)static voidglProgramUniform1dv(int program, int location, double[] value)static voidglProgramUniform1dv(int program, int location, java.nio.DoubleBuffer value)static voidglProgramUniform1f(int program, int location, float x)static voidglProgramUniform1fv(int program, int location, float[] value)static voidglProgramUniform1fv(int program, int location, java.nio.FloatBuffer value)static voidglProgramUniform1i(int program, int location, int x)static voidglProgramUniform1iv(int program, int location, int[] value)static voidglProgramUniform1iv(int program, int location, java.nio.IntBuffer value)static voidglProgramUniform1ui(int program, int location, int x)static voidglProgramUniform1uiv(int program, int location, int[] value)static voidglProgramUniform1uiv(int program, int location, java.nio.IntBuffer value)static voidglProgramUniform2d(int program, int location, double x, double y)static voidglProgramUniform2dv(int program, int location, double[] value)static voidglProgramUniform2dv(int program, int location, java.nio.DoubleBuffer value)static voidglProgramUniform2f(int program, int location, float x, float y)static voidglProgramUniform2fv(int program, int location, float[] value)static voidglProgramUniform2fv(int program, int location, java.nio.FloatBuffer value)static voidglProgramUniform2i(int program, int location, int x, int y)static voidglProgramUniform2iv(int program, int location, int[] value)static voidglProgramUniform2iv(int program, int location, java.nio.IntBuffer value)static voidglProgramUniform2ui(int program, int location, int x, int y)static voidglProgramUniform2uiv(int program, int location, int[] value)static voidglProgramUniform2uiv(int program, int location, java.nio.IntBuffer value)static voidglProgramUniform3d(int program, int location, double x, double y, double z)static voidglProgramUniform3dv(int program, int location, double[] value)static voidglProgramUniform3dv(int program, int location, java.nio.DoubleBuffer value)static voidglProgramUniform3f(int program, int location, float x, float y, float z)static voidglProgramUniform3fv(int program, int location, float[] value)static voidglProgramUniform3fv(int program, int location, java.nio.FloatBuffer value)static voidglProgramUniform3i(int program, int location, int x, int y, int z)static voidglProgramUniform3iv(int program, int location, int[] value)static voidglProgramUniform3iv(int program, int location, java.nio.IntBuffer value)static voidglProgramUniform3ui(int program, int location, int x, int y, int z)static voidglProgramUniform3uiv(int program, int location, int[] value)static voidglProgramUniform3uiv(int program, int location, java.nio.IntBuffer value)static voidglProgramUniform4d(int program, int location, double x, double y, double z, double w)static voidglProgramUniform4dv(int program, int location, double[] value)static voidglProgramUniform4dv(int program, int location, java.nio.DoubleBuffer value)static voidglProgramUniform4f(int program, int location, float x, float y, float z, float w)static voidglProgramUniform4fv(int program, int location, float[] value)static voidglProgramUniform4fv(int program, int location, java.nio.FloatBuffer value)static voidglProgramUniform4i(int program, int location, int x, int y, int z, int w)static voidglProgramUniform4iv(int program, int location, int[] value)static voidglProgramUniform4iv(int program, int location, java.nio.IntBuffer value)static voidglProgramUniform4ui(int program, int location, int x, int y, int z, int w)static voidglProgramUniform4uiv(int program, int location, int[] value)static voidglProgramUniform4uiv(int program, int location, java.nio.IntBuffer value)static voidglProgramUniformMatrix2dv(int program, int location, boolean transpose, double[] value)static voidglProgramUniformMatrix2dv(int program, int location, boolean transpose, java.nio.DoubleBuffer value)static voidglProgramUniformMatrix2fv(int program, int location, boolean transpose, float[] value)static voidglProgramUniformMatrix2fv(int program, int location, boolean transpose, java.nio.FloatBuffer value)static voidglProgramUniformMatrix2x3dv(int program, int location, boolean transpose, double[] value)static voidglProgramUniformMatrix2x3dv(int program, int location, boolean transpose, java.nio.DoubleBuffer value)static voidglProgramUniformMatrix2x3fv(int program, int location, boolean transpose, float[] value)static voidglProgramUniformMatrix2x3fv(int program, int location, boolean transpose, java.nio.FloatBuffer value)static voidglProgramUniformMatrix2x4dv(int program, int location, boolean transpose, double[] value)static voidglProgramUniformMatrix2x4dv(int program, int location, boolean transpose, java.nio.DoubleBuffer value)static voidglProgramUniformMatrix2x4fv(int program, int location, boolean transpose, float[] value)static voidglProgramUniformMatrix2x4fv(int program, int location, boolean transpose, java.nio.FloatBuffer value)static voidglProgramUniformMatrix3dv(int program, int location, boolean transpose, double[] value)static voidglProgramUniformMatrix3dv(int program, int location, boolean transpose, java.nio.DoubleBuffer value)static voidglProgramUniformMatrix3fv(int program, int location, boolean transpose, float[] value)static voidglProgramUniformMatrix3fv(int program, int location, boolean transpose, java.nio.FloatBuffer value)static voidglProgramUniformMatrix3x2dv(int program, int location, boolean transpose, double[] value)static voidglProgramUniformMatrix3x2dv(int program, int location, boolean transpose, java.nio.DoubleBuffer value)static voidglProgramUniformMatrix3x2fv(int program, int location, boolean transpose, float[] value)static voidglProgramUniformMatrix3x2fv(int program, int location, boolean transpose, java.nio.FloatBuffer value)static voidglProgramUniformMatrix3x4dv(int program, int location, boolean transpose, double[] value)static voidglProgramUniformMatrix3x4dv(int program, int location, boolean transpose, java.nio.DoubleBuffer value)static voidglProgramUniformMatrix3x4fv(int program, int location, boolean transpose, float[] value)static voidglProgramUniformMatrix3x4fv(int program, int location, boolean transpose, java.nio.FloatBuffer value)static voidglProgramUniformMatrix4dv(int program, int location, boolean transpose, double[] value)static voidglProgramUniformMatrix4dv(int program, int location, boolean transpose, java.nio.DoubleBuffer value)static voidglProgramUniformMatrix4fv(int program, int location, boolean transpose, float[] value)static voidglProgramUniformMatrix4fv(int program, int location, boolean transpose, java.nio.FloatBuffer value)static voidglProgramUniformMatrix4x2dv(int program, int location, boolean transpose, double[] value)static voidglProgramUniformMatrix4x2dv(int program, int location, boolean transpose, java.nio.DoubleBuffer value)static voidglProgramUniformMatrix4x2fv(int program, int location, boolean transpose, float[] value)static voidglProgramUniformMatrix4x2fv(int program, int location, boolean transpose, java.nio.FloatBuffer value)static voidglProgramUniformMatrix4x3dv(int program, int location, boolean transpose, double[] value)static voidglProgramUniformMatrix4x3dv(int program, int location, boolean transpose, java.nio.DoubleBuffer value)static voidglProgramUniformMatrix4x3fv(int program, int location, boolean transpose, float[] value)static voidglProgramUniformMatrix4x3fv(int program, int location, boolean transpose, java.nio.FloatBuffer value)static voidglReleaseShaderCompiler()static voidglScissorArrayv(int first, int[] v)static voidglScissorArrayv(int first, java.nio.IntBuffer v)static voidglScissorIndexed(int index, int left, int bottom, int width, int height)static voidglScissorIndexedv(int index, int[] v)static voidglScissorIndexedv(int index, java.nio.IntBuffer v)static voidglShaderBinary(int[] shaders, int binaryformat, java.nio.ByteBuffer binary)static voidglShaderBinary(java.nio.IntBuffer shaders, int binaryformat, java.nio.ByteBuffer binary)static voidglUseProgramStages(int pipeline, int stages, int program)static voidglValidateProgramPipeline(int pipeline)static voidglVertexAttribL1d(int index, double x)static voidglVertexAttribL1dv(int index, double[] v)static voidglVertexAttribL1dv(int index, java.nio.DoubleBuffer v)static voidglVertexAttribL2d(int index, double x, double y)static voidglVertexAttribL2dv(int index, double[] v)static voidglVertexAttribL2dv(int index, java.nio.DoubleBuffer v)static voidglVertexAttribL3d(int index, double x, double y, double z)static voidglVertexAttribL3dv(int index, double[] v)static voidglVertexAttribL3dv(int index, java.nio.DoubleBuffer v)static voidglVertexAttribL4d(int index, double x, double y, double z, double w)static voidglVertexAttribL4dv(int index, double[] v)static voidglVertexAttribL4dv(int index, java.nio.DoubleBuffer v)static voidglVertexAttribLPointer(int index, int size, int stride, java.nio.DoubleBuffer pointer)static voidglVertexAttribLPointer(int index, int size, int type, int stride, java.nio.ByteBuffer pointer)static voidglVertexAttribLPointer(int index, int size, int type, int stride, long pointer)static voidglViewportArrayv(int first, float[] v)static voidglViewportArrayv(int first, java.nio.FloatBuffer v)static voidglViewportIndexedf(int index, float x, float y, float w, float h)static voidglViewportIndexedfv(int index, float[] v)static voidglViewportIndexedfv(int index, java.nio.FloatBuffer v)
-
-
-
Field Detail
-
GL_SHADER_COMPILER, GL_SHADER_BINARY_FORMATS, GL_NUM_SHADER_BINARY_FORMATS, GL_MAX_VERTEX_UNIFORM_VECTORS, GL_MAX_VARYING_VECTORS, GL_MAX_FRAGMENT_UNIFORM_VECTORS, GL_IMPLEMENTATION_COLOR_READ_TYPE, GL_IMPLEMENTATION_COLOR_READ_FORMAT
Accepted by thevalueparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.
-
GL_FIXED
Accepted by thetypeparameter of VertexAttribPointer.
-
GL_LOW_FLOAT, GL_MEDIUM_FLOAT, GL_HIGH_FLOAT, GL_LOW_INT, GL_MEDIUM_INT, GL_HIGH_INT
Accepted by theprecisiontypeparameter of GetShaderPrecisionFormat.
-
GL_RGB565
Accepted by theformatparameter of most commands taking sized internal formats.
-
GL_PROGRAM_BINARY_RETRIEVABLE_HINT
Accepted by thepnameparameter of ProgramParameteri and GetProgramiv.
-
GL_PROGRAM_BINARY_LENGTH
Accepted by thepnameparameter of GetProgramiv.
-
GL_NUM_PROGRAM_BINARY_FORMATS, GL_PROGRAM_BINARY_FORMATS
Accepted by thepnameparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv and GetDoublev.
-
GL_VERTEX_SHADER_BIT, GL_FRAGMENT_SHADER_BIT, GL_GEOMETRY_SHADER_BIT, GL_TESS_CONTROL_SHADER_BIT, GL_TESS_EVALUATION_SHADER_BIT, GL_ALL_SHADER_BITS
Accepted bystagesparameter to UseProgramStages.
-
GL_PROGRAM_SEPARABLE
Accepted by thepnameparameter of ProgramParameteri and GetProgramiv.
-
GL_ACTIVE_PROGRAM
Accepted bytypeparameter to GetProgramPipelineiv.
-
GL_PROGRAM_PIPELINE_BINDING
Accepted by thepnameparameter of GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev.
-
GL_MAX_VIEWPORTS, GL_VIEWPORT_SUBPIXEL_BITS, GL_VIEWPORT_BOUNDS_RANGE, GL_LAYER_PROVOKING_VERTEX, GL_VIEWPORT_INDEX_PROVOKING_VERTEX
Accepted by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev and GetInteger64v.
-
GL_UNDEFINED_VERTEX
Returned in thedataparameter from a Get query with apnameof LAYER_PROVOKING_VERTEX or VIEWPORT_INDEX_PROVOKING_VERTEX.
-
-
Method Detail
-
glReleaseShaderCompiler
public static void glReleaseShaderCompiler()
Releases resources allocated by the shader compiler. This is a hint from the application, and does not prevent later use of the shader compiler.
-
glShaderBinary
public static void glShaderBinary(java.nio.IntBuffer shaders, int binaryformat, java.nio.ByteBuffer binary)Loads pre-compiled shader binaries.- Parameters:
shaders- an array of shader handles into which to load pre-compiled shader binariesbinaryformat- the format of the shader binaries contained inbinarybinary- an array of bytes containing pre-compiled binary shader code
-
glGetShaderPrecisionFormat
public static void glGetShaderPrecisionFormat(int shadertype, int precisiontype, java.nio.IntBuffer range, java.nio.IntBuffer precision)Retrieves the range and precision for numeric formats supported by the shader compiler.- Parameters:
shadertype- the type of shader whose precision to query. One of:VERTEX_SHADERFRAGMENT_SHADERprecisiontype- the numeric format whose precision and range to queryrange- the address of array of two integers into which encodings of the implementation's numeric range are returnedprecision- the address of an integer into which the numeric precision of the implementation is written
-
glGetShaderPrecisionFormat
public static int glGetShaderPrecisionFormat(int shadertype, int precisiontype, java.nio.IntBuffer range)Retrieves the range and precision for numeric formats supported by the shader compiler.- Parameters:
shadertype- the type of shader whose precision to query. One of:VERTEX_SHADERFRAGMENT_SHADERprecisiontype- the numeric format whose precision and range to queryrange- the address of array of two integers into which encodings of the implementation's numeric range are returned
-
glDepthRangef
public static void glDepthRangef(float zNear, float zFar)Specifies mapping of depth values from normalized device coordinates to window coordinates- Parameters:
zNear- the mapping of the near clipping plane to window coordinates. The initial value is 0.0f.zFar- the mapping of the far clipping plane to window coordinates. The initial value is 1.0f.
-
glClearDepthf
public static void glClearDepthf(float depth)
Specifies the clear value for the depth buffer- Parameters:
depth- the depth value used when the depth buffer is cleared. The initial value is 1.0f.
-
glGetProgramBinary
public static void glGetProgramBinary(int program, java.nio.IntBuffer length, java.nio.IntBuffer binaryFormat, java.nio.ByteBuffer binary)Returns a binary representation of a program object's compiled and linked executable source.- Parameters:
program- the name of a program object whose binary representation to retrievelength- the address of a variable to receive the number of bytes written intobinarybinaryFormat- a variable to receive a token indicating the format of the binary data returned by the GLbinary- an array into which the GL will returnprogram's binary representation
-
glProgramBinary
public static void glProgramBinary(int program, int binaryFormat, java.nio.ByteBuffer binary)Loads a program object with a program binary.- Parameters:
program- the name of a program object into which to load a program binarybinaryFormat- the format of the binary data in binarybinary- an array containing the binary to be loaded intoprogram
-
glProgramParameteri
public static void glProgramParameteri(int program, int pname, int value)Specifies the integer value of a program object parameter.- Parameters:
program- the name of a program object whose parameter to modifypname- the name of the parameter to modify. One of:PROGRAM_BINARY_RETRIEVABLE_HINTPROGRAM_SEPARABLEvalue- the new value of the parameter specified bypnameforprogram
-
glUseProgramStages
public static void glUseProgramStages(int pipeline, int stages, int program)Binds stages of a program object to a program pipeline.- Parameters:
pipeline- the program pipeline object to which to bind stages fromprogramstages- a set of program stages to bind to the program pipeline objectprogram- the program object containing the shader executables to use inpipeline
-
glActiveShaderProgram
public static void glActiveShaderProgram(int pipeline, int program)Sets the active program object for a program pipeline object.- Parameters:
pipeline- the program pipeline object to set the active program object forprogram- the program object to set as the active program pipeline objectpipeline
-
glCreateShaderProgramv
public static int glCreateShaderProgramv(int type, org.lwjgl.PointerBuffer strings) public static int glCreateShaderProgramv(int type, java.lang.CharSequence... strings)Creates a stand-alone program from an array of null-terminated source code strings.glCreateShaderProgramis equivalent (assuming no errors are generated) to:const GLuint shader = glCreateShader(type); if (shader) { glShaderSource(shader, count, strings, NULL); glCompileShader(shader); const GLuint program = glCreateProgram(); if (program) { GLint compiled = GL_FALSE; glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); glProgramParameteri(program, GL_PROGRAM_SEPARABLE, GL_TRUE); if (compiled) { glAttachShader(program, shader); glLinkProgram(program); glDetachShader(program, shader); } // append-shader-info-log-to-program-info-log } glDeleteShader(shader); return program; } else { return 0; }The program object created by glCreateShaderProgram has its GL_PROGRAM_SEPARABLE status set to GL_TRUE.
- Parameters:
type- the type of shader to createstrings- an array of pointers to source code strings from which to create the program object
-
glCreateShaderProgramv
public static int glCreateShaderProgramv(int type, java.lang.CharSequence string)Creates a stand-alone program from an array of null-terminated source code strings.glCreateShaderProgramis equivalent (assuming no errors are generated) to:const GLuint shader = glCreateShader(type); if (shader) { glShaderSource(shader, count, strings, NULL); glCompileShader(shader); const GLuint program = glCreateProgram(); if (program) { GLint compiled = GL_FALSE; glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); glProgramParameteri(program, GL_PROGRAM_SEPARABLE, GL_TRUE); if (compiled) { glAttachShader(program, shader); glLinkProgram(program); glDetachShader(program, shader); } // append-shader-info-log-to-program-info-log } glDeleteShader(shader); return program; } else { return 0; }The program object created by glCreateShaderProgram has its GL_PROGRAM_SEPARABLE status set to GL_TRUE.
- Parameters:
type- the type of shader to create
-
glBindProgramPipeline
public static void glBindProgramPipeline(int pipeline)
Binds a program pipeline to the current context.- Parameters:
pipeline- the name of the pipeline object to bind to the context
-
glDeleteProgramPipelines
public static void glDeleteProgramPipelines(java.nio.IntBuffer pipelines)
Deletes program pipeline objects.- Parameters:
pipelines- an array of names of program pipeline objects to delete
-
glDeleteProgramPipelines
public static void glDeleteProgramPipelines(int pipeline)
Deletes program pipeline objects.
-
glGenProgramPipelines
public static void glGenProgramPipelines(java.nio.IntBuffer pipelines)
Reserves program pipeline object names.- Parameters:
pipelines- an array of into which the reserved names will be written
-
glGenProgramPipelines
public static int glGenProgramPipelines()
Reserves program pipeline object names.
-
glIsProgramPipeline
public static boolean glIsProgramPipeline(int pipeline)
Determines if a name corresponds to a program pipeline object.- Parameters:
pipeline- a value that may be the name of a program pipeline object
-
glGetProgramPipelineiv
public static void glGetProgramPipelineiv(int pipeline, int pname, java.nio.IntBuffer params)Retrieves properties of a program pipeline object.- Parameters:
pipeline- the name of a program pipeline object whose parameter retrievepname- the name of the parameter to retrieve. One of:ACTIVE_PROGRAMINFO_LOG_LENGTHVERTEX_SHADERFRAGMENT_SHADERGEOMETRY_SHADERTESS_CONTROL_SHADERTESS_EVALUATION_SHADERparams- a variable into which will be written the value or values ofpnameforpipeline
-
glGetProgramPipelinei
public static int glGetProgramPipelinei(int pipeline, int pname)Retrieves properties of a program pipeline object.- Parameters:
pipeline- the name of a program pipeline object whose parameter retrievepname- the name of the parameter to retrieve. One of:ACTIVE_PROGRAMINFO_LOG_LENGTHVERTEX_SHADERFRAGMENT_SHADERGEOMETRY_SHADERTESS_CONTROL_SHADERTESS_EVALUATION_SHADER
-
glProgramUniform1i
public static void glProgramUniform1i(int program, int location, int x)Specifies the value of an int uniform variable for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedx- the uniform x value
-
glProgramUniform2i
public static void glProgramUniform2i(int program, int location, int x, int y)Specifies the value of an ivec2 uniform variable for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedx- the uniform x valuey- the uniform y value
-
glProgramUniform3i
public static void glProgramUniform3i(int program, int location, int x, int y, int z)Specifies the value of an ivec3 uniform variable for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedx- the uniform x valuey- the uniform y valuez- the uniform z value
-
glProgramUniform4i
public static void glProgramUniform4i(int program, int location, int x, int y, int z, int w)Specifies the value of an ivec4 uniform variable for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedx- the uniform x valuey- the uniform y valuez- the uniform z valuew- the uniform w value
-
glProgramUniform1ui
public static void glProgramUniform1ui(int program, int location, int x)Specifies the value of a uint uniform variable for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedx- the uniform x value
-
glProgramUniform2ui
public static void glProgramUniform2ui(int program, int location, int x, int y)Specifies the value of a uvec2 uniform variable for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedx- the uniform x valuey- the uniform y value
-
glProgramUniform3ui
public static void glProgramUniform3ui(int program, int location, int x, int y, int z)Specifies the value of a uvec3 uniform variable for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedx- the uniform x valuey- the uniform y valuez- the uniform z value
-
glProgramUniform4ui
public static void glProgramUniform4ui(int program, int location, int x, int y, int z, int w)Specifies the value of a uvec4 uniform variable for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedx- the uniform x valuey- the uniform y valuez- the uniform z valuew- the uniform w value
-
glProgramUniform1f
public static void glProgramUniform1f(int program, int location, float x)Specifies the value of a float uniform variable for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedx- the uniform x value
-
glProgramUniform2f
public static void glProgramUniform2f(int program, int location, float x, float y)Specifies the value of a vec2 uniform variable for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedx- the uniform x valuey- the uniform y value
-
glProgramUniform3f
public static void glProgramUniform3f(int program, int location, float x, float y, float z)Specifies the value of a vec3 uniform variable for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedx- the uniform x valuey- the uniform y valuez- the uniform z value
-
glProgramUniform4f
public static void glProgramUniform4f(int program, int location, float x, float y, float z, float w)Specifies the value of a vec4 uniform variable for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedx- the uniform x valuey- the uniform y valuez- the uniform z valuew- the uniform w value
-
glProgramUniform1d
public static void glProgramUniform1d(int program, int location, double x)Specifies the value of a double uniform variable for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedx- the uniform x value
-
glProgramUniform2d
public static void glProgramUniform2d(int program, int location, double x, double y)Specifies the value of a dvec2 uniform variable for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedx- the uniform x valuey- the uniform y value
-
glProgramUniform3d
public static void glProgramUniform3d(int program, int location, double x, double y, double z)Specifies the value of a dvec3 uniform variable for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedx- the uniform x valuey- the uniform y valuez- the uniform z value
-
glProgramUniform4d
public static void glProgramUniform4d(int program, int location, double x, double y, double z, double w)Specifies the value of a dvec4 uniform variable for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedx- the uniform x valuey- the uniform y valuez- the uniform z valuew- the uniform w value
-
glProgramUniform1iv
public static void glProgramUniform1iv(int program, int location, java.nio.IntBuffer value)Specifies the value of a single float uniform variable or a float uniform variable array for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedvalue- an array ofcountvalues that will be used to update the specified uniform variable
-
glProgramUniform2iv
public static void glProgramUniform2iv(int program, int location, java.nio.IntBuffer value)Specifies the value of a single ivec2 uniform variable or an ivec2 uniform variable array for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedvalue- an array ofcountvalues that will be used to update the specified uniform variable
-
glProgramUniform3iv
public static void glProgramUniform3iv(int program, int location, java.nio.IntBuffer value)Specifies the value of a single ivec3 uniform variable or an ivec3 uniform variable array for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedvalue- an array ofcountvalues that will be used to update the specified uniform variable
-
glProgramUniform4iv
public static void glProgramUniform4iv(int program, int location, java.nio.IntBuffer value)Specifies the value of a single ivec4 uniform variable or an ivec4 uniform variable array for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedvalue- an array ofcountvalues that will be used to update the specified uniform variable
-
glProgramUniform1uiv
public static void glProgramUniform1uiv(int program, int location, java.nio.IntBuffer value)Specifies the value of a single uint uniform variable or a uint uniform variable array for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedvalue- an array ofcountvalues that will be used to update the specified uniform variable
-
glProgramUniform2uiv
public static void glProgramUniform2uiv(int program, int location, java.nio.IntBuffer value)Specifies the value of a single uvec2 uniform variable or a uvec2 uniform variable array for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedvalue- an array ofcountvalues that will be used to update the specified uniform variable
-
glProgramUniform3uiv
public static void glProgramUniform3uiv(int program, int location, java.nio.IntBuffer value)Specifies the value of a single uvec3 uniform variable or a uvec3 uniform variable array for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedvalue- an array ofcountvalues that will be used to update the specified uniform variable
-
glProgramUniform4uiv
public static void glProgramUniform4uiv(int program, int location, java.nio.IntBuffer value)Specifies the value of a single uvec4 uniform variable or a uvec4 uniform variable array for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedvalue- an array ofcountvalues that will be used to update the specified uniform variable
-
glProgramUniform1fv
public static void glProgramUniform1fv(int program, int location, java.nio.FloatBuffer value)Specifies the value of a single float uniform variable or a float uniform variable array for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedvalue- an array ofcountvalues that will be used to update the specified uniform variable
-
glProgramUniform2fv
public static void glProgramUniform2fv(int program, int location, java.nio.FloatBuffer value)Specifies the value of a single vec2 uniform variable or a vec2 uniform variable array for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedvalue- an array ofcountvalues that will be used to update the specified uniform variable
-
glProgramUniform3fv
public static void glProgramUniform3fv(int program, int location, java.nio.FloatBuffer value)Specifies the value of a single vec3 uniform variable or a vec3 uniform variable array for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedvalue- an array ofcountvalues that will be used to update the specified uniform variable
-
glProgramUniform4fv
public static void glProgramUniform4fv(int program, int location, java.nio.FloatBuffer value)Specifies the value of a single vec4 uniform variable or a vec4 uniform variable array for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedvalue- an array ofcountvalues that will be used to update the specified uniform variable
-
glProgramUniform1dv
public static void glProgramUniform1dv(int program, int location, java.nio.DoubleBuffer value)Specifies the value of a single double uniform variable or a double uniform variable array for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedvalue- an array ofcountvalues that will be used to update the specified uniform variable
-
glProgramUniform2dv
public static void glProgramUniform2dv(int program, int location, java.nio.DoubleBuffer value)Specifies the value of a single dvec2 uniform variable or a dvec2 uniform variable array for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedvalue- an array ofcountvalues that will be used to update the specified uniform variable
-
glProgramUniform3dv
public static void glProgramUniform3dv(int program, int location, java.nio.DoubleBuffer value)Specifies the value of a single dvec3 uniform variable or a dvec3 uniform variable array for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedvalue- an array ofcountvalues that will be used to update the specified uniform variable
-
glProgramUniform4dv
public static void glProgramUniform4dv(int program, int location, java.nio.DoubleBuffer value)Specifies the value of a single dvec4 uniform variable or a dvec4 uniform variable array for a specified program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedvalue- an array ofcountvalues that will be used to update the specified uniform variable
-
glProgramUniformMatrix2fv
public static void glProgramUniformMatrix2fv(int program, 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:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedtranspose- whether to transpose the matrix as the values are loaded into the uniform variablevalue- an array ofcountvalues that will be used to update the specified uniform matrix variable
-
glProgramUniformMatrix3fv
public static void glProgramUniformMatrix3fv(int program, 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:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedtranspose- whether to transpose the matrix as the values are loaded into the uniform variablevalue- an array ofcountvalues that will be used to update the specified uniform matrix variable
-
glProgramUniformMatrix4fv
public static void glProgramUniformMatrix4fv(int program, 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:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedtranspose- whether to transpose the matrix as the values are loaded into the uniform variablevalue- an array ofcountvalues that will be used to update the specified uniform matrix variable
-
glProgramUniformMatrix2dv
public static void glProgramUniformMatrix2dv(int program, int location, boolean transpose, java.nio.DoubleBuffer value)Specifies the value of a single dmat2 uniform variable or a dmat2 uniform variable array for the current program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedtranspose- whether to transpose the matrix as the values are loaded into the uniform variablevalue- an array ofcountvalues that will be used to update the specified uniform matrix variable
-
glProgramUniformMatrix3dv
public static void glProgramUniformMatrix3dv(int program, int location, boolean transpose, java.nio.DoubleBuffer value)Specifies the value of a single dmat3 uniform variable or a dmat3 uniform variable array for the current program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedtranspose- whether to transpose the matrix as the values are loaded into the uniform variablevalue- an array ofcountvalues that will be used to update the specified uniform matrix variable
-
glProgramUniformMatrix4dv
public static void glProgramUniformMatrix4dv(int program, int location, boolean transpose, java.nio.DoubleBuffer value)Specifies the value of a single dmat4 uniform variable or a dmat4 uniform variable array for the current program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedtranspose- whether to transpose the matrix as the values are loaded into the uniform variablevalue- an array ofcountvalues that will be used to update the specified uniform matrix variable
-
glProgramUniformMatrix2x3fv
public static void glProgramUniformMatrix2x3fv(int program, int location, boolean transpose, java.nio.FloatBuffer value)Specifies the value of a single mat2x3 uniform variable or a mat2x3 uniform variable array for the current program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedtranspose- whether to transpose the matrix as the values are loaded into the uniform variablevalue- an array ofcountvalues that will be used to update the specified uniform matrix variable
-
glProgramUniformMatrix3x2fv
public static void glProgramUniformMatrix3x2fv(int program, int location, boolean transpose, java.nio.FloatBuffer value)Specifies the value of a single mat3x2 uniform variable or a mat3x2 uniform variable array for the current program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedtranspose- whether to transpose the matrix as the values are loaded into the uniform variablevalue- an array ofcountvalues that will be used to update the specified uniform matrix variable
-
glProgramUniformMatrix2x4fv
public static void glProgramUniformMatrix2x4fv(int program, int location, boolean transpose, java.nio.FloatBuffer value)Specifies the value of a single mat2x4 uniform variable or a mat2x4 uniform variable array for the current program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedtranspose- whether to transpose the matrix as the values are loaded into the uniform variablevalue- an array ofcountvalues that will be used to update the specified uniform matrix variable
-
glProgramUniformMatrix4x2fv
public static void glProgramUniformMatrix4x2fv(int program, int location, boolean transpose, java.nio.FloatBuffer value)Specifies the value of a single mat4x2 uniform variable or a mat4x2 uniform variable array for the current program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedtranspose- whether to transpose the matrix as the values are loaded into the uniform variablevalue- an array ofcountvalues that will be used to update the specified uniform matrix variable
-
glProgramUniformMatrix3x4fv
public static void glProgramUniformMatrix3x4fv(int program, int location, boolean transpose, java.nio.FloatBuffer value)Specifies the value of a single mat3x4 uniform variable or a mat3x4 uniform variable array for the current program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedtranspose- whether to transpose the matrix as the values are loaded into the uniform variablevalue- an array ofcountvalues that will be used to update the specified uniform matrix variable
-
glProgramUniformMatrix4x3fv
public static void glProgramUniformMatrix4x3fv(int program, int location, boolean transpose, java.nio.FloatBuffer value)Specifies the value of a single mat4x3 uniform variable or a mat4x3 uniform variable array for the current program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedtranspose- whether to transpose the matrix as the values are loaded into the uniform variablevalue- an array ofcountvalues that will be used to update the specified uniform matrix variable
-
glProgramUniformMatrix2x3dv
public static void glProgramUniformMatrix2x3dv(int program, int location, boolean transpose, java.nio.DoubleBuffer value)Specifies the value of a single dmat2x3 uniform variable or a dmat2x3 uniform variable array for the current program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedtranspose- whether to transpose the matrix as the values are loaded into the uniform variablevalue- an array ofcountvalues that will be used to update the specified uniform matrix variable
-
glProgramUniformMatrix3x2dv
public static void glProgramUniformMatrix3x2dv(int program, int location, boolean transpose, java.nio.DoubleBuffer value)Specifies the value of a single dmat3x2 uniform variable or a dmat3x2 uniform variable array for the current program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedtranspose- whether to transpose the matrix as the values are loaded into the uniform variablevalue- an array ofcountvalues that will be used to update the specified uniform matrix variable
-
glProgramUniformMatrix2x4dv
public static void glProgramUniformMatrix2x4dv(int program, int location, boolean transpose, java.nio.DoubleBuffer value)Specifies the value of a single dmat2x4 uniform variable or a dmat2x4 uniform variable array for the current program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedtranspose- whether to transpose the matrix as the values are loaded into the uniform variablevalue- an array ofcountvalues that will be used to update the specified uniform matrix variable
-
glProgramUniformMatrix4x2dv
public static void glProgramUniformMatrix4x2dv(int program, int location, boolean transpose, java.nio.DoubleBuffer value)Specifies the value of a single dmat4x2 uniform variable or a dmat4x2 uniform variable array for the current program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedtranspose- whether to transpose the matrix as the values are loaded into the uniform variablevalue- an array ofcountvalues that will be used to update the specified uniform matrix variable
-
glProgramUniformMatrix3x4dv
public static void glProgramUniformMatrix3x4dv(int program, int location, boolean transpose, java.nio.DoubleBuffer value)Specifies the value of a single dmat3x4 uniform variable or a dmat3x4 uniform variable array for the current program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedtranspose- whether to transpose the matrix as the values are loaded into the uniform variablevalue- an array ofcountvalues that will be used to update the specified uniform matrix variable
-
glProgramUniformMatrix4x3dv
public static void glProgramUniformMatrix4x3dv(int program, int location, boolean transpose, java.nio.DoubleBuffer value)Specifies the value of a single dmat4x3 uniform variable or a dmat4x3 uniform variable array for the current program object.- Parameters:
program- the handle of the program containing the uniform variable to be modifiedlocation- the location of the uniform variable to be modifiedtranspose- whether to transpose the matrix as the values are loaded into the uniform variablevalue- an array ofcountvalues that will be used to update the specified uniform matrix variable
-
glValidateProgramPipeline
public static void glValidateProgramPipeline(int pipeline)
Validates a program pipeline object against current GL state.- Parameters:
pipeline- the name of a program pipeline object to validate
-
glGetProgramPipelineInfoLog
public static void glGetProgramPipelineInfoLog(int pipeline, java.nio.IntBuffer length, java.nio.ByteBuffer infoLog)Retrieves the info log string from a program pipeline object.- Parameters:
pipeline- the name of a program pipeline object from which to retrieve the info loglength- a variable into which will be written the number of characters written intoinfoLoginfoLog- an array of characters into which will be written the info log forpipeline
-
glGetProgramPipelineInfoLog
public static java.lang.String glGetProgramPipelineInfoLog(int pipeline, int bufSize)Retrieves the info log string from a program pipeline object.- Parameters:
pipeline- the name of a program pipeline object from which to retrieve the info logbufSize- the maximum number of characters, including the null terminator, that may be written intoinfoLog
-
glGetProgramPipelineInfoLog
public static java.lang.String glGetProgramPipelineInfoLog(int pipeline)
Retrieves the info log string from a program pipeline object.- Parameters:
pipeline- the name of a program pipeline object from which to retrieve the info log
-
glVertexAttribL1d
public static void glVertexAttribL1d(int index, double x)Specifies the value of a generic vertex attribute. The y and z components are implicitly set to 0.0 and w to 1.0.- Parameters:
index- the index of the generic vertex attribute to be modifiedx- the vertex attribute x component
-
glVertexAttribL2d
public static void glVertexAttribL2d(int index, double x, double y)Specifies the value of a generic vertex attribute. The y component is implicitly set to 0.0 and w to 1.0.- Parameters:
index- the index of the generic vertex attribute to be modifiedx- the vertex attribute x componenty- the vertex attribute y component
-
glVertexAttribL3d
public static void glVertexAttribL3d(int index, double x, double y, double z)Specifies the value of a generic vertex attribute. The w is implicitly set to 1.0.- 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 component
-
glVertexAttribL4d
public static void glVertexAttribL4d(int index, double x, double y, double z, double w)Specifies the value of a generic vertex attribute.- 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
-
glVertexAttribL1dv
public static void glVertexAttribL1dv(int index, java.nio.DoubleBuffer v)Pointer version ofVertexAttribL1d.- Parameters:
index- the index of the generic vertex attribute to be modifiedv- the vertex attribute buffer
-
glVertexAttribL2dv
public static void glVertexAttribL2dv(int index, java.nio.DoubleBuffer v)Pointer version ofVertexAttribL2d.- Parameters:
index- the index of the generic vertex attribute to be modifiedv- the vertex attribute buffer
-
glVertexAttribL3dv
public static void glVertexAttribL3dv(int index, java.nio.DoubleBuffer v)Pointer version ofVertexAttribL3d.- Parameters:
index- the index of the generic vertex attribute to be modifiedv- the vertex attribute buffer
-
glVertexAttribL4dv
public static void glVertexAttribL4dv(int index, java.nio.DoubleBuffer v)Pointer version ofVertexAttribL4d.- Parameters:
index- the index of the generic vertex attribute to be modifiedv- the vertex attribute buffer
-
glVertexAttribLPointer
public static void glVertexAttribLPointer(int index, int size, int type, int stride, java.nio.ByteBuffer pointer) public static void glVertexAttribLPointer(int index, int size, int type, int stride, long pointer)Specifies the location and organization of a 64-bit 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. Must be:DOUBLEstride- 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.
-
glVertexAttribLPointer
public static void glVertexAttribLPointer(int index, int size, int stride, java.nio.DoubleBuffer pointer)Specifies the location and organization of a 64-bit 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 BGRAstride- 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.
-
glGetVertexAttribLdv
public static void glGetVertexAttribLdv(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- the requested data
-
glViewportArrayv
public static void glViewportArrayv(int first, java.nio.FloatBuffer v)Sets multiple viewports.- Parameters:
first- the first viewport to setv- an array containing the viewport parameters
-
glViewportIndexedf
public static void glViewportIndexedf(int index, float x, float y, float w, float h)Sets a specified viewport.- Parameters:
index- the viewport to setx- the left viewport coordinatey- the bottom viewport coordinatew- the viewport widthh- the viewport height
-
glViewportIndexedfv
public static void glViewportIndexedfv(int index, java.nio.FloatBuffer v)Pointer version ofViewportIndexedf.- Parameters:
index- the viewport to setv- the viewport parameters
-
glScissorArrayv
public static void glScissorArrayv(int first, java.nio.IntBuffer v)Defines the scissor box for multiple viewports.- Parameters:
first- the index of the first viewport whose scissor box to modifyv- an array containing the left, bottom, width and height of each scissor box, in that order
-
glScissorIndexed
public static void glScissorIndexed(int index, int left, int bottom, int width, int height)Defines the scissor box for a specific viewport.- Parameters:
index- the index of the viewport whose scissor box to modifyleft- the left scissor box coordinatebottom- the bottom scissor box coordinatewidth- the scissor box widthheight- the scissor box height
-
glScissorIndexedv
public static void glScissorIndexedv(int index, java.nio.IntBuffer v)Pointer version ofScissorIndexed.- Parameters:
index- the index of the viewport whose scissor box to modifyv- an array containing the left, bottom, width and height of each scissor box, in that order
-
glDepthRangeArrayv
public static void glDepthRangeArrayv(int first, java.nio.DoubleBuffer v)Specifies mapping of depth values from normalized device coordinates to window coordinates for a specified set of viewports.- Parameters:
first- the index of the first viewport whose depth range to updatev- n array containing the near and far values for the depth range of each modified viewport
-
glDepthRangeIndexed
public static void glDepthRangeIndexed(int index, double zNear, double zFar)Specifies mapping of depth values from normalized device coordinates to window coordinates for a specified viewport.- Parameters:
index- the index of the viewport whose depth range to updatezNear- the mapping of the near clipping plane to window coordinates. The initial value is 0.zFar- the mapping of the far clipping plane to window coordinates. The initial value is 1.
-
glGetFloati_v
public static void glGetFloati_v(int target, int index, java.nio.FloatBuffer data)Queries the float value of an indexed state variable.- Parameters:
target- the indexed state to queryindex- the index of the element being querieddata- a scalar or buffer in which to place the returned data
-
glGetFloati
public static float glGetFloati(int target, int index)Queries the float value of an indexed state variable.- Parameters:
target- the indexed state to queryindex- the index of the element being queried
-
glGetDoublei_v
public static void glGetDoublei_v(int target, int index, java.nio.DoubleBuffer data)Queries the double value of an indexed state variable.- Parameters:
target- the indexed state to queryindex- the index of the element being querieddata- a scalar or buffer in which to place the returned data
-
glGetDoublei
public static double glGetDoublei(int target, int index)Queries the double value of an indexed state variable.- Parameters:
target- the indexed state to queryindex- the index of the element being queried
-
glShaderBinary
public static void glShaderBinary(int[] shaders, int binaryformat, java.nio.ByteBuffer binary)Array version of:ShaderBinary
-
glGetShaderPrecisionFormat
public static void glGetShaderPrecisionFormat(int shadertype, int precisiontype, int[] range, int[] precision)Array version of:GetShaderPrecisionFormat
-
glGetProgramBinary
public static void glGetProgramBinary(int program, int[] length, int[] binaryFormat, java.nio.ByteBuffer binary)Array version of:GetProgramBinary
-
glDeleteProgramPipelines
public static void glDeleteProgramPipelines(int[] pipelines)
Array version of:DeleteProgramPipelines
-
glGenProgramPipelines
public static void glGenProgramPipelines(int[] pipelines)
Array version of:GenProgramPipelines
-
glGetProgramPipelineiv
public static void glGetProgramPipelineiv(int pipeline, int pname, int[] params)Array version of:GetProgramPipelineiv
-
glProgramUniform1iv
public static void glProgramUniform1iv(int program, int location, int[] value)Array version of:ProgramUniform1iv
-
glProgramUniform2iv
public static void glProgramUniform2iv(int program, int location, int[] value)Array version of:ProgramUniform2iv
-
glProgramUniform3iv
public static void glProgramUniform3iv(int program, int location, int[] value)Array version of:ProgramUniform3iv
-
glProgramUniform4iv
public static void glProgramUniform4iv(int program, int location, int[] value)Array version of:ProgramUniform4iv
-
glProgramUniform1uiv
public static void glProgramUniform1uiv(int program, int location, int[] value)Array version of:ProgramUniform1uiv
-
glProgramUniform2uiv
public static void glProgramUniform2uiv(int program, int location, int[] value)Array version of:ProgramUniform2uiv
-
glProgramUniform3uiv
public static void glProgramUniform3uiv(int program, int location, int[] value)Array version of:ProgramUniform3uiv
-
glProgramUniform4uiv
public static void glProgramUniform4uiv(int program, int location, int[] value)Array version of:ProgramUniform4uiv
-
glProgramUniform1fv
public static void glProgramUniform1fv(int program, int location, float[] value)Array version of:ProgramUniform1fv
-
glProgramUniform2fv
public static void glProgramUniform2fv(int program, int location, float[] value)Array version of:ProgramUniform2fv
-
glProgramUniform3fv
public static void glProgramUniform3fv(int program, int location, float[] value)Array version of:ProgramUniform3fv
-
glProgramUniform4fv
public static void glProgramUniform4fv(int program, int location, float[] value)Array version of:ProgramUniform4fv
-
glProgramUniform1dv
public static void glProgramUniform1dv(int program, int location, double[] value)Array version of:ProgramUniform1dv
-
glProgramUniform2dv
public static void glProgramUniform2dv(int program, int location, double[] value)Array version of:ProgramUniform2dv
-
glProgramUniform3dv
public static void glProgramUniform3dv(int program, int location, double[] value)Array version of:ProgramUniform3dv
-
glProgramUniform4dv
public static void glProgramUniform4dv(int program, int location, double[] value)Array version of:ProgramUniform4dv
-
glProgramUniformMatrix2fv
public static void glProgramUniformMatrix2fv(int program, int location, boolean transpose, float[] value)Array version of:ProgramUniformMatrix2fv
-
glProgramUniformMatrix3fv
public static void glProgramUniformMatrix3fv(int program, int location, boolean transpose, float[] value)Array version of:ProgramUniformMatrix3fv
-
glProgramUniformMatrix4fv
public static void glProgramUniformMatrix4fv(int program, int location, boolean transpose, float[] value)Array version of:ProgramUniformMatrix4fv
-
glProgramUniformMatrix2dv
public static void glProgramUniformMatrix2dv(int program, int location, boolean transpose, double[] value)Array version of:ProgramUniformMatrix2dv
-
glProgramUniformMatrix3dv
public static void glProgramUniformMatrix3dv(int program, int location, boolean transpose, double[] value)Array version of:ProgramUniformMatrix3dv
-
glProgramUniformMatrix4dv
public static void glProgramUniformMatrix4dv(int program, int location, boolean transpose, double[] value)Array version of:ProgramUniformMatrix4dv
-
glProgramUniformMatrix2x3fv
public static void glProgramUniformMatrix2x3fv(int program, int location, boolean transpose, float[] value)Array version of:ProgramUniformMatrix2x3fv
-
glProgramUniformMatrix3x2fv
public static void glProgramUniformMatrix3x2fv(int program, int location, boolean transpose, float[] value)Array version of:ProgramUniformMatrix3x2fv
-
glProgramUniformMatrix2x4fv
public static void glProgramUniformMatrix2x4fv(int program, int location, boolean transpose, float[] value)Array version of:ProgramUniformMatrix2x4fv
-
glProgramUniformMatrix4x2fv
public static void glProgramUniformMatrix4x2fv(int program, int location, boolean transpose, float[] value)Array version of:ProgramUniformMatrix4x2fv
-
glProgramUniformMatrix3x4fv
public static void glProgramUniformMatrix3x4fv(int program, int location, boolean transpose, float[] value)Array version of:ProgramUniformMatrix3x4fv
-
glProgramUniformMatrix4x3fv
public static void glProgramUniformMatrix4x3fv(int program, int location, boolean transpose, float[] value)Array version of:ProgramUniformMatrix4x3fv
-
glProgramUniformMatrix2x3dv
public static void glProgramUniformMatrix2x3dv(int program, int location, boolean transpose, double[] value)Array version of:ProgramUniformMatrix2x3dv
-
glProgramUniformMatrix3x2dv
public static void glProgramUniformMatrix3x2dv(int program, int location, boolean transpose, double[] value)Array version of:ProgramUniformMatrix3x2dv
-
glProgramUniformMatrix2x4dv
public static void glProgramUniformMatrix2x4dv(int program, int location, boolean transpose, double[] value)Array version of:ProgramUniformMatrix2x4dv
-
glProgramUniformMatrix4x2dv
public static void glProgramUniformMatrix4x2dv(int program, int location, boolean transpose, double[] value)Array version of:ProgramUniformMatrix4x2dv
-
glProgramUniformMatrix3x4dv
public static void glProgramUniformMatrix3x4dv(int program, int location, boolean transpose, double[] value)Array version of:ProgramUniformMatrix3x4dv
-
glProgramUniformMatrix4x3dv
public static void glProgramUniformMatrix4x3dv(int program, int location, boolean transpose, double[] value)Array version of:ProgramUniformMatrix4x3dv
-
glGetProgramPipelineInfoLog
public static void glGetProgramPipelineInfoLog(int pipeline, int[] length, java.nio.ByteBuffer infoLog)Array version of:GetProgramPipelineInfoLog
-
glVertexAttribL1dv
public static void glVertexAttribL1dv(int index, double[] v)Array version of:VertexAttribL1dv
-
glVertexAttribL2dv
public static void glVertexAttribL2dv(int index, double[] v)Array version of:VertexAttribL2dv
-
glVertexAttribL3dv
public static void glVertexAttribL3dv(int index, double[] v)Array version of:VertexAttribL3dv
-
glVertexAttribL4dv
public static void glVertexAttribL4dv(int index, double[] v)Array version of:VertexAttribL4dv
-
glGetVertexAttribLdv
public static void glGetVertexAttribLdv(int index, int pname, double[] params)Array version of:GetVertexAttribLdv
-
glViewportArrayv
public static void glViewportArrayv(int first, float[] v)Array version of:ViewportArrayv
-
glViewportIndexedfv
public static void glViewportIndexedfv(int index, float[] v)Array version of:ViewportIndexedfv
-
glScissorArrayv
public static void glScissorArrayv(int first, int[] v)Array version of:ScissorArrayv
-
glScissorIndexedv
public static void glScissorIndexedv(int index, int[] v)Array version of:ScissorIndexedv
-
glDepthRangeArrayv
public static void glDepthRangeArrayv(int first, double[] v)Array version of:DepthRangeArrayv
-
glGetFloati_v
public static void glGetFloati_v(int target, int index, float[] data)Array version of:GetFloati_v
-
glGetDoublei_v
public static void glGetDoublei_v(int target, int index, double[] data)Array version of:GetDoublei_v
-
-