Class GL40
- java.lang.Object
-
- org.lwjgl.opengl.GL40
-
public class GL40 extends java.lang.Object
The core OpenGL 4.0 functionality. OpenGL 4.0 implementations support revision 4.00 of the OpenGL Shading Language.Extensions promoted to core in this release:
-
-
Field Summary
Fields Modifier and Type Field and Description static int
GL_ACTIVE_SUBROUTINE_MAX_LENGTH
GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS
GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH
GL_ACTIVE_SUBROUTINE_UNIFORMS
GL_ACTIVE_SUBROUTINESAccepted by thepname
parameter of GetProgramStageiv.static int
GL_COMPATIBLE_SUBROUTINES
Accepted by thepname
parameter of GetActiveSubroutineUniformiv.static int
GL_DOUBLE_MAT2
GL_DOUBLE_MAT2x3
GL_DOUBLE_MAT2x4
GL_DOUBLE_MAT3
GL_DOUBLE_MAT3x2
GL_DOUBLE_MAT3x4
GL_DOUBLE_MAT4
GL_DOUBLE_MAT4x2
GL_DOUBLE_MAT4x3
GL_DOUBLE_VEC2
GL_DOUBLE_VEC3
GL_DOUBLE_VEC4Returned in thetype
parameter of GetActiveUniform, and GetTransformFeedbackVarying.static int
GL_DRAW_INDIRECT_BUFFER
Accepted by thetarget
parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, GetBufferPointerv, MapBufferRange, FlushMappedBufferRange, GetBufferParameteriv, and CopyBufferSubData.static int
GL_DRAW_INDIRECT_BUFFER_BINDING
Accepted by thevalue
parameter of GetIntegerv, GetBooleanv, GetFloatv, and GetDoublev.static int
GL_FRACTIONAL_EVEN
GL_FRACTIONAL_ODDReturned by GetProgramiv whenpname
is TESS_GEN_SPACING.static int
GL_FRAGMENT_INTERPOLATION_OFFSET_BITS
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev, and GetInteger64v.static int
GL_GEOMETRY_SHADER_INVOCATIONS
Accepted by thepname
parameter of GetProgramiv.static int
GL_INT_SAMPLER_CUBE_MAP_ARRAY
Returned by thetype
parameter of GetActiveUniform.static int
GL_ISOLINES
Returned by GetProgramiv whenpname
is TESS_GEN_MODE.static int
GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS
GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTSAccepted by thepname
parameter of GetBooleanv, GetDoublev, GetFloatv, GetIntegerv, and GetInteger64v.static int
GL_MAX_FRAGMENT_INTERPOLATION_OFFSET
GL_MAX_GEOMETRY_SHADER_INVOCATIONSAccepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev, and GetInteger64v.static int
GL_MAX_PATCH_VERTICES
Accepted by thepname
parameter of GetBooleanv, GetDoublev, GetFloatv, GetIntegerv, and GetInteger64v.static int
GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS
GL_MAX_SUBROUTINESAccepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev, and GetInteger64v.static int
GL_MAX_TESS_CONTROL_INPUT_COMPONENTS
GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS
GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS
GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS
GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS
GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS
GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS
GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS
GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS
GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS
GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS
GL_MAX_TESS_GEN_LEVEL
GL_MAX_TESS_PATCH_COMPONENTSAccepted by thepname
parameter of GetBooleanv, GetDoublev, GetFloatv, GetIntegerv, and GetInteger64v.static int
GL_MAX_TRANSFORM_FEEDBACK_BUFFERS
GL_MAX_VERTEX_STREAMSAccepted by thepname
parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static int
GL_MIN_FRAGMENT_INTERPOLATION_OFFSET
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev, and GetInteger64v.static int
GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_MIN_SAMPLE_SHADING_VALUE
Accepted by thepname
parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static int
GL_NUM_COMPATIBLE_SUBROUTINES
Accepted by thepname
parameter of GetActiveSubroutineUniformiv.static int
GL_PATCH_DEFAULT_INNER_LEVEL
GL_PATCH_DEFAULT_OUTER_LEVELAccepted by thepname
parameter of PatchParameterfv, GetBooleanv, GetDoublev, GetFloatv, and GetIntegerv, and GetInteger64v.static int
GL_PATCH_VERTICES
Accepted by thepname
parameter of PatchParameteri, GetBooleanv, GetDoublev, GetFloatv, GetIntegerv, and GetInteger64v.static int
GL_PATCHES
Accepted by themode
parameter of Begin and all vertex array functions that implicitly call Begin.static int
GL_PROXY_TEXTURE_CUBE_MAP_ARRAY
Accepted by thetarget
parameter of TexImage3D, TexSubImage3D, CompressedTeximage3D, CompressedTexSubImage3D and CopyTexSubImage3D.static int
GL_SAMPLE_SHADING
Accepted by thecap
parameter of Enable, Disable, and IsEnabled, and by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_SAMPLER_CUBE_MAP_ARRAY
GL_SAMPLER_CUBE_MAP_ARRAY_SHADOWReturned by thetype
parameter of GetActiveUniform.static int
GL_TESS_CONTROL_OUTPUT_VERTICES
Accepted by thepname
parameter of GetProgramiv.static int
GL_TESS_CONTROL_SHADER
GL_TESS_EVALUATION_SHADERAccepted by thetype
parameter of CreateShader and returned by theparams
parameter of GetShaderiv.static int
GL_TESS_GEN_MODE
GL_TESS_GEN_POINT_MODE
GL_TESS_GEN_SPACING
GL_TESS_GEN_VERTEX_ORDERAccepted by thepname
parameter of GetProgramiv.static int
GL_TEXTURE_BINDING_CUBE_MAP_ARRAY
Accepted by thepname
parameter of GetBooleanv, GetDoublev, GetIntegerv and GetFloatv.static int
GL_TEXTURE_CUBE_MAP_ARRAY
Accepted by thetarget
parameter of TexParameteri, TexParameteriv, TexParameterf, TexParameterfv, BindTexture, and GenerateMipmap.static int
GL_TRANSFORM_FEEDBACK
Accepted by thetarget
parameter of BindTransformFeedback.static int
GL_TRANSFORM_FEEDBACK_BINDING
GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE
GL_TRANSFORM_FEEDBACK_BUFFER_PAUSEDAccepted by thepname
parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static int
GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER
GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADERAccepted by thepname
parameter of GetActiveUniformBlockiv.static int
GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY
Returned by thetype
parameter of GetActiveUniform.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static void
glBeginQueryIndexed(int target, int index, int id)
static void
glBindTransformFeedback(int target, int id)
static void
glBlendEquationi(int buf, int mode)
static void
glBlendEquationSeparatei(int buf, int modeRGB, int modeAlpha)
static void
glBlendFunci(int buf, int sfactor, int dfactor)
static void
glBlendFuncSeparatei(int buf, int srcRGB, int dstRGB, int srcAlpha, int dstAlpha)
static void
glDeleteTransformFeedbacks(int id)
static void
glDeleteTransformFeedbacks(int[] ids)
static void
glDeleteTransformFeedbacks(java.nio.IntBuffer ids)
static void
glDrawArraysIndirect(int mode, java.nio.ByteBuffer indirect)
static void
glDrawArraysIndirect(int mode, int[] indirect)
static void
glDrawArraysIndirect(int mode, java.nio.IntBuffer indirect)
static void
glDrawArraysIndirect(int mode, long indirect)
static void
glDrawElementsIndirect(int mode, int type, java.nio.ByteBuffer indirect)
static void
glDrawElementsIndirect(int mode, int type, int[] indirect)
static void
glDrawElementsIndirect(int mode, int type, java.nio.IntBuffer indirect)
static void
glDrawElementsIndirect(int mode, int type, long indirect)
static void
glDrawTransformFeedback(int mode, int id)
static void
glDrawTransformFeedbackStream(int mode, int id, int stream)
static void
glEndQueryIndexed(int target, int index)
static int
glGenTransformFeedbacks()
static void
glGenTransformFeedbacks(int[] ids)
static void
glGenTransformFeedbacks(java.nio.IntBuffer ids)
static java.lang.String
glGetActiveSubroutineName(int program, int shadertype, int index)
static java.lang.String
glGetActiveSubroutineName(int program, int shadertype, int index, int bufsize)
static void
glGetActiveSubroutineName(int program, int shadertype, int index, int[] length, java.nio.ByteBuffer name)
static void
glGetActiveSubroutineName(int program, int shadertype, int index, java.nio.IntBuffer length, java.nio.ByteBuffer name)
static int
glGetActiveSubroutineUniformi(int program, int shadertype, int index, int pname)
static void
glGetActiveSubroutineUniformiv(int program, int shadertype, int index, int pname, int[] values)
static void
glGetActiveSubroutineUniformiv(int program, int shadertype, int index, int pname, java.nio.IntBuffer values)
static java.lang.String
glGetActiveSubroutineUniformName(int program, int shadertype, int index)
static java.lang.String
glGetActiveSubroutineUniformName(int program, int shadertype, int index, int bufsize)
static void
glGetActiveSubroutineUniformName(int program, int shadertype, int index, int[] length, java.nio.ByteBuffer name)
static void
glGetActiveSubroutineUniformName(int program, int shadertype, int index, java.nio.IntBuffer length, java.nio.ByteBuffer name)
static int
glGetProgramStagei(int program, int shadertype, int pname)
static void
glGetProgramStageiv(int program, int shadertype, int pname, int[] values)
static void
glGetProgramStageiv(int program, int shadertype, int pname, java.nio.IntBuffer values)
static int
glGetQueryIndexedi(int target, int index, int pname)
static void
glGetQueryIndexediv(int target, int index, int pname, int[] params)
static void
glGetQueryIndexediv(int target, int index, int pname, java.nio.IntBuffer params)
static int
glGetSubroutineIndex(int program, int shadertype, java.nio.ByteBuffer name)
static int
glGetSubroutineIndex(int program, int shadertype, java.lang.CharSequence name)
static int
glGetSubroutineUniformLocation(int program, int shadertype, java.nio.ByteBuffer name)
static int
glGetSubroutineUniformLocation(int program, int shadertype, java.lang.CharSequence name)
static double
glGetUniformd(int program, int location)
static void
glGetUniformdv(int program, int location, double[] params)
static void
glGetUniformdv(int program, int location, java.nio.DoubleBuffer params)
static int
glGetUniformSubroutineui(int shadertype, int location)
static void
glGetUniformSubroutineuiv(int shadertype, int location, int[] params)
static void
glGetUniformSubroutineuiv(int shadertype, int location, java.nio.IntBuffer params)
static boolean
glIsTransformFeedback(int id)
static void
glMinSampleShading(float value)
static void
glPatchParameterfv(int pname, float[] values)
static void
glPatchParameterfv(int pname, java.nio.FloatBuffer values)
static void
glPatchParameteri(int pname, int value)
static void
glPauseTransformFeedback()
static void
glResumeTransformFeedback()
static void
glUniform1d(int location, double x)
static void
glUniform1dv(int location, double[] value)
static void
glUniform1dv(int location, java.nio.DoubleBuffer value)
static void
glUniform2d(int location, double x, double y)
static void
glUniform2dv(int location, double[] value)
static void
glUniform2dv(int location, java.nio.DoubleBuffer value)
static void
glUniform3d(int location, double x, double y, double z)
static void
glUniform3dv(int location, double[] value)
static void
glUniform3dv(int location, java.nio.DoubleBuffer value)
static void
glUniform4d(int location, double x, double y, double z, double w)
static void
glUniform4dv(int location, double[] value)
static void
glUniform4dv(int location, java.nio.DoubleBuffer value)
static void
glUniformMatrix2dv(int location, boolean transpose, double[] value)
static void
glUniformMatrix2dv(int location, boolean transpose, java.nio.DoubleBuffer value)
static void
glUniformMatrix2x3dv(int location, boolean transpose, double[] value)
static void
glUniformMatrix2x3dv(int location, boolean transpose, java.nio.DoubleBuffer value)
static void
glUniformMatrix2x4dv(int location, boolean transpose, double[] value)
static void
glUniformMatrix2x4dv(int location, boolean transpose, java.nio.DoubleBuffer value)
static void
glUniformMatrix3dv(int location, boolean transpose, double[] value)
static void
glUniformMatrix3dv(int location, boolean transpose, java.nio.DoubleBuffer value)
static void
glUniformMatrix3x2dv(int location, boolean transpose, double[] value)
static void
glUniformMatrix3x2dv(int location, boolean transpose, java.nio.DoubleBuffer value)
static void
glUniformMatrix3x4dv(int location, boolean transpose, double[] value)
static void
glUniformMatrix3x4dv(int location, boolean transpose, java.nio.DoubleBuffer value)
static void
glUniformMatrix4dv(int location, boolean transpose, double[] value)
static void
glUniformMatrix4dv(int location, boolean transpose, java.nio.DoubleBuffer value)
static void
glUniformMatrix4x2dv(int location, boolean transpose, double[] value)
static void
glUniformMatrix4x2dv(int location, boolean transpose, java.nio.DoubleBuffer value)
static void
glUniformMatrix4x3dv(int location, boolean transpose, double[] value)
static void
glUniformMatrix4x3dv(int location, boolean transpose, java.nio.DoubleBuffer value)
static void
glUniformSubroutinesui(int shadertype, int index)
static void
glUniformSubroutinesuiv(int shadertype, int[] indices)
static void
glUniformSubroutinesuiv(int shadertype, java.nio.IntBuffer indices)
-
-
-
Field Detail
-
GL_DRAW_INDIRECT_BUFFER
Accepted by thetarget
parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, GetBufferPointerv, MapBufferRange, FlushMappedBufferRange, GetBufferParameteriv, and CopyBufferSubData.
-
GL_DRAW_INDIRECT_BUFFER_BINDING
Accepted by thevalue
parameter of GetIntegerv, GetBooleanv, GetFloatv, and GetDoublev.
-
GL_GEOMETRY_SHADER_INVOCATIONS
Accepted by thepname
parameter of GetProgramiv.
-
GL_MAX_GEOMETRY_SHADER_INVOCATIONS, GL_MIN_FRAGMENT_INTERPOLATION_OFFSET, GL_MAX_FRAGMENT_INTERPOLATION_OFFSET, GL_FRAGMENT_INTERPOLATION_OFFSET_BITS
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev, and GetInteger64v.
-
GL_DOUBLE_VEC2, GL_DOUBLE_VEC3, GL_DOUBLE_VEC4, GL_DOUBLE_MAT2, GL_DOUBLE_MAT3, GL_DOUBLE_MAT4, GL_DOUBLE_MAT2x3, GL_DOUBLE_MAT2x4, GL_DOUBLE_MAT3x2, GL_DOUBLE_MAT3x4, GL_DOUBLE_MAT4x2, GL_DOUBLE_MAT4x3
Returned in thetype
parameter of GetActiveUniform, and GetTransformFeedbackVarying.
-
GL_SAMPLE_SHADING
Accepted by thecap
parameter of Enable, Disable, and IsEnabled, and by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_MIN_SAMPLE_SHADING_VALUE
Accepted by thepname
parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.
-
GL_ACTIVE_SUBROUTINES, GL_ACTIVE_SUBROUTINE_UNIFORMS, GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS, GL_ACTIVE_SUBROUTINE_MAX_LENGTH, GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH
Accepted by thepname
parameter of GetProgramStageiv.
-
GL_MAX_SUBROUTINES, GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev, and GetInteger64v.
-
GL_NUM_COMPATIBLE_SUBROUTINES, GL_COMPATIBLE_SUBROUTINES
Accepted by thepname
parameter of GetActiveSubroutineUniformiv.
-
GL_PATCHES
Accepted by themode
parameter of Begin and all vertex array functions that implicitly call Begin.
-
GL_PATCH_VERTICES
Accepted by thepname
parameter of PatchParameteri, GetBooleanv, GetDoublev, GetFloatv, GetIntegerv, and GetInteger64v.
-
GL_PATCH_DEFAULT_INNER_LEVEL, GL_PATCH_DEFAULT_OUTER_LEVEL
Accepted by thepname
parameter of PatchParameterfv, GetBooleanv, GetDoublev, GetFloatv, and GetIntegerv, and GetInteger64v.
-
GL_TESS_CONTROL_OUTPUT_VERTICES, GL_TESS_GEN_MODE, GL_TESS_GEN_SPACING, GL_TESS_GEN_VERTEX_ORDER, GL_TESS_GEN_POINT_MODE
Accepted by thepname
parameter of GetProgramiv.
-
GL_ISOLINES
Returned by GetProgramiv whenpname
is TESS_GEN_MODE.
-
GL_FRACTIONAL_ODD, GL_FRACTIONAL_EVEN
Returned by GetProgramiv whenpname
is TESS_GEN_SPACING.
-
GL_MAX_PATCH_VERTICES, GL_MAX_TESS_GEN_LEVEL, GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS, GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS, GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS, GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS, GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS, GL_MAX_TESS_PATCH_COMPONENTS, GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS, GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS, GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS, GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS, GL_MAX_TESS_CONTROL_INPUT_COMPONENTS, GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS, GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS, GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS
Accepted by thepname
parameter of GetBooleanv, GetDoublev, GetFloatv, GetIntegerv, and GetInteger64v.
-
GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER, GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER
Accepted by thepname
parameter of GetActiveUniformBlockiv.
-
GL_TESS_EVALUATION_SHADER, GL_TESS_CONTROL_SHADER
Accepted by thetype
parameter of CreateShader and returned by theparams
parameter of GetShaderiv.
-
GL_TEXTURE_CUBE_MAP_ARRAY
Accepted by thetarget
parameter of TexParameteri, TexParameteriv, TexParameterf, TexParameterfv, BindTexture, and GenerateMipmap.
-
GL_TEXTURE_BINDING_CUBE_MAP_ARRAY
Accepted by thepname
parameter of GetBooleanv, GetDoublev, GetIntegerv and GetFloatv.
-
GL_PROXY_TEXTURE_CUBE_MAP_ARRAY
Accepted by thetarget
parameter of TexImage3D, TexSubImage3D, CompressedTeximage3D, CompressedTexSubImage3D and CopyTexSubImage3D.
-
GL_SAMPLER_CUBE_MAP_ARRAY, GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW, GL_INT_SAMPLER_CUBE_MAP_ARRAY, GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY
Returned by thetype
parameter of GetActiveUniform.
-
GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET, GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_TRANSFORM_FEEDBACK
Accepted by thetarget
parameter of BindTransformFeedback.
-
GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED, GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE, GL_TRANSFORM_FEEDBACK_BINDING, GL_MAX_TRANSFORM_FEEDBACK_BUFFERS, GL_MAX_VERTEX_STREAMS
Accepted by thepname
parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.
-
-
Method Detail
-
glBlendEquationi
public static void glBlendEquationi(int buf, int mode)
Specifies the equation used for both the RGB blend equation and the Alpha blend equation for the specified draw buffer.- Parameters:
buf
- the index of the draw buffer for which to set the blend equationmode
- how source and destination colors are combined. One of:FUNC_ADD
FUNC_SUBTRACT
FUNC_REVERSE_SUBTRACT
MIN
MAX
-
glBlendEquationSeparatei
public static void glBlendEquationSeparatei(int buf, int modeRGB, int modeAlpha)
Sets the RGB blend equation and the alpha blend equation separately for the specified draw buffer.- Parameters:
buf
- the index of the draw buffer for which to set the blend equationsmodeRGB
- the RGB blend equation, how the red, green, and blue components of the source and destination colors are combined. One of:FUNC_ADD
FUNC_SUBTRACT
FUNC_REVERSE_SUBTRACT
MIN
MAX
modeAlpha
- the alpha blend equation, how the alpha component of the source and destination colors are combined. One of:FUNC_ADD
FUNC_SUBTRACT
FUNC_REVERSE_SUBTRACT
MIN
MAX
-
glBlendFunci
public static void glBlendFunci(int buf, int sfactor, int dfactor)
Specifies pixel arithmetic for the specified draw buffer.- Parameters:
buf
- the index of the draw buffer for which to set the blend functionsfactor
- how the red, green, blue, and alpha source blending factors are computeddfactor
- how the red, green, blue, and alpha destination blending factors are computed
-
glBlendFuncSeparatei
public static void glBlendFuncSeparatei(int buf, int srcRGB, int dstRGB, int srcAlpha, int dstAlpha)
Specifies pixel arithmetic for RGB and alpha components separately for the specified draw buffer.- Parameters:
buf
- the index of the draw buffer for which to set the blend functionssrcRGB
- how the red, green, and blue blending factors are computeddstRGB
- how the red, green, and blue destination blending factors are computedsrcAlpha
- how the alpha source blending factor is computeddstAlpha
- how the alpha destination blending factor is computed
-
glDrawArraysIndirect
public static void glDrawArraysIndirect(int mode, java.nio.ByteBuffer indirect) public static void glDrawArraysIndirect(int mode, long indirect) public static void glDrawArraysIndirect(int mode, java.nio.IntBuffer indirect)
Renders primitives from array data, taking parameters from memory.glDrawArraysIndirect
behaves similarly toDrawArraysInstancedBaseInstance
, except that the parameters to glDrawArraysInstancedBaseInstance are stored in memory at the address given byindirect
.The parameters addressed by
indirect
are packed into a structure that takes the form (in C):typedef struct { uint count; uint primCount; uint first; uint baseInstance; // must be 0 unless OpenGL 4.2 is supported } DrawArraysIndirectCommand; const DrawArraysIndirectCommand *cmd = (const DrawArraysIndirectCommand *)indirect; glDrawArraysInstancedBaseInstance(mode, cmd->first, cmd->count, cmd->primCount, cmd->baseInstance);
- Parameters:
mode
- what kind of primitives to render. One of:POINTS
LINE_STRIP
LINE_LOOP
LINES
POLYGON
TRIANGLE_STRIP
TRIANGLE_FAN
TRIANGLES
QUAD_STRIP
QUADS
LINES_ADJACENCY
LINE_STRIP_ADJACENCY
TRIANGLES_ADJACENCY
TRIANGLE_STRIP_ADJACENCY
PATCHES
indirect
- a structure containing the draw parameters
-
glDrawElementsIndirect
public static void glDrawElementsIndirect(int mode, int type, java.nio.ByteBuffer indirect) public static void glDrawElementsIndirect(int mode, int type, long indirect) public static void glDrawElementsIndirect(int mode, int type, java.nio.IntBuffer indirect)
Renders indexed primitives from array data, taking parameters from memory.glDrawElementsIndirect
behaves similarly toDrawElementsInstancedBaseVertexBaseInstance
, execpt that the parameters to glDrawElementsInstancedBaseVertexBaseInstance are stored in memory at the address given byindirect
.The parameters addressed by
indirect
are packed into a structure that takes the form (in C):typedef struct { uint count; uint primCount; uint firstIndex; uint baseVertex; uint baseInstance; } DrawElementsIndirectCommand;
glDrawElementsIndirect
is equivalent to:void glDrawElementsIndirect(GLenum mode, GLenum type, const void *indirect) { const DrawElementsIndirectCommand *cmd = (const DrawElementsIndirectCommand *)indirect; glDrawElementsInstancedBaseVertexBaseInstance( mode, cmd->count, type, cmd->firstIndex + size-of-type, cmd->primCount, cmd->baseVertex, cmd->baseInstance ); }
- Parameters:
mode
- what kind of primitives to render. One of:POINTS
LINE_STRIP
LINE_LOOP
LINES
POLYGON
TRIANGLE_STRIP
TRIANGLE_FAN
TRIANGLES
QUAD_STRIP
QUADS
LINES_ADJACENCY
LINE_STRIP_ADJACENCY
TRIANGLES_ADJACENCY
TRIANGLE_STRIP_ADJACENCY
PATCHES
type
- the type of data in the buffer bound to theELEMENT_ARRAY_BUFFER
binding. One of:UNSIGNED_BYTE
UNSIGNED_SHORT
UNSIGNED_INT
indirect
- the address of a structure containing the draw parameters
-
glUniform1d
public static void glUniform1d(int location, double x)
Specifies the value of a double uniform variable for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedx
- the uniform x value
-
glUniform2d
public static void glUniform2d(int location, double x, double y)
Specifies the value of a dvec2 uniform variable for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedx
- the uniform x valuey
- the uniform y value
-
glUniform3d
public static void glUniform3d(int location, double x, double y, double z)
Specifies the value of a dvec3 uniform variable for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedx
- the uniform x valuey
- the uniform y valuez
- the uniform z value
-
glUniform4d
public static void glUniform4d(int location, double x, double y, double z, double w)
Specifies the value of a dvec4 uniform variable for the current program object.- Parameters:
location
- 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
-
glUniform1dv
public static void glUniform1dv(int location, java.nio.DoubleBuffer value)
Specifies the value of a single double uniform variable or a double uniform variable array for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedvalue
- a pointer to an array ofcount
values that will be used to update the specified uniform variable
-
glUniform2dv
public static void glUniform2dv(int location, java.nio.DoubleBuffer value)
Specifies the value of a single dvec2 uniform variable or a dvec2 uniform variable array for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedvalue
- a pointer to an array ofcount
values that will be used to update the specified uniform variable
-
glUniform3dv
public static void glUniform3dv(int location, java.nio.DoubleBuffer value)
Specifies the value of a single dvec3 uniform variable or a dvec3 uniform variable array for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedvalue
- a pointer to an array ofcount
values that will be used to update the specified uniform variable
-
glUniform4dv
public static void glUniform4dv(int location, java.nio.DoubleBuffer value)
Specifies the value of a single dvec4 uniform variable or a dvec4 uniform variable array for the current program object.- Parameters:
location
- the location of the uniform variable to be modifiedvalue
- a pointer to an array ofcount
values that will be used to update the specified uniform variable
-
glUniformMatrix2dv
public static void glUniformMatrix2dv(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:
location
- the location of the uniform variable to be modifiedtranspose
- whether to transpose the matrix as the values are loaded into the uniform variablevalue
- a pointer to an array ofcount
values that will be used to update the specified uniform matrix variable
-
glUniformMatrix3dv
public static void glUniformMatrix3dv(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:
location
- the location of the uniform variable to be modifiedtranspose
- whether to transpose the matrix as the values are loaded into the uniform variablevalue
- a pointer to an array ofcount
values that will be used to update the specified uniform matrix variable
-
glUniformMatrix4dv
public static void glUniformMatrix4dv(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:
location
- the location of the uniform variable to be modifiedtranspose
- whether to transpose the matrix as the values are loaded into the uniform variablevalue
- a pointer to an array ofcount
values that will be used to update the specified uniform matrix variable
-
glUniformMatrix2x3dv
public static void glUniformMatrix2x3dv(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:
location
- the location of the uniform variable to be modifiedtranspose
- whether to transpose the matrix as the values are loaded into the uniform variablevalue
- a pointer to an array ofcount
values that will be used to update the specified uniform matrix variable
-
glUniformMatrix2x4dv
public static void glUniformMatrix2x4dv(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:
location
- the location of the uniform variable to be modifiedtranspose
- whether to transpose the matrix as the values are loaded into the uniform variablevalue
- a pointer to an array ofcount
values that will be used to update the specified uniform matrix variable
-
glUniformMatrix3x2dv
public static void glUniformMatrix3x2dv(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:
location
- the location of the uniform variable to be modifiedtranspose
- whether to transpose the matrix as the values are loaded into the uniform variablevalue
- a pointer to an array ofcount
values that will be used to update the specified uniform matrix variable
-
glUniformMatrix3x4dv
public static void glUniformMatrix3x4dv(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:
location
- the location of the uniform variable to be modifiedtranspose
- whether to transpose the matrix as the values are loaded into the uniform variablevalue
- a pointer to an array ofcount
values that will be used to update the specified uniform matrix variable
-
glUniformMatrix4x2dv
public static void glUniformMatrix4x2dv(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:
location
- the location of the uniform variable to be modifiedtranspose
- whether to transpose the matrix as the values are loaded into the uniform variablevalue
- a pointer to an array ofcount
values that will be used to update the specified uniform matrix variable
-
glUniformMatrix4x3dv
public static void glUniformMatrix4x3dv(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:
location
- the location of the uniform variable to be modifiedtranspose
- whether to transpose the matrix as the values are loaded into the uniform variablevalue
- a pointer to an array ofcount
values that will be used to update the specified uniform matrix variable
-
glGetUniformdv
public static void glGetUniformdv(int program, int location, java.nio.DoubleBuffer params)
Returns the double 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
-
glGetUniformd
public static double glGetUniformd(int program, int location)
Returns the double value(s) of a uniform variable.- Parameters:
program
- the program object to be queriedlocation
- the location of the uniform variable to be queried
-
glMinSampleShading
public static void glMinSampleShading(float value)
Specifies the minimum rate at which sample shading takes place.- Parameters:
value
- the rate at which samples are shaded within each covered pixel
-
glGetSubroutineUniformLocation
public static int glGetSubroutineUniformLocation(int program, int shadertype, java.nio.ByteBuffer name) public static int glGetSubroutineUniformLocation(int program, int shadertype, java.lang.CharSequence name)
Retrieves the location of a subroutine uniform of a given shader stage within a program.- Parameters:
program
- the name of the program containing shader stageshadertype
- the shader stage from which to query for subroutine uniform index. One of:VERTEX_SHADER
FRAGMENT_SHADER
GEOMETRY_SHADER
TESS_CONTROL_SHADER
TESS_EVALUATION_SHADER
name
- the name of the subroutine uniform whose index to query.
-
glGetSubroutineIndex
public static int glGetSubroutineIndex(int program, int shadertype, java.nio.ByteBuffer name) public static int glGetSubroutineIndex(int program, int shadertype, java.lang.CharSequence name)
Retrieves the index of a subroutine function of a given shader stage within a program.- Parameters:
program
- the name of the program containing shader stageshadertype
- the shader stage from which to query for subroutine function index. One of:VERTEX_SHADER
FRAGMENT_SHADER
GEOMETRY_SHADER
TESS_CONTROL_SHADER
TESS_EVALUATION_SHADER
name
- the name of the subroutine function whose index to query
-
glGetActiveSubroutineUniformiv
public static void glGetActiveSubroutineUniformiv(int program, int shadertype, int index, int pname, java.nio.IntBuffer values)
Queries a property of an active shader subroutine uniform.- Parameters:
program
- the name of the program containing the subroutineshadertype
- the shader stage from which to query for the subroutine parameter. One of:VERTEX_SHADER
FRAGMENT_SHADER
GEOMETRY_SHADER
TESS_CONTROL_SHADER
TESS_EVALUATION_SHADER
index
- the index of the shader subroutine uniformpname
- the parameter of the shader subroutine uniform to query. One of:NUM_COMPATIBLE_SUBROUTINES
COMPATIBLE_SUBROUTINES
UNIFORM_SIZE
UNIFORM_NAME_LENGTH
values
- the address of a buffer into which the queried value or values will be placed
-
glGetActiveSubroutineUniformi
public static int glGetActiveSubroutineUniformi(int program, int shadertype, int index, int pname)
Queries a property of an active shader subroutine uniform.- Parameters:
program
- the name of the program containing the subroutineshadertype
- the shader stage from which to query for the subroutine parameter. One of:VERTEX_SHADER
FRAGMENT_SHADER
GEOMETRY_SHADER
TESS_CONTROL_SHADER
TESS_EVALUATION_SHADER
index
- the index of the shader subroutine uniformpname
- the parameter of the shader subroutine uniform to query. One of:NUM_COMPATIBLE_SUBROUTINES
COMPATIBLE_SUBROUTINES
UNIFORM_SIZE
UNIFORM_NAME_LENGTH
-
glGetActiveSubroutineUniformName
public static void glGetActiveSubroutineUniformName(int program, int shadertype, int index, java.nio.IntBuffer length, java.nio.ByteBuffer name)
Queries the name of an active shader subroutine uniform.- Parameters:
program
- the name of the program containing the subroutineshadertype
- the shader stage from which to query for the subroutine parameter. One of:VERTEX_SHADER
FRAGMENT_SHADER
GEOMETRY_SHADER
TESS_CONTROL_SHADER
TESS_EVALUATION_SHADER
index
- the index of the shader subroutine uniformlength
- the address of a variable into which is written the number of characters copied intoname
name
- the address of a buffer that will receive the name of the specified shader subroutine uniform
-
glGetActiveSubroutineUniformName
public static java.lang.String glGetActiveSubroutineUniformName(int program, int shadertype, int index, int bufsize)
Queries the name of an active shader subroutine uniform.- Parameters:
program
- the name of the program containing the subroutineshadertype
- the shader stage from which to query for the subroutine parameter. One of:VERTEX_SHADER
FRAGMENT_SHADER
GEOMETRY_SHADER
TESS_CONTROL_SHADER
TESS_EVALUATION_SHADER
index
- the index of the shader subroutine uniformbufsize
- the size of the buffer whose address is given inname
-
glGetActiveSubroutineUniformName
public static java.lang.String glGetActiveSubroutineUniformName(int program, int shadertype, int index)
Queries the name of an active shader subroutine uniform.- Parameters:
program
- the name of the program containing the subroutineshadertype
- the shader stage from which to query for the subroutine parameter. One of:VERTEX_SHADER
FRAGMENT_SHADER
GEOMETRY_SHADER
TESS_CONTROL_SHADER
TESS_EVALUATION_SHADER
index
- the index of the shader subroutine uniform
-
glGetActiveSubroutineName
public static void glGetActiveSubroutineName(int program, int shadertype, int index, java.nio.IntBuffer length, java.nio.ByteBuffer name)
Queries the name of an active shader subroutine.- Parameters:
program
- the name of the program containing the subroutineshadertype
- the shader stage from which to query the subroutine name. One of:VERTEX_SHADER
FRAGMENT_SHADER
GEOMETRY_SHADER
TESS_CONTROL_SHADER
TESS_EVALUATION_SHADER
index
- the index of the shader subroutine uniformlength
- a variable which is to receive the length of the shader subroutine uniform namename
- an array into which the name of the shader subroutine uniform will be written
-
glGetActiveSubroutineName
public static java.lang.String glGetActiveSubroutineName(int program, int shadertype, int index, int bufsize)
Queries the name of an active shader subroutine.- Parameters:
program
- the name of the program containing the subroutineshadertype
- the shader stage from which to query the subroutine name. One of:VERTEX_SHADER
FRAGMENT_SHADER
GEOMETRY_SHADER
TESS_CONTROL_SHADER
TESS_EVALUATION_SHADER
index
- the index of the shader subroutine uniformbufsize
- the size of the buffer whose address is given inname
-
glGetActiveSubroutineName
public static java.lang.String glGetActiveSubroutineName(int program, int shadertype, int index)
Queries the name of an active shader subroutine.- Parameters:
program
- the name of the program containing the subroutineshadertype
- the shader stage from which to query the subroutine name. One of:VERTEX_SHADER
FRAGMENT_SHADER
GEOMETRY_SHADER
TESS_CONTROL_SHADER
TESS_EVALUATION_SHADER
index
- the index of the shader subroutine uniform
-
glUniformSubroutinesuiv
public static void glUniformSubroutinesuiv(int shadertype, java.nio.IntBuffer indices)
Loads active subroutine uniforms.- Parameters:
shadertype
- the shader stage to update. One of:VERTEX_SHADER
FRAGMENT_SHADER
GEOMETRY_SHADER
TESS_CONTROL_SHADER
TESS_EVALUATION_SHADER
indices
- an array holding the indices to load into the shader subroutine variables
-
glUniformSubroutinesui
public static void glUniformSubroutinesui(int shadertype, int index)
Loads active subroutine uniforms.- Parameters:
shadertype
- the shader stage to update. One of:VERTEX_SHADER
FRAGMENT_SHADER
GEOMETRY_SHADER
TESS_CONTROL_SHADER
TESS_EVALUATION_SHADER
-
glGetUniformSubroutineuiv
public static void glGetUniformSubroutineuiv(int shadertype, int location, java.nio.IntBuffer params)
Retrieves the value of a subroutine uniform of a given shader stage of the current program.- Parameters:
shadertype
- the shader stage from which to query for subroutine uniform index. One of:VERTEX_SHADER
FRAGMENT_SHADER
GEOMETRY_SHADER
TESS_CONTROL_SHADER
TESS_EVALUATION_SHADER
location
- the location of the subroutine uniformparams
- a variable to receive the value or values of the subroutine uniform
-
glGetUniformSubroutineui
public static int glGetUniformSubroutineui(int shadertype, int location)
Retrieves the value of a subroutine uniform of a given shader stage of the current program.- Parameters:
shadertype
- the shader stage from which to query for subroutine uniform index. One of:VERTEX_SHADER
FRAGMENT_SHADER
GEOMETRY_SHADER
TESS_CONTROL_SHADER
TESS_EVALUATION_SHADER
location
- the location of the subroutine uniform
-
glGetProgramStageiv
public static void glGetProgramStageiv(int program, int shadertype, int pname, java.nio.IntBuffer values)
Retrieves properties of a program object corresponding to a specified shader stage.- Parameters:
program
- the name of the program containing shader stageshadertype
- the shader stage from which to query for the subroutine parameter. One of:VERTEX_SHADER
FRAGMENT_SHADER
GEOMETRY_SHADER
TESS_CONTROL_SHADER
TESS_EVALUATION_SHADER
pname
- the parameter of the shader to query. One of:ACTIVE_SUBROUTINES
ACTIVE_SUBROUTINE_UNIFORMS
ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS
ACTIVE_SUBROUTINE_MAX_LENGTH
ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH
values
- a variable into which the queried value or values will be placed
-
glGetProgramStagei
public static int glGetProgramStagei(int program, int shadertype, int pname)
Retrieves properties of a program object corresponding to a specified shader stage.- Parameters:
program
- the name of the program containing shader stageshadertype
- the shader stage from which to query for the subroutine parameter. One of:VERTEX_SHADER
FRAGMENT_SHADER
GEOMETRY_SHADER
TESS_CONTROL_SHADER
TESS_EVALUATION_SHADER
pname
- the parameter of the shader to query. One of:ACTIVE_SUBROUTINES
ACTIVE_SUBROUTINE_UNIFORMS
ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS
ACTIVE_SUBROUTINE_MAX_LENGTH
ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH
-
glPatchParameteri
public static void glPatchParameteri(int pname, int value)
Specifies the integer value of the specified parameter for patch primitives.- Parameters:
pname
- the name of the parameter to set. Must be:PATCH_VERTICES
value
- the new value for the parameter given bypname
-
glPatchParameterfv
public static void glPatchParameterfv(int pname, java.nio.FloatBuffer values)
Specifies an array of float values for the specified parameter for patch primitives.- Parameters:
pname
- the name of the parameter to set. One of:PATCH_DEFAULT_OUTER_LEVEL
PATCH_DEFAULT_INNER_LEVEL
values
- an array containing the new values for the parameter given bypname
-
glBindTransformFeedback
public static void glBindTransformFeedback(int target, int id)
Binds a transform feedback object.- Parameters:
target
- the target to which to bind the transform feedback objectid
. Must be:TRANSFORM_FEEDBACK
id
- the name of a transform feedback object
-
glDeleteTransformFeedbacks
public static void glDeleteTransformFeedbacks(java.nio.IntBuffer ids)
Deletes transform feedback objects.- Parameters:
ids
- an array of names of transform feedback objects to delete
-
glDeleteTransformFeedbacks
public static void glDeleteTransformFeedbacks(int id)
Deletes transform feedback objects.
-
glGenTransformFeedbacks
public static void glGenTransformFeedbacks(java.nio.IntBuffer ids)
Reserves transform feedback object names.- Parameters:
ids
- an array of into which the reserved names will be written
-
glGenTransformFeedbacks
public static int glGenTransformFeedbacks()
Reserves transform feedback object names.
-
glIsTransformFeedback
public static boolean glIsTransformFeedback(int id)
Determines if a name corresponds to a transform feedback object.- Parameters:
id
- a value that may be the name of a transform feedback object
-
glPauseTransformFeedback
public static void glPauseTransformFeedback()
Pauses transform feedback operations for the currently bound transform feedback object.When transform feedback operations are paused, transform feedback is still considered active and changing most transform feedback state related to the object results in an error. However, a new transform feedback object may be bound while transform feedback is paused. The error
INVALID_OPERATION
is generated by PauseTransformFeedback if the currently bound transform feedback is not active or is paused.When transform feedback is active and not paused, all geometric primitives generated must be compatible with the value of
primitiveMode
passed toBeginTransformFeedback
. The errorINVALID_OPERATION
is generated byBegin
or any operation that implicitly callsBegin
(such asDrawElements
) ifmode
is not one of the allowed modes. If a geometry shader is active, its output primitive type is used instead of themode
parameter passed toBegin
for the purposes of this error check. Any primitive type may be used while transform feedback is paused.
-
glResumeTransformFeedback
public static void glResumeTransformFeedback()
Resumes transform feedback operations for the currently bound transform feedback object.The error
INVALID_OPERATION
is generated byResumeTransformFeedback
if the currently bound transform feedback is not active or is not paused.
-
glDrawTransformFeedback
public static void glDrawTransformFeedback(int mode, int id)
Render primitives using a count derived from a transform feedback object.- Parameters:
mode
- what kind of primitives to render. One of:POINTS
LINE_STRIP
LINE_LOOP
LINES
POLYGON
TRIANGLE_STRIP
TRIANGLE_FAN
TRIANGLES
QUAD_STRIP
QUADS
LINES_ADJACENCY
LINE_STRIP_ADJACENCY
TRIANGLES_ADJACENCY
TRIANGLE_STRIP_ADJACENCY
PATCHES
id
- the name of a transform feedback object from which to retrieve a primitive count
-
glDrawTransformFeedbackStream
public static void glDrawTransformFeedbackStream(int mode, int id, int stream)
Renders primitives using a count derived from a specifed stream of a transform feedback object.- Parameters:
mode
- what kind of primitives to render. One of:POINTS
LINE_STRIP
LINE_LOOP
LINES
POLYGON
TRIANGLE_STRIP
TRIANGLE_FAN
TRIANGLES
QUAD_STRIP
QUADS
LINES_ADJACENCY
LINE_STRIP_ADJACENCY
TRIANGLES_ADJACENCY
TRIANGLE_STRIP_ADJACENCY
PATCHES
id
- the name of a transform feedback object from which to retrieve a primitive countstream
- the index of the transform feedback stream from which to retrieve a primitive count
-
glBeginQueryIndexed
public static void glBeginQueryIndexed(int target, int index, int id)
Begins a query object on an indexed target- Parameters:
target
- the target type of query object established betweenglBeginQueryIndexed
and the subsequentEndQueryIndexed
. One of:SAMPLES_PASSED
PRIMITIVES_GENERATED
TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN
TIME_ELAPSED
TIMESTAMP
ANY_SAMPLES_PASSED
ANY_SAMPLES_PASSED_CONSERVATIVE
index
- the index of the query target upon which to begin the queryid
- the name of a query object
-
glEndQueryIndexed
public static void glEndQueryIndexed(int target, int index)
Ends a query object on an indexed target- Parameters:
target
- the target type of query object to be concluded. One of:SAMPLES_PASSED
PRIMITIVES_GENERATED
TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN
TIME_ELAPSED
TIMESTAMP
ANY_SAMPLES_PASSED
ANY_SAMPLES_PASSED_CONSERVATIVE
index
- the index of the query target upon which to end the query
-
glGetQueryIndexediv
public static void glGetQueryIndexediv(int target, int index, int pname, java.nio.IntBuffer params)
Returns parameters of an indexed query object target.- Parameters:
target
- a query object target. One of:SAMPLES_PASSED
PRIMITIVES_GENERATED
TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN
TIME_ELAPSED
TIMESTAMP
ANY_SAMPLES_PASSED
ANY_SAMPLES_PASSED_CONSERVATIVE
index
- the index of the query object targetpname
- the symbolic name of a query object target parameterparams
- the requested data
-
glGetQueryIndexedi
public static int glGetQueryIndexedi(int target, int index, int pname)
Returns parameters of an indexed query object target.- Parameters:
target
- a query object target. One of:SAMPLES_PASSED
PRIMITIVES_GENERATED
TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN
TIME_ELAPSED
TIMESTAMP
ANY_SAMPLES_PASSED
ANY_SAMPLES_PASSED_CONSERVATIVE
index
- the index of the query object targetpname
- the symbolic name of a query object target parameter
-
glDrawArraysIndirect
public static void glDrawArraysIndirect(int mode, int[] indirect)
Array version of:DrawArraysIndirect
-
glDrawElementsIndirect
public static void glDrawElementsIndirect(int mode, int type, int[] indirect)
Array version of:DrawElementsIndirect
-
glUniform1dv
public static void glUniform1dv(int location, double[] value)
Array version of:Uniform1dv
-
glUniform2dv
public static void glUniform2dv(int location, double[] value)
Array version of:Uniform2dv
-
glUniform3dv
public static void glUniform3dv(int location, double[] value)
Array version of:Uniform3dv
-
glUniform4dv
public static void glUniform4dv(int location, double[] value)
Array version of:Uniform4dv
-
glUniformMatrix2dv
public static void glUniformMatrix2dv(int location, boolean transpose, double[] value)
Array version of:UniformMatrix2dv
-
glUniformMatrix3dv
public static void glUniformMatrix3dv(int location, boolean transpose, double[] value)
Array version of:UniformMatrix3dv
-
glUniformMatrix4dv
public static void glUniformMatrix4dv(int location, boolean transpose, double[] value)
Array version of:UniformMatrix4dv
-
glUniformMatrix2x3dv
public static void glUniformMatrix2x3dv(int location, boolean transpose, double[] value)
Array version of:UniformMatrix2x3dv
-
glUniformMatrix2x4dv
public static void glUniformMatrix2x4dv(int location, boolean transpose, double[] value)
Array version of:UniformMatrix2x4dv
-
glUniformMatrix3x2dv
public static void glUniformMatrix3x2dv(int location, boolean transpose, double[] value)
Array version of:UniformMatrix3x2dv
-
glUniformMatrix3x4dv
public static void glUniformMatrix3x4dv(int location, boolean transpose, double[] value)
Array version of:UniformMatrix3x4dv
-
glUniformMatrix4x2dv
public static void glUniformMatrix4x2dv(int location, boolean transpose, double[] value)
Array version of:UniformMatrix4x2dv
-
glUniformMatrix4x3dv
public static void glUniformMatrix4x3dv(int location, boolean transpose, double[] value)
Array version of:UniformMatrix4x3dv
-
glGetUniformdv
public static void glGetUniformdv(int program, int location, double[] params)
Array version of:GetUniformdv
-
glGetActiveSubroutineUniformiv
public static void glGetActiveSubroutineUniformiv(int program, int shadertype, int index, int pname, int[] values)
Array version of:GetActiveSubroutineUniformiv
-
glGetActiveSubroutineUniformName
public static void glGetActiveSubroutineUniformName(int program, int shadertype, int index, int[] length, java.nio.ByteBuffer name)
Array version of:GetActiveSubroutineUniformName
-
glGetActiveSubroutineName
public static void glGetActiveSubroutineName(int program, int shadertype, int index, int[] length, java.nio.ByteBuffer name)
Array version of:GetActiveSubroutineName
-
glUniformSubroutinesuiv
public static void glUniformSubroutinesuiv(int shadertype, int[] indices)
Array version of:UniformSubroutinesuiv
-
glGetUniformSubroutineuiv
public static void glGetUniformSubroutineuiv(int shadertype, int location, int[] params)
Array version of:GetUniformSubroutineuiv
-
glGetProgramStageiv
public static void glGetProgramStageiv(int program, int shadertype, int pname, int[] values)
Array version of:GetProgramStageiv
-
glPatchParameterfv
public static void glPatchParameterfv(int pname, float[] values)
Array version of:PatchParameterfv
-
glDeleteTransformFeedbacks
public static void glDeleteTransformFeedbacks(int[] ids)
Array version of:DeleteTransformFeedbacks
-
glGenTransformFeedbacks
public static void glGenTransformFeedbacks(int[] ids)
Array version of:GenTransformFeedbacks
-
glGetQueryIndexediv
public static void glGetQueryIndexediv(int target, int index, int pname, int[] params)
Array version of:GetQueryIndexediv
-
-