Class GL31
- java.lang.Object
-
- org.lwjgl.opengl.GL31
-
public class GL31 extends java.lang.ObjectThe core OpenGL 3.1 functionality. OpenGL 3.1 implementations support revision 1.40 of the OpenGL Shading Language.Extensions promoted to core in this release:
-
-
Field Summary
Fields Modifier and Type Field and Description static intGL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH
GL_ACTIVE_UNIFORM_BLOCKSAccepted by thepnameparameter of GetProgramiv.static intGL_COPY_READ_BUFFER
GL_COPY_WRITE_BUFFERAccepted by the target parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, GetBufferPointerv, MapBufferRange, FlushMappedBufferRange, GetBufferParameteriv, BindBufferRange, BindBufferBase, and CopyBufferSubData.static intGL_INT_SAMPLER_2D_RECT
GL_INT_SAMPLER_BUFFERReturned by thetypeparameter of GetActiveUniform.static intGL_INVALID_INDEXReturned by GetActiveUniformsiv and GetUniformBlockIndex.static intGL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS
GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS
GL_MAX_COMBINED_UNIFORM_BLOCKS
GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS
GL_MAX_FRAGMENT_UNIFORM_BLOCKS
GL_MAX_GEOMETRY_UNIFORM_BLOCKSAccepted by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static intGL_MAX_RECTANGLE_TEXTURE_SIZEAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv and GetFloatv.static intGL_MAX_TEXTURE_BUFFER_SIZEAccepted by thepnameparameters of GetBooleanv, GetDoublev, GetFloatv, and GetIntegerv.static intGL_MAX_UNIFORM_BLOCK_SIZE
GL_MAX_UNIFORM_BUFFER_BINDINGS
GL_MAX_VERTEX_UNIFORM_BLOCKSAccepted by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static intGL_PRIMITIVE_RESTARTAccepted by thecapparameter of Enable, Disable and IsEnabled.static intGL_PRIMITIVE_RESTART_INDEXAccepted by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static intGL_PROXY_TEXTURE_RECTANGLEAccepted by thetargetparameter of GetTexLevelParameteriv, GetTexLevelParameterfv, GetTexParameteriv and TexImage2D.static intGL_R16_SNORM
GL_R8_SNORM
GL_RG16_SNORM
GL_RG8_SNORM
GL_RGB16_SNORM
GL_RGB8_SNORM
GL_RGBA16_SNORM
GL_RGBA8_SNORMAccepted by theinternalFormatparameter of TexImage1D, TexImage2D, and TexImage3D.static intGL_SAMPLER_2D_RECTReturned bytypeparameter of GetActiveUniform when the locationindexfor program objectprogramis of type sampler2DRect.static intGL_SAMPLER_2D_RECT_SHADOWReturned bytypeparameter of GetActiveUniform when the locationindexfor program objectprogramis of type sampler2DRectShadow.static intGL_SAMPLER_BUFFERReturned by thetypeparameter of GetActiveUniform.static intGL_SIGNED_NORMALIZEDReturned by GetTexLevelParameter and GetFramebufferAttachmentParameter.static intGL_TEXTURE_BINDING_BUFFERAccepted by thepnameparameters of GetBooleanv, GetDoublev, GetFloatv, and GetIntegerv.static intGL_TEXTURE_BINDING_RECTANGLEAccepted by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv and GetDoublev.static intGL_TEXTURE_BUFFERAccepted by thetargetparameter of BindBuffer, BufferData, BufferSubData, MapBuffer, MapBufferRange, BindTexture, UnmapBuffer, GetBufferSubData, GetBufferParameteriv, GetBufferPointerv, and TexBuffer, and thepnameparameter of GetBooleanv, GetDoublev, GetFloatv, and GetIntegerv.static intGL_TEXTURE_BUFFER_DATA_STORE_BINDINGAccepted by thepnameparameters of GetBooleanv, GetDoublev, GetFloatv, and GetIntegerv.static intGL_TEXTURE_RECTANGLEAccepted by thecapparameter of Enable, Disable and IsEnabled; by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv and GetDoublev; and by thetargetparameter of BindTexture, GetTexParameterfv, GetTexParameteriv, TexParameterf, TexParameteri, TexParameterfv and TexParameteriv.static intGL_UNIFORM_ARRAY_STRIDEAccepted by thepnameparameter of GetActiveUniformsiv.static intGL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES
GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS
GL_UNIFORM_BLOCK_BINDING
GL_UNIFORM_BLOCK_DATA_SIZEAccepted by thepnameparameter of GetActiveUniformBlockiv.static intGL_UNIFORM_BLOCK_INDEXAccepted by thepnameparameter of GetActiveUniformsiv.static intGL_UNIFORM_BLOCK_NAME_LENGTH
GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER
GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER
GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADERAccepted by thepnameparameter of GetActiveUniformBlockiv.static intGL_UNIFORM_BUFFERAccepted by thetargetparameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, and GetBufferPointerv.static intGL_UNIFORM_BUFFER_BINDINGAccepted by thepnameparameter of GetIntegeri_v, GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static intGL_UNIFORM_BUFFER_OFFSET_ALIGNMENTAccepted by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static intGL_UNIFORM_BUFFER_SIZE
GL_UNIFORM_BUFFER_STARTAccepted by thepnameparameter of GetIntegeri_v.static intGL_UNIFORM_IS_ROW_MAJOR
GL_UNIFORM_MATRIX_STRIDE
GL_UNIFORM_NAME_LENGTH
GL_UNIFORM_OFFSET
GL_UNIFORM_SIZE
GL_UNIFORM_TYPEAccepted by thepnameparameter of GetActiveUniformsiv.static intGL_UNSIGNED_INT_SAMPLER_2D_RECT
GL_UNSIGNED_INT_SAMPLER_BUFFERReturned by thetypeparameter of GetActiveUniform.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidglCopyBufferSubData(int readTarget, int writeTarget, long readOffset, long writeOffset, long size)static voidglDrawArraysInstanced(int mode, int first, int count, int primcount)static voidglDrawElementsInstanced(int mode, java.nio.ByteBuffer indices, int primcount)static voidglDrawElementsInstanced(int mode, java.nio.IntBuffer indices, int primcount)static voidglDrawElementsInstanced(int mode, int type, java.nio.ByteBuffer indices, int primcount)static voidglDrawElementsInstanced(int mode, int count, int type, long indices, int primcount)static voidglDrawElementsInstanced(int mode, java.nio.ShortBuffer indices, int primcount)static intglGetActiveUniformBlocki(int program, int uniformBlockIndex, int pname)static voidglGetActiveUniformBlockiv(int program, int uniformBlockIndex, int pname, int[] params)static voidglGetActiveUniformBlockiv(int program, int uniformBlockIndex, int pname, java.nio.IntBuffer params)static java.lang.StringglGetActiveUniformBlockName(int program, int uniformBlockIndex)static java.lang.StringglGetActiveUniformBlockName(int program, int uniformBlockIndex, int bufSize)static voidglGetActiveUniformBlockName(int program, int uniformBlockIndex, int[] length, java.nio.ByteBuffer uniformBlockName)static voidglGetActiveUniformBlockName(int program, int uniformBlockIndex, java.nio.IntBuffer length, java.nio.ByteBuffer uniformBlockName)static java.lang.StringglGetActiveUniformName(int program, int uniformIndex)static java.lang.StringglGetActiveUniformName(int program, int uniformIndex, int bufSize)static voidglGetActiveUniformName(int program, int uniformIndex, int[] length, java.nio.ByteBuffer uniformName)static voidglGetActiveUniformName(int program, int uniformIndex, java.nio.IntBuffer length, java.nio.ByteBuffer uniformName)static intglGetActiveUniformsi(int program, int uniformIndex, int pname)static voidglGetActiveUniformsiv(int program, int[] uniformIndices, int pname, int[] params)static voidglGetActiveUniformsiv(int program, java.nio.IntBuffer uniformIndices, int pname, java.nio.IntBuffer params)static intglGetUniformBlockIndex(int program, java.nio.ByteBuffer uniformBlockName)static intglGetUniformBlockIndex(int program, java.lang.CharSequence uniformBlockName)static intglGetUniformIndices(int program, java.lang.CharSequence uniformName)static voidglGetUniformIndices(int program, java.lang.CharSequence[] uniformNames, java.nio.IntBuffer uniformIndices)static voidglGetUniformIndices(int program, org.lwjgl.PointerBuffer uniformNames, int[] uniformIndices)static voidglGetUniformIndices(int program, org.lwjgl.PointerBuffer uniformNames, java.nio.IntBuffer uniformIndices)static voidglPrimitiveRestartIndex(int index)static voidglTexBuffer(int target, int internalformat, int buffer)static voidglUniformBlockBinding(int program, int uniformBlockIndex, int uniformBlockBinding)
-
-
-
Field Detail
-
GL_R8_SNORM, GL_RG8_SNORM, GL_RGB8_SNORM, GL_RGBA8_SNORM, GL_R16_SNORM, GL_RG16_SNORM, GL_RGB16_SNORM, GL_RGBA16_SNORM
Accepted by theinternalFormatparameter of TexImage1D, TexImage2D, and TexImage3D.
-
GL_SIGNED_NORMALIZED
Returned by GetTexLevelParameter and GetFramebufferAttachmentParameter.
-
GL_SAMPLER_BUFFER, GL_INT_SAMPLER_2D_RECT, GL_INT_SAMPLER_BUFFER, GL_UNSIGNED_INT_SAMPLER_2D_RECT, GL_UNSIGNED_INT_SAMPLER_BUFFER
Returned by thetypeparameter of GetActiveUniform.
-
GL_COPY_READ_BUFFER, GL_COPY_WRITE_BUFFER
Accepted by the target parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, GetBufferPointerv, MapBufferRange, FlushMappedBufferRange, GetBufferParameteriv, BindBufferRange, BindBufferBase, and CopyBufferSubData.
-
GL_PRIMITIVE_RESTART
Accepted by thecapparameter of Enable, Disable and IsEnabled.
-
GL_PRIMITIVE_RESTART_INDEX
Accepted by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_TEXTURE_BUFFER
Accepted by thetargetparameter of BindBuffer, BufferData, BufferSubData, MapBuffer, MapBufferRange, BindTexture, UnmapBuffer, GetBufferSubData, GetBufferParameteriv, GetBufferPointerv, and TexBuffer, and thepnameparameter of GetBooleanv, GetDoublev, GetFloatv, and GetIntegerv.
-
GL_MAX_TEXTURE_BUFFER_SIZE, GL_TEXTURE_BINDING_BUFFER, GL_TEXTURE_BUFFER_DATA_STORE_BINDING
Accepted by thepnameparameters of GetBooleanv, GetDoublev, GetFloatv, and GetIntegerv.
-
GL_TEXTURE_RECTANGLE
Accepted by thecapparameter of Enable, Disable and IsEnabled; by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv and GetDoublev; and by thetargetparameter of BindTexture, GetTexParameterfv, GetTexParameteriv, TexParameterf, TexParameteri, TexParameterfv and TexParameteriv.
-
GL_TEXTURE_BINDING_RECTANGLE
Accepted by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv and GetDoublev.
-
GL_PROXY_TEXTURE_RECTANGLE
Accepted by thetargetparameter of GetTexLevelParameteriv, GetTexLevelParameterfv, GetTexParameteriv and TexImage2D.
-
GL_MAX_RECTANGLE_TEXTURE_SIZE
Accepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv and GetFloatv.
-
GL_SAMPLER_2D_RECT
Returned bytypeparameter of GetActiveUniform when the locationindexfor program objectprogramis of type sampler2DRect.
-
GL_SAMPLER_2D_RECT_SHADOW
Returned bytypeparameter of GetActiveUniform when the locationindexfor program objectprogramis of type sampler2DRectShadow.
-
GL_UNIFORM_BUFFER
Accepted by thetargetparameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, and GetBufferPointerv.
-
GL_UNIFORM_BUFFER_BINDING
Accepted by thepnameparameter of GetIntegeri_v, GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_UNIFORM_BUFFER_START, GL_UNIFORM_BUFFER_SIZE
Accepted by thepnameparameter of GetIntegeri_v.
-
GL_MAX_VERTEX_UNIFORM_BLOCKS, GL_MAX_GEOMETRY_UNIFORM_BLOCKS, GL_MAX_FRAGMENT_UNIFORM_BLOCKS, GL_MAX_COMBINED_UNIFORM_BLOCKS, GL_MAX_UNIFORM_BUFFER_BINDINGS, GL_MAX_UNIFORM_BLOCK_SIZE, GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS, GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS, GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS, GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT
Accepted by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH, GL_ACTIVE_UNIFORM_BLOCKS
Accepted by thepnameparameter of GetProgramiv.
-
GL_UNIFORM_TYPE, GL_UNIFORM_SIZE, GL_UNIFORM_NAME_LENGTH, GL_UNIFORM_BLOCK_INDEX, GL_UNIFORM_OFFSET, GL_UNIFORM_ARRAY_STRIDE, GL_UNIFORM_MATRIX_STRIDE, GL_UNIFORM_IS_ROW_MAJOR
Accepted by thepnameparameter of GetActiveUniformsiv.
-
GL_UNIFORM_BLOCK_BINDING, GL_UNIFORM_BLOCK_DATA_SIZE, GL_UNIFORM_BLOCK_NAME_LENGTH, GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS, GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES, GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER, GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER, GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER
Accepted by thepnameparameter of GetActiveUniformBlockiv.
-
GL_INVALID_INDEX
Returned by GetActiveUniformsiv and GetUniformBlockIndex.
-
-
Method Detail
-
glDrawArraysInstanced
public static void glDrawArraysInstanced(int mode, int first, int count, int primcount)Draw multiple instances of a range of elements.- Parameters:
mode- the kind of primitives to render. One of:POINTSLINE_STRIPLINE_LOOPLINESPOLYGONTRIANGLE_STRIPTRIANGLE_FANTRIANGLESQUAD_STRIPQUADSLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESfirst- the index of the first vertex to be renderedcount- the number of vertices to be renderedprimcount- the number of instances of the specified range of vertices to be rendered
-
glDrawElementsInstanced
public static void glDrawElementsInstanced(int mode, int count, int type, long indices, int primcount)Draws multiple instances of a set of elements.- Parameters:
mode- the kind of primitives to render. One of:POINTSLINE_STRIPLINE_LOOPLINESPOLYGONTRIANGLE_STRIPTRIANGLE_FANTRIANGLESQUAD_STRIPQUADSLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHEScount- the number of elements to be renderedtype- the type of the values inindices. One of:UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INTindices- the ByteBuffer containing the indices to be renderedprimcount- the number of instances of the specified range of indices to be rendered
-
glDrawElementsInstanced
public static void glDrawElementsInstanced(int mode, int type, java.nio.ByteBuffer indices, int primcount)Draws multiple instances of a set of elements.- Parameters:
mode- the kind of primitives to render. One of:POINTSLINE_STRIPLINE_LOOPLINESPOLYGONTRIANGLE_STRIPTRIANGLE_FANTRIANGLESQUAD_STRIPQUADSLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHEStype- the type of the values inindices. One of:UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INTindices- the ByteBuffer containing the indices to be renderedprimcount- the number of instances of the specified range of indices to be rendered
-
glDrawElementsInstanced
public static void glDrawElementsInstanced(int mode, java.nio.ByteBuffer indices, int primcount) public static void glDrawElementsInstanced(int mode, java.nio.ShortBuffer indices, int primcount) public static void glDrawElementsInstanced(int mode, java.nio.IntBuffer indices, int primcount)Draws multiple instances of a set of elements.- Parameters:
mode- the kind of primitives to render. One of:POINTSLINE_STRIPLINE_LOOPLINESPOLYGONTRIANGLE_STRIPTRIANGLE_FANTRIANGLESQUAD_STRIPQUADSLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESindices- the ByteBuffer containing the indices to be renderedprimcount- the number of instances of the specified range of indices to be rendered
-
glCopyBufferSubData
public static void glCopyBufferSubData(int readTarget, int writeTarget, long readOffset, long writeOffset, long size)Copies all or part of one buffer object's data store to the data store of another buffer object.An
INVALID_VALUEerror is generated if any of readoffset, writeoffset, or size are negative, if readoffset+size exceeds the size of the buffer object bound to readtarget, or if writeoffset+size exceeds the size of the buffer object bound to writetarget.An
INVALID_VALUEerror is generated if the same buffer object is bound to both readtarget and writetarget, and the ranges [readoffset, readoffset+size) and [writeoffset, writeoffset+size) overlap.An
INVALID_OPERATIONerror is generated if zero is bound to readtarget or writetarget.An
INVALID_OPERATIONerror is generated if the buffer objects bound to either readtarget or writetarget are mapped.- Parameters:
readTarget- the source buffer object target. One of:ARRAY_BUFFERCOPY_READ_BUFFERCOPY_WRITE_BUFFERELEMENT_ARRAY_BUFFERPIXEL_PACK_BUFFERPIXEL_UNPACK_BUFFERTRANSFORM_FEEDBACK_BUFFERTEXTURE_BUFFERUNIFORM_BUFFERwriteTarget- the destination buffer object targetreadOffset- the source buffer object offset, in byteswriteOffset- the destination buffer object offset, in bytessize- the number of bytes to copy
-
glPrimitiveRestartIndex
public static void glPrimitiveRestartIndex(int index)
Specifies the primitive restart index.- Parameters:
index- the value to be interpreted as the primitive restart index
-
glTexBuffer
public static void glTexBuffer(int target, int internalformat, int buffer)Attaches the storage for the buffer object namedbufferto the active buffer texture, and specifies an internal format for the texel array found in the attached buffer object. Ifbufferis zero, any buffer object attached to the buffer texture is detached, and no new buffer object is attached. Ifbufferis non-zero, but is not the name of an existing buffer object, the errorINVALID_OPERATIONis generated.When a buffer object is attached to a buffer texture, the buffer object's data store is taken as the texture's texel array. The number of texels in the buffer texture's texel array is given by
floor(buffer_size / (components * sizeof(base_type)),where
buffer_sizeis the size of the buffer object, in basic machine units andcomponentsandbase_typeare the element count and base data type for elements. The number of texels in the texel array is then clamped to the implementation-dependent limitMAX_TEXTURE_BUFFER_SIZE. When a buffer texture is accessed in a shader, the results of a texel fetch are undefined if the specified texel number is greater than or equal to the clamped number of texels in the texel array.When a buffer texture is accessed in a shader, an integer is provided to indicate the texel number being accessed. If no buffer object is bound to the buffer texture, the results of the texel access are undefined. Otherwise, the attached buffer object's data store is interpreted as an array of elements of the GL data type corresponding to
internalformat. Each texel consists of one to four elements that are mapped to texture components (R, G, B, A, L, and I). Elementmof the texel numberednis taken from elementn*components+mof the attached buffer object's data store. Elements and texels are both numbered starting with zero. For texture formats with normalized components, the extracted values are converted to floating-point values. The components of the texture are then converted to an (R,G,B,A) vector, and returned to the shader as a four-component result vector with components of the appropriate data type for the texture's internal format.- Parameters:
target- the target of the operation. Must be:TEXTURE_BUFFERinternalformat- the sized internal format of the data in the store belonging tobufferbuffer- the name of the buffer object whose storage to attach to the active buffer texture
-
glGetUniformIndices
public static void glGetUniformIndices(int program, org.lwjgl.PointerBuffer uniformNames, java.nio.IntBuffer uniformIndices) public static void glGetUniformIndices(int program, java.lang.CharSequence[] uniformNames, java.nio.IntBuffer uniformIndices)Retrieves the indices of a number of uniforms within a program object- Parameters:
program- the name of a program containing uniforms whose indices to queryuniformNames- an array of pointers to buffers containing the names of the queried uniformsuniformIndices- an array that will receive the indices of the uniforms
-
glGetUniformIndices
public static int glGetUniformIndices(int program, java.lang.CharSequence uniformName)Retrieves the indices of a number of uniforms within a program object- Parameters:
program- the name of a program containing uniforms whose indices to query
-
glGetActiveUniformsiv
public static void glGetActiveUniformsiv(int program, java.nio.IntBuffer uniformIndices, int pname, java.nio.IntBuffer params)Returns information about several active uniform variables for the specified program object.- Parameters:
program- the program object to be querieduniformIndices- an array ofuniformCountintegers containing the indices of uniforms withinprogrampname- the property of the each uniform inuniformIndicesthat should be written into the corresponding element ofparamsparams- an array ofuniformCountintegers which are to receive the value ofpnamefor each uniform inuniformIndices
-
glGetActiveUniformsi
public static int glGetActiveUniformsi(int program, int uniformIndex, int pname)Returns information about several active uniform variables for the specified program object.- Parameters:
program- the program object to be queriedpname- the property of the each uniform inuniformIndicesthat should be written into the corresponding element ofparams
-
glGetActiveUniformName
public static void glGetActiveUniformName(int program, int uniformIndex, java.nio.IntBuffer length, java.nio.ByteBuffer uniformName)Queries the name of an active uniform.- Parameters:
program- the program containing the active uniform indexuniformIndexuniformIndex- the index of the active uniform whose name to querylength- the address of a variable that will receive the number of characters that were or would have been written to the buffer addressed byuniformNameuniformName- the address of a buffer into which the GL will place the name of the active uniform atuniformIndexwithinprogram
-
glGetActiveUniformName
public static java.lang.String glGetActiveUniformName(int program, int uniformIndex, int bufSize)Queries the name of an active uniform.- Parameters:
program- the program containing the active uniform indexuniformIndexuniformIndex- the index of the active uniform whose name to querybufSize- the size of the buffer, in units ofGLchar, of the buffer whose address is specified inuniformName
-
glGetActiveUniformName
public static java.lang.String glGetActiveUniformName(int program, int uniformIndex)Queries the name of an active uniform.- Parameters:
program- the program containing the active uniform indexuniformIndexuniformIndex- the index of the active uniform whose name to query
-
glGetUniformBlockIndex
public static int glGetUniformBlockIndex(int program, java.nio.ByteBuffer uniformBlockName) public static int glGetUniformBlockIndex(int program, java.lang.CharSequence uniformBlockName)Retrieves the index of a named uniform block.- Parameters:
program- the name of a program containing the uniform blockuniformBlockName- an array of characters to containing the name of the uniform block whose index to retrieve
-
glGetActiveUniformBlockiv
public static void glGetActiveUniformBlockiv(int program, int uniformBlockIndex, int pname, java.nio.IntBuffer params)Queries information about an active uniform block.- Parameters:
program- the name of a program containing the uniform blockuniformBlockIndex- the index of the uniform block withinprogrampname- the name of the parameter to query. One of:params- the address of a variable to receive the result of the query
-
glGetActiveUniformBlocki
public static int glGetActiveUniformBlocki(int program, int uniformBlockIndex, int pname)Queries information about an active uniform block.- Parameters:
program- the name of a program containing the uniform blockuniformBlockIndex- the index of the uniform block withinprogrampname- the name of the parameter to query. One of:
-
glGetActiveUniformBlockName
public static void glGetActiveUniformBlockName(int program, int uniformBlockIndex, java.nio.IntBuffer length, java.nio.ByteBuffer uniformBlockName)Retrieves the name of an active uniform block.- Parameters:
program- the name of a program containing the uniform blockuniformBlockIndex- the index of the uniform block withinprogramlength- the address of a variable to receive the number of characters that were written touniformBlockNameuniformBlockName- an array of characters to receive the name of the uniform block atuniformBlockIndex
-
glGetActiveUniformBlockName
public static java.lang.String glGetActiveUniformBlockName(int program, int uniformBlockIndex, int bufSize)Retrieves the name of an active uniform block.- Parameters:
program- the name of a program containing the uniform blockuniformBlockIndex- the index of the uniform block withinprogrambufSize- the size of the buffer addressed byuniformBlockName
-
glGetActiveUniformBlockName
public static java.lang.String glGetActiveUniformBlockName(int program, int uniformBlockIndex)Retrieves the name of an active uniform block.- Parameters:
program- the name of a program containing the uniform blockuniformBlockIndex- the index of the uniform block withinprogram
-
glUniformBlockBinding
public static void glUniformBlockBinding(int program, int uniformBlockIndex, int uniformBlockBinding)Assigns a binding point to an active uniform block.- Parameters:
program- the name of a program object containing the active uniform block whose binding to assignuniformBlockIndex- the index of the active uniform block withinprogramwhose binding to assignuniformBlockBinding- the binding point to which to bind the uniform block with indexuniformBlockIndexwithinprogram
-
glGetUniformIndices
public static void glGetUniformIndices(int program, org.lwjgl.PointerBuffer uniformNames, int[] uniformIndices)Array version of:GetUniformIndices
-
glGetActiveUniformsiv
public static void glGetActiveUniformsiv(int program, int[] uniformIndices, int pname, int[] params)Array version of:GetActiveUniformsiv
-
glGetActiveUniformName
public static void glGetActiveUniformName(int program, int uniformIndex, int[] length, java.nio.ByteBuffer uniformName)Array version of:GetActiveUniformName
-
glGetActiveUniformBlockiv
public static void glGetActiveUniformBlockiv(int program, int uniformBlockIndex, int pname, int[] params)Array version of:GetActiveUniformBlockiv
-
glGetActiveUniformBlockName
public static void glGetActiveUniformBlockName(int program, int uniformBlockIndex, int[] length, java.nio.ByteBuffer uniformBlockName)Array version of:GetActiveUniformBlockName
-
-