Class GL31
- java.lang.Object
-
- org.lwjgl.opengl.GL31
-
public class GL31 extends java.lang.Object
The 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 int
GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH
GL_ACTIVE_UNIFORM_BLOCKSAccepted by thepname
parameter of GetProgramiv.static int
GL_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 int
GL_INT_SAMPLER_2D_RECT
GL_INT_SAMPLER_BUFFERReturned by thetype
parameter of GetActiveUniform.static int
GL_INVALID_INDEX
Returned by GetActiveUniformsiv and GetUniformBlockIndex.static int
GL_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 thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_MAX_RECTANGLE_TEXTURE_SIZE
Accepted by thepname
parameter of GetBooleanv, GetDoublev, GetIntegerv and GetFloatv.static int
GL_MAX_TEXTURE_BUFFER_SIZE
Accepted by thepname
parameters of GetBooleanv, GetDoublev, GetFloatv, and GetIntegerv.static int
GL_MAX_UNIFORM_BLOCK_SIZE
GL_MAX_UNIFORM_BUFFER_BINDINGS
GL_MAX_VERTEX_UNIFORM_BLOCKSAccepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_PRIMITIVE_RESTART
Accepted by thecap
parameter of Enable, Disable and IsEnabled.static int
GL_PRIMITIVE_RESTART_INDEX
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_PROXY_TEXTURE_RECTANGLE
Accepted by thetarget
parameter of GetTexLevelParameteriv, GetTexLevelParameterfv, GetTexParameteriv and TexImage2D.static int
GL_R16_SNORM
GL_R8_SNORM
GL_RG16_SNORM
GL_RG8_SNORM
GL_RGB16_SNORM
GL_RGB8_SNORM
GL_RGBA16_SNORM
GL_RGBA8_SNORMAccepted by theinternalFormat
parameter of TexImage1D, TexImage2D, and TexImage3D.static int
GL_SAMPLER_2D_RECT
Returned bytype
parameter of GetActiveUniform when the locationindex
for program objectprogram
is of type sampler2DRect.static int
GL_SAMPLER_2D_RECT_SHADOW
Returned bytype
parameter of GetActiveUniform when the locationindex
for program objectprogram
is of type sampler2DRectShadow.static int
GL_SAMPLER_BUFFER
Returned by thetype
parameter of GetActiveUniform.static int
GL_SIGNED_NORMALIZED
Returned by GetTexLevelParameter and GetFramebufferAttachmentParameter.static int
GL_TEXTURE_BINDING_BUFFER
Accepted by thepname
parameters of GetBooleanv, GetDoublev, GetFloatv, and GetIntegerv.static int
GL_TEXTURE_BINDING_RECTANGLE
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv and GetDoublev.static int
GL_TEXTURE_BUFFER
Accepted by thetarget
parameter of BindBuffer, BufferData, BufferSubData, MapBuffer, MapBufferRange, BindTexture, UnmapBuffer, GetBufferSubData, GetBufferParameteriv, GetBufferPointerv, and TexBuffer, and thepname
parameter of GetBooleanv, GetDoublev, GetFloatv, and GetIntegerv.static int
GL_TEXTURE_BUFFER_DATA_STORE_BINDING
Accepted by thepname
parameters of GetBooleanv, GetDoublev, GetFloatv, and GetIntegerv.static int
GL_TEXTURE_RECTANGLE
Accepted by thecap
parameter of Enable, Disable and IsEnabled; by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv and GetDoublev; and by thetarget
parameter of BindTexture, GetTexParameterfv, GetTexParameteriv, TexParameterf, TexParameteri, TexParameterfv and TexParameteriv.static int
GL_UNIFORM_ARRAY_STRIDE
Accepted by thepname
parameter of GetActiveUniformsiv.static int
GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES
GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS
GL_UNIFORM_BLOCK_BINDING
GL_UNIFORM_BLOCK_DATA_SIZEAccepted by thepname
parameter of GetActiveUniformBlockiv.static int
GL_UNIFORM_BLOCK_INDEX
Accepted by thepname
parameter of GetActiveUniformsiv.static int
GL_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 thepname
parameter of GetActiveUniformBlockiv.static int
GL_UNIFORM_BUFFER
Accepted by thetarget
parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, and GetBufferPointerv.static int
GL_UNIFORM_BUFFER_BINDING
Accepted by thepname
parameter of GetIntegeri_v, GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_UNIFORM_BUFFER_SIZE
GL_UNIFORM_BUFFER_STARTAccepted by thepname
parameter of GetIntegeri_v.static int
GL_UNIFORM_IS_ROW_MAJOR
GL_UNIFORM_MATRIX_STRIDE
GL_UNIFORM_NAME_LENGTH
GL_UNIFORM_OFFSET
GL_UNIFORM_SIZE
GL_UNIFORM_TYPEAccepted by thepname
parameter of GetActiveUniformsiv.static int
GL_UNSIGNED_INT_SAMPLER_2D_RECT
GL_UNSIGNED_INT_SAMPLER_BUFFERReturned by thetype
parameter of GetActiveUniform.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static void
glCopyBufferSubData(int readTarget, int writeTarget, long readOffset, long writeOffset, long size)
static void
glDrawArraysInstanced(int mode, int first, int count, int primcount)
static void
glDrawElementsInstanced(int mode, java.nio.ByteBuffer indices, int primcount)
static void
glDrawElementsInstanced(int mode, java.nio.IntBuffer indices, int primcount)
static void
glDrawElementsInstanced(int mode, int type, java.nio.ByteBuffer indices, int primcount)
static void
glDrawElementsInstanced(int mode, int count, int type, long indices, int primcount)
static void
glDrawElementsInstanced(int mode, java.nio.ShortBuffer indices, int primcount)
static int
glGetActiveUniformBlocki(int program, int uniformBlockIndex, int pname)
static void
glGetActiveUniformBlockiv(int program, int uniformBlockIndex, int pname, int[] params)
static void
glGetActiveUniformBlockiv(int program, int uniformBlockIndex, int pname, java.nio.IntBuffer params)
static java.lang.String
glGetActiveUniformBlockName(int program, int uniformBlockIndex)
static java.lang.String
glGetActiveUniformBlockName(int program, int uniformBlockIndex, int bufSize)
static void
glGetActiveUniformBlockName(int program, int uniformBlockIndex, int[] length, java.nio.ByteBuffer uniformBlockName)
static void
glGetActiveUniformBlockName(int program, int uniformBlockIndex, java.nio.IntBuffer length, java.nio.ByteBuffer uniformBlockName)
static java.lang.String
glGetActiveUniformName(int program, int uniformIndex)
static java.lang.String
glGetActiveUniformName(int program, int uniformIndex, int bufSize)
static void
glGetActiveUniformName(int program, int uniformIndex, int[] length, java.nio.ByteBuffer uniformName)
static void
glGetActiveUniformName(int program, int uniformIndex, java.nio.IntBuffer length, java.nio.ByteBuffer uniformName)
static int
glGetActiveUniformsi(int program, int uniformIndex, int pname)
static void
glGetActiveUniformsiv(int program, int[] uniformIndices, int pname, int[] params)
static void
glGetActiveUniformsiv(int program, java.nio.IntBuffer uniformIndices, int pname, java.nio.IntBuffer params)
static int
glGetUniformBlockIndex(int program, java.nio.ByteBuffer uniformBlockName)
static int
glGetUniformBlockIndex(int program, java.lang.CharSequence uniformBlockName)
static int
glGetUniformIndices(int program, java.lang.CharSequence uniformName)
static void
glGetUniformIndices(int program, java.lang.CharSequence[] uniformNames, java.nio.IntBuffer uniformIndices)
static void
glGetUniformIndices(int program, org.lwjgl.PointerBuffer uniformNames, int[] uniformIndices)
static void
glGetUniformIndices(int program, org.lwjgl.PointerBuffer uniformNames, java.nio.IntBuffer uniformIndices)
static void
glPrimitiveRestartIndex(int index)
static void
glTexBuffer(int target, int internalformat, int buffer)
static void
glUniformBlockBinding(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 theinternalFormat
parameter 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 thetype
parameter 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 thecap
parameter of Enable, Disable and IsEnabled.
-
GL_PRIMITIVE_RESTART_INDEX
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_TEXTURE_BUFFER
Accepted by thetarget
parameter of BindBuffer, BufferData, BufferSubData, MapBuffer, MapBufferRange, BindTexture, UnmapBuffer, GetBufferSubData, GetBufferParameteriv, GetBufferPointerv, and TexBuffer, and thepname
parameter of GetBooleanv, GetDoublev, GetFloatv, and GetIntegerv.
-
GL_MAX_TEXTURE_BUFFER_SIZE, GL_TEXTURE_BINDING_BUFFER, GL_TEXTURE_BUFFER_DATA_STORE_BINDING
Accepted by thepname
parameters of GetBooleanv, GetDoublev, GetFloatv, and GetIntegerv.
-
GL_TEXTURE_RECTANGLE
Accepted by thecap
parameter of Enable, Disable and IsEnabled; by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv and GetDoublev; and by thetarget
parameter of BindTexture, GetTexParameterfv, GetTexParameteriv, TexParameterf, TexParameteri, TexParameterfv and TexParameteriv.
-
GL_TEXTURE_BINDING_RECTANGLE
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv and GetDoublev.
-
GL_PROXY_TEXTURE_RECTANGLE
Accepted by thetarget
parameter of GetTexLevelParameteriv, GetTexLevelParameterfv, GetTexParameteriv and TexImage2D.
-
GL_MAX_RECTANGLE_TEXTURE_SIZE
Accepted by thepname
parameter of GetBooleanv, GetDoublev, GetIntegerv and GetFloatv.
-
GL_SAMPLER_2D_RECT
Returned bytype
parameter of GetActiveUniform when the locationindex
for program objectprogram
is of type sampler2DRect.
-
GL_SAMPLER_2D_RECT_SHADOW
Returned bytype
parameter of GetActiveUniform when the locationindex
for program objectprogram
is of type sampler2DRectShadow.
-
GL_UNIFORM_BUFFER
Accepted by thetarget
parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, and GetBufferPointerv.
-
GL_UNIFORM_BUFFER_BINDING
Accepted by thepname
parameter of GetIntegeri_v, GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_UNIFORM_BUFFER_START, GL_UNIFORM_BUFFER_SIZE
Accepted by thepname
parameter 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 thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH, GL_ACTIVE_UNIFORM_BLOCKS
Accepted by thepname
parameter 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 thepname
parameter 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 thepname
parameter 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: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
first
- 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: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
count
- the number of elements to be renderedtype
- the type of the values inindices
. One of:UNSIGNED_BYTE
UNSIGNED_SHORT
UNSIGNED_INT
indices
- 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: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 the values inindices
. One of:UNSIGNED_BYTE
UNSIGNED_SHORT
UNSIGNED_INT
indices
- 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: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
indices
- 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_VALUE
error 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_VALUE
error 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_OPERATION
error is generated if zero is bound to readtarget or writetarget.An
INVALID_OPERATION
error is generated if the buffer objects bound to either readtarget or writetarget are mapped.- Parameters:
readTarget
- the source buffer object target. One of:ARRAY_BUFFER
COPY_READ_BUFFER
COPY_WRITE_BUFFER
ELEMENT_ARRAY_BUFFER
PIXEL_PACK_BUFFER
PIXEL_UNPACK_BUFFER
TRANSFORM_FEEDBACK_BUFFER
TEXTURE_BUFFER
UNIFORM_BUFFER
writeTarget
- 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 namedbuffer
to the active buffer texture, and specifies an internal format for the texel array found in the attached buffer object. Ifbuffer
is zero, any buffer object attached to the buffer texture is detached, and no new buffer object is attached. Ifbuffer
is non-zero, but is not the name of an existing buffer object, the errorINVALID_OPERATION
is 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_size
is the size of the buffer object, in basic machine units andcomponents
andbase_type
are 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). Elementm
of the texel numberedn
is taken from elementn
*components
+m
of 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_BUFFER
internalformat
- the sized internal format of the data in the store belonging tobuffer
buffer
- 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 ofuniformCount
integers containing the indices of uniforms withinprogram
pname
- the property of the each uniform inuniformIndices
that should be written into the corresponding element ofparams
params
- an array ofuniformCount
integers which are to receive the value ofpname
for 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 inuniformIndices
that 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 indexuniformIndex
uniformIndex
- 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 byuniformName
uniformName
- the address of a buffer into which the GL will place the name of the active uniform atuniformIndex
withinprogram
-
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 indexuniformIndex
uniformIndex
- 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 indexuniformIndex
uniformIndex
- 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 withinprogram
pname
- 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 withinprogram
pname
- 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 withinprogram
length
- the address of a variable to receive the number of characters that were written touniformBlockName
uniformBlockName
- 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 withinprogram
bufSize
- 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 withinprogram
whose binding to assignuniformBlockBinding
- the binding point to which to bind the uniform block with indexuniformBlockIndex
withinprogram
-
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
-
-