Package org.lwjgl.opengl
Class GL32
- java.lang.Object
-
- org.lwjgl.opengl.GL32
-
public class GL32 extends java.lang.Object
The core OpenGL 3.2 functionality. OpenGL 3.2 implementations support revision 1.50 of the OpenGL Shading Language.Extensions promoted to core in this release:
-
-
Field Summary
Fields Modifier and Type Field and Description static int
GL_ALREADY_SIGNALED
GL_CONDITION_SATISFIEDReturned by ClientWaitSync.static int
GL_CONTEXT_COMPATIBILITY_PROFILE_BIT
GL_CONTEXT_CORE_PROFILE_BITContext profile bits.static int
GL_CONTEXT_PROFILE_MASK
Accepted by thepname
parameter of GetIntegerv.static int
GL_DEPTH_CLAMP
Accepted by thecap
parameter of Enable, Disable, and IsEnabled, and by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_FIRST_VERTEX_CONVENTION
Accepted by themode
parameter of ProvokingVertex.static int
GL_FRAMEBUFFER_ATTACHMENT_LAYERED
Accepted by thepname
parameter of GetFramebufferAttachment- Parameteriv.static int
GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS
Returned by CheckFramebufferStatus.static int
GL_GEOMETRY_INPUT_TYPE
GL_GEOMETRY_OUTPUT_TYPEAccepted by thepname
parameter of ProgramParameteri and GetProgramiv.static int
GL_GEOMETRY_SHADER
Accepted by thetype
parameter of CreateShader and returned by theparams
parameter of GetShaderiv.static int
GL_GEOMETRY_VERTICES_OUT
Accepted by thepname
parameter of ProgramParameteri and GetProgramiv.static int
GL_INT_SAMPLER_2D_MULTISAMPLE
GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAYReturned by thetype
parameter of GetActiveUniform.static int
GL_LAST_VERTEX_CONVENTION
Accepted by themode
parameter of ProvokingVertex.static int
GL_LINE_STRIP_ADJACENCY
GL_LINES_ADJACENCYAccepted by themode
parameter of Begin, DrawArrays, MultiDrawArrays, DrawElements, MultiDrawElements, and DrawRangeElements.static int
GL_MAX_COLOR_TEXTURE_SAMPLES
GL_MAX_DEPTH_TEXTURE_SAMPLESAccepted by thepname
parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static int
GL_MAX_FRAGMENT_INPUT_COMPONENTS
GL_MAX_GEOMETRY_INPUT_COMPONENTS
GL_MAX_GEOMETRY_OUTPUT_COMPONENTS
GL_MAX_GEOMETRY_OUTPUT_VERTICES
GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS
GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS
GL_MAX_GEOMETRY_UNIFORM_COMPONENTSAccepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_MAX_INTEGER_SAMPLES
GL_MAX_SAMPLE_MASK_WORDSAccepted by thepname
parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static int
GL_MAX_SERVER_WAIT_TIMEOUT
Accepted as thepname
parameter of GetInteger64v.static int
GL_MAX_VERTEX_OUTPUT_COMPONENTS
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_OBJECT_TYPE
Accepted as thepname
parameter of GetSynciv.static int
GL_PROGRAM_POINT_SIZE
Accepted by thecap
parameter of Enable, Disable, and IsEnabled, and by thepname
parameter of GetIntegerv, GetFloatv, GetDoublev, and GetBooleanv.static int
GL_PROVOKING_VERTEX
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_PROXY_TEXTURE_2D_MULTISAMPLE
Accepted by thetarget
parameter of TexImage2DMultisample.static int
GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY
Accepted by thetarget
parameter of TexImage3DMultisample.static int
GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_SAMPLE_MASK
Accepted by thecap
parameter of Enable, Disable, and IsEnabled, and by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static int
GL_SAMPLE_MASK_VALUE
Accepted by thetarget
parameter of GetBooleani_v and GetIntegeri_v.static int
GL_SAMPLE_POSITION
Accepted by thepname
parameter of GetMultisamplefv.static int
GL_SAMPLER_2D_MULTISAMPLE
GL_SAMPLER_2D_MULTISAMPLE_ARRAYReturned by thetype
parameter of GetActiveUniform.static int
GL_SIGNALED
Returned invalues
for GetSyncivpname
SYNC_STATUS.static int
GL_SYNC_CONDITION
Accepted as thepname
parameter of GetSynciv.static int
GL_SYNC_FENCE
Returned invalues
for GetSyncivpname
OBJECT_TYPE.static int
GL_SYNC_FLAGS
Accepted as thepname
parameter of GetSynciv.static int
GL_SYNC_FLUSH_COMMANDS_BIT
Accepted in theflags
parameter of ClientWaitSync.static int
GL_SYNC_GPU_COMMANDS_COMPLETE
Returned invalues
for GetSyncivpname
SYNC_CONDITION.static int
GL_SYNC_STATUS
Accepted as thepname
parameter of GetSynciv.static int
GL_TEXTURE_2D_MULTISAMPLE
Accepted by thetarget
parameter of BindTexture and TexImage2DMultisample.static int
GL_TEXTURE_2D_MULTISAMPLE_ARRAY
Accepted by thetarget
parameter of BindTexture and TexImage3DMultisample.static int
GL_TEXTURE_BINDING_2D_MULTISAMPLE
GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAYAccepted by thepname
parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static int
GL_TEXTURE_CUBE_MAP_SEAMLESS
Accepted by thecap
parameter of Enable, Disable and IsEnabled, and by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv and GetDoublev.static int
GL_TEXTURE_FIXED_SAMPLE_LOCATIONS
GL_TEXTURE_SAMPLESAccepted by thepname
parameter of GetTexLevelParameter.static int
GL_TIMEOUT_EXPIRED
Returned by ClientWaitSync.static long
GL_TIMEOUT_IGNORED
Accepted in thetimeout
parameter of WaitSync.static int
GL_TRIANGLE_STRIP_ADJACENCY
GL_TRIANGLES_ADJACENCYAccepted by themode
parameter of Begin, DrawArrays, MultiDrawArrays, DrawElements, MultiDrawElements, and DrawRangeElements.static int
GL_UNSIGNALED
Returned invalues
for GetSyncivpname
SYNC_STATUS.static int
GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE
GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAYReturned by thetype
parameter of GetActiveUniform.static int
GL_WAIT_FAILED
Returned by ClientWaitSync.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static int
glClientWaitSync(long sync, int flags, long timeout)
static void
glDeleteSync(long sync)
static void
glDrawElementsBaseVertex(int mode, java.nio.ByteBuffer indices, int basevertex)
static void
glDrawElementsBaseVertex(int mode, java.nio.IntBuffer indices, int basevertex)
static void
glDrawElementsBaseVertex(int mode, int type, java.nio.ByteBuffer indices, int basevertex)
static void
glDrawElementsBaseVertex(int mode, int count, int type, long indices, int basevertex)
static void
glDrawElementsBaseVertex(int mode, java.nio.ShortBuffer indices, int basevertex)
static void
glDrawElementsInstancedBaseVertex(int mode, java.nio.ByteBuffer indices, int primcount, int basevertex)
static void
glDrawElementsInstancedBaseVertex(int mode, java.nio.IntBuffer indices, int primcount, int basevertex)
static void
glDrawElementsInstancedBaseVertex(int mode, int type, java.nio.ByteBuffer indices, int primcount, int basevertex)
static void
glDrawElementsInstancedBaseVertex(int mode, int count, int type, long indices, int primcount, int basevertex)
static void
glDrawElementsInstancedBaseVertex(int mode, java.nio.ShortBuffer indices, int primcount, int basevertex)
static void
glDrawRangeElementsBaseVertex(int mode, int start, int end, java.nio.ByteBuffer indices, int basevertex)
static void
glDrawRangeElementsBaseVertex(int mode, int start, int end, java.nio.IntBuffer indices, int basevertex)
static void
glDrawRangeElementsBaseVertex(int mode, int start, int end, int type, java.nio.ByteBuffer indices, int basevertex)
static void
glDrawRangeElementsBaseVertex(int mode, int start, int end, int count, int type, long indices, int basevertex)
static void
glDrawRangeElementsBaseVertex(int mode, int start, int end, java.nio.ShortBuffer indices, int basevertex)
static long
glFenceSync(int condition, int flags)
static void
glFramebufferTexture(int target, int attachment, int texture, int level)
static long
glGetBufferParameteri64(int target, int pname)
static void
glGetBufferParameteri64v(int target, int pname, long[] params)
static void
glGetBufferParameteri64v(int target, int pname, java.nio.LongBuffer params)
static long
glGetInteger64(int pname)
static void
glGetInteger64i_v(int pname, int index, long[] params)
static void
glGetInteger64i_v(int pname, int index, java.nio.LongBuffer params)
static long
glGetInteger64i(int pname, int index)
static void
glGetInteger64v(int pname, long[] params)
static void
glGetInteger64v(int pname, java.nio.LongBuffer params)
static float
glGetMultisamplef(int pname, int index)
static void
glGetMultisamplefv(int pname, int index, float[] val)
static void
glGetMultisamplefv(int pname, int index, java.nio.FloatBuffer val)
static int
glGetSynci(long sync, int pname, java.nio.IntBuffer length)
static void
glGetSynciv(long sync, int pname, int[] length, int[] values)
static void
glGetSynciv(long sync, int pname, java.nio.IntBuffer length, java.nio.IntBuffer values)
static boolean
glIsSync(long sync)
static void
glMultiDrawElementsBaseVertex(int mode, int[] count, int type, org.lwjgl.PointerBuffer indices, int[] basevertex)
static void
glMultiDrawElementsBaseVertex(int mode, java.nio.IntBuffer count, int type, org.lwjgl.PointerBuffer indices, java.nio.IntBuffer basevertex)
static void
glProvokingVertex(int mode)
static void
glSampleMaski(int index, int mask)
static void
glTexImage2DMultisample(int target, int samples, int internalformat, int width, int height, boolean fixedsamplelocations)
static void
glTexImage3DMultisample(int target, int samples, int internalformat, int width, int height, int depth, boolean fixedsamplelocations)
static void
glWaitSync(long sync, int flags, long timeout)
-
-
-
Field Detail
-
GL_CONTEXT_PROFILE_MASK
Accepted by thepname
parameter of GetIntegerv.
-
GL_CONTEXT_CORE_PROFILE_BIT, GL_CONTEXT_COMPATIBILITY_PROFILE_BIT
Context profile bits.
-
GL_MAX_VERTEX_OUTPUT_COMPONENTS, GL_MAX_GEOMETRY_INPUT_COMPONENTS, GL_MAX_GEOMETRY_OUTPUT_COMPONENTS, GL_MAX_FRAGMENT_INPUT_COMPONENTS
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_FIRST_VERTEX_CONVENTION, GL_LAST_VERTEX_CONVENTION
Accepted by themode
parameter of ProvokingVertex.
-
GL_PROVOKING_VERTEX, GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_TEXTURE_CUBE_MAP_SEAMLESS
Accepted by thecap
parameter of Enable, Disable and IsEnabled, and by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv and GetDoublev.
-
GL_SAMPLE_POSITION
Accepted by thepname
parameter of GetMultisamplefv.
-
GL_SAMPLE_MASK
Accepted by thecap
parameter of Enable, Disable, and IsEnabled, and by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_SAMPLE_MASK_VALUE
Accepted by thetarget
parameter of GetBooleani_v and GetIntegeri_v.
-
GL_TEXTURE_2D_MULTISAMPLE
Accepted by thetarget
parameter of BindTexture and TexImage2DMultisample.
-
GL_PROXY_TEXTURE_2D_MULTISAMPLE
Accepted by thetarget
parameter of TexImage2DMultisample.
-
GL_TEXTURE_2D_MULTISAMPLE_ARRAY
Accepted by thetarget
parameter of BindTexture and TexImage3DMultisample.
-
GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY
Accepted by thetarget
parameter of TexImage3DMultisample.
-
GL_MAX_SAMPLE_MASK_WORDS, GL_MAX_COLOR_TEXTURE_SAMPLES, GL_MAX_DEPTH_TEXTURE_SAMPLES, GL_MAX_INTEGER_SAMPLES, GL_TEXTURE_BINDING_2D_MULTISAMPLE, GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY
Accepted by thepname
parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.
-
GL_TEXTURE_SAMPLES, GL_TEXTURE_FIXED_SAMPLE_LOCATIONS
Accepted by thepname
parameter of GetTexLevelParameter.
-
GL_SAMPLER_2D_MULTISAMPLE, GL_INT_SAMPLER_2D_MULTISAMPLE, GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE, GL_SAMPLER_2D_MULTISAMPLE_ARRAY, GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY, GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY
Returned by thetype
parameter of GetActiveUniform.
-
GL_DEPTH_CLAMP
Accepted by thecap
parameter of Enable, Disable, and IsEnabled, and by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_GEOMETRY_SHADER
Accepted by thetype
parameter of CreateShader and returned by theparams
parameter of GetShaderiv.
-
GL_GEOMETRY_VERTICES_OUT, GL_GEOMETRY_INPUT_TYPE, GL_GEOMETRY_OUTPUT_TYPE
Accepted by thepname
parameter of ProgramParameteri and GetProgramiv.
-
GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS, GL_MAX_GEOMETRY_UNIFORM_COMPONENTS, GL_MAX_GEOMETRY_OUTPUT_VERTICES, GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_LINES_ADJACENCY, GL_LINE_STRIP_ADJACENCY, GL_TRIANGLES_ADJACENCY, GL_TRIANGLE_STRIP_ADJACENCY
Accepted by themode
parameter of Begin, DrawArrays, MultiDrawArrays, DrawElements, MultiDrawElements, and DrawRangeElements.
-
GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS
Returned by CheckFramebufferStatus.
-
GL_FRAMEBUFFER_ATTACHMENT_LAYERED
Accepted by thepname
parameter of GetFramebufferAttachment- Parameteriv.
-
GL_PROGRAM_POINT_SIZE
Accepted by thecap
parameter of Enable, Disable, and IsEnabled, and by thepname
parameter of GetIntegerv, GetFloatv, GetDoublev, and GetBooleanv.
-
GL_MAX_SERVER_WAIT_TIMEOUT
Accepted as thepname
parameter of GetInteger64v.
-
GL_OBJECT_TYPE, GL_SYNC_CONDITION, GL_SYNC_STATUS, GL_SYNC_FLAGS
Accepted as thepname
parameter of GetSynciv.
-
GL_SYNC_FENCE
Returned invalues
for GetSyncivpname
OBJECT_TYPE.
-
GL_SYNC_GPU_COMMANDS_COMPLETE
Returned invalues
for GetSyncivpname
SYNC_CONDITION.
-
GL_UNSIGNALED, GL_SIGNALED
Returned invalues
for GetSyncivpname
SYNC_STATUS.
-
GL_SYNC_FLUSH_COMMANDS_BIT
Accepted in theflags
parameter of ClientWaitSync.
-
GL_TIMEOUT_IGNORED
Accepted in thetimeout
parameter of WaitSync.
-
GL_ALREADY_SIGNALED, GL_TIMEOUT_EXPIRED, GL_CONDITION_SATISFIED, GL_WAIT_FAILED
Returned by ClientWaitSync.
-
-
Method Detail
-
glGetBufferParameteri64v
public static void glGetBufferParameteri64v(int target, int pname, java.nio.LongBuffer params)
Returns the value of a buffer object parameter.- Parameters:
target
- the target buffer object. One of:pname
- the symbolic name of a buffer object parameter. One of:BUFFER_SIZE
BUFFER_USAGE
BUFFER_ACCESS
BUFFER_MAPPED
BUFFER_ACCESS_FLAGS
BUFFER_MAP_LENGTH
BUFFER_MAP_OFFSET
BUFFER_IMMUTABLE_STORAGE
BUFFER_STORAGE_FLAGS
params
- the requested parameter
-
glGetBufferParameteri64
public static long glGetBufferParameteri64(int target, int pname)
Returns the value of a buffer object parameter.- Parameters:
target
- the target buffer object. One of:pname
- the symbolic name of a buffer object parameter. One of:BUFFER_SIZE
BUFFER_USAGE
BUFFER_ACCESS
BUFFER_MAPPED
BUFFER_ACCESS_FLAGS
BUFFER_MAP_LENGTH
BUFFER_MAP_OFFSET
BUFFER_IMMUTABLE_STORAGE
BUFFER_STORAGE_FLAGS
-
glDrawElementsBaseVertex
public static void glDrawElementsBaseVertex(int mode, int count, int type, long indices, int basevertex)
Renders primitives from array data with a per-element offset.- 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
- a pointer to the location where the indices are storedbasevertex
- a constant that should be added to each element ofindices
when choosing elements from the enabled vertex arrays
-
glDrawElementsBaseVertex
public static void glDrawElementsBaseVertex(int mode, int type, java.nio.ByteBuffer indices, int basevertex)
Renders primitives from array data with a per-element offset.- 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
- a pointer to the location where the indices are storedbasevertex
- a constant that should be added to each element ofindices
when choosing elements from the enabled vertex arrays
-
glDrawElementsBaseVertex
public static void glDrawElementsBaseVertex(int mode, java.nio.ByteBuffer indices, int basevertex) public static void glDrawElementsBaseVertex(int mode, java.nio.ShortBuffer indices, int basevertex) public static void glDrawElementsBaseVertex(int mode, java.nio.IntBuffer indices, int basevertex)
Renders primitives from array data with a per-element offset.- 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
- a pointer to the location where the indices are storedbasevertex
- a constant that should be added to each element ofindices
when choosing elements from the enabled vertex arrays
-
glDrawRangeElementsBaseVertex
public static void glDrawRangeElementsBaseVertex(int mode, int start, int end, int count, int type, long indices, int basevertex)
Renders primitives from array data with a per-element offset.- 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
start
- the minimum array index contained inindices
end
- the maximum array index contained inindices
count
- the number of elements to be renderedtype
- the type of the values inindices
. One of:UNSIGNED_BYTE
UNSIGNED_SHORT
UNSIGNED_INT
indices
- a pointer to the location where the indices are storedbasevertex
- a constant that should be added to each element ofindices
when choosing elements from the enabled vertex arrays
-
glDrawRangeElementsBaseVertex
public static void glDrawRangeElementsBaseVertex(int mode, int start, int end, int type, java.nio.ByteBuffer indices, int basevertex)
Renders primitives from array data with a per-element offset.- 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
start
- the minimum array index contained inindices
end
- the maximum array index contained inindices
type
- the type of the values inindices
. One of:UNSIGNED_BYTE
UNSIGNED_SHORT
UNSIGNED_INT
indices
- a pointer to the location where the indices are storedbasevertex
- a constant that should be added to each element ofindices
when choosing elements from the enabled vertex arrays
-
glDrawRangeElementsBaseVertex
public static void glDrawRangeElementsBaseVertex(int mode, int start, int end, java.nio.ByteBuffer indices, int basevertex) public static void glDrawRangeElementsBaseVertex(int mode, int start, int end, java.nio.ShortBuffer indices, int basevertex) public static void glDrawRangeElementsBaseVertex(int mode, int start, int end, java.nio.IntBuffer indices, int basevertex)
Renders primitives from array data with a per-element offset.- 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
start
- the minimum array index contained inindices
end
- the maximum array index contained inindices
indices
- a pointer to the location where the indices are storedbasevertex
- a constant that should be added to each element ofindices
when choosing elements from the enabled vertex arrays
-
glDrawElementsInstancedBaseVertex
public static void glDrawElementsInstancedBaseVertex(int mode, int count, int type, long indices, int primcount, int basevertex)
Renders multiple instances of a set of primitives from array data with a per-element offset.- 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
- a pointer to the location where the indices are storedprimcount
- the number of instances of the indexed geometry that should be drawnbasevertex
- a constant that should be added to each element of indices when chosing elements from the enabled vertex arrays
-
glDrawElementsInstancedBaseVertex
public static void glDrawElementsInstancedBaseVertex(int mode, int type, java.nio.ByteBuffer indices, int primcount, int basevertex)
Renders multiple instances of a set of primitives from array data with a per-element offset.- 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
- a pointer to the location where the indices are storedprimcount
- the number of instances of the indexed geometry that should be drawnbasevertex
- a constant that should be added to each element of indices when chosing elements from the enabled vertex arrays
-
glDrawElementsInstancedBaseVertex
public static void glDrawElementsInstancedBaseVertex(int mode, java.nio.ByteBuffer indices, int primcount, int basevertex) public static void glDrawElementsInstancedBaseVertex(int mode, java.nio.ShortBuffer indices, int primcount, int basevertex) public static void glDrawElementsInstancedBaseVertex(int mode, java.nio.IntBuffer indices, int primcount, int basevertex)
Renders multiple instances of a set of primitives from array data with a per-element offset.- 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
- a pointer to the location where the indices are storedprimcount
- the number of instances of the indexed geometry that should be drawnbasevertex
- a constant that should be added to each element of indices when chosing elements from the enabled vertex arrays
-
glMultiDrawElementsBaseVertex
public static void glMultiDrawElementsBaseVertex(int mode, java.nio.IntBuffer count, int type, org.lwjgl.PointerBuffer indices, java.nio.IntBuffer basevertex)
Renders multiple sets of primitives by specifying indices of array data elements and an offset to apply to each index.LWJGL note: Use
MemoryUtil.memAddress(java.nio.ByteBuffer)
to retrieve pointers to the index buffers.- 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
- an array of the elements countstype
- the type of the values inindices
. One of:UNSIGNED_BYTE
UNSIGNED_SHORT
UNSIGNED_INT
indices
- a pointer to the location where the indices are storedbasevertex
- a pointer to the location where the base vertices are stored
-
glProvokingVertex
public static void glProvokingVertex(int mode)
Specifies the vertex to be used as the source of data for flat shaded varyings.- Parameters:
mode
- the provoking vertex mode. One of:FIRST_VERTEX_CONVENTION
LAST_VERTEX_CONVENTION
-
glTexImage2DMultisample
public static void glTexImage2DMultisample(int target, int samples, int internalformat, int width, int height, boolean fixedsamplelocations)
Establishes the data storage, format, dimensions, and number of samples of a 2D multisample texture's image.- Parameters:
target
- the target of the operation. One of:TEXTURE_2D_MULTISAMPLE
PROXY_TEXTURE_2D_MULTISAMPLE
samples
- the number of samples in the multisample texture's imageinternalformat
- the internal format to be used to store the multisample texture's image.internalformat
must specify a color-renderable, depth-renderable, or stencil-renderable format.width
- the width of the multisample texture's image, in texelsheight
- the height of the multisample texture's image, in texelsfixedsamplelocations
- whether the image will use identical sample locations and the same number of samples for all texels in the image, and the sample locations will not depend on the internal format or size of the image
-
glTexImage3DMultisample
public static void glTexImage3DMultisample(int target, int samples, int internalformat, int width, int height, int depth, boolean fixedsamplelocations)
Establishes the data storage, format, dimensions, and number of samples of a 3D multisample texture's image.- Parameters:
target
- the target of the operation. One of:TEXTURE_2D_MULTISAMPLE_ARRAY
PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY
samples
- the number of samples in the multisample texture's imageinternalformat
- the internal format to be used to store the multisample texture's image.internalformat
must specify a color-renderable, depth-renderable, or stencil-renderable format.width
- the width of the multisample texture's image, in texelsheight
- the height of the multisample texture's image, in texelsdepth
- the depth of the multisample texture's image, in texelsfixedsamplelocations
- whether the image will use identical sample locations and the same number of samples for all texels in the image, and the sample locations will not depend on the internal format or size of the image
-
glGetMultisamplefv
public static void glGetMultisamplefv(int pname, int index, java.nio.FloatBuffer val)
Retrieves the location of a sample.- Parameters:
pname
- the sample parameter name. Must be:SAMPLE_POSITION
index
- the index of the sample whose position to queryval
- an array to receive the position of the sample
-
glGetMultisamplef
public static float glGetMultisamplef(int pname, int index)
Retrieves the location of a sample.- Parameters:
pname
- the sample parameter name. Must be:SAMPLE_POSITION
index
- the index of the sample whose position to query
-
glSampleMaski
public static void glSampleMaski(int index, int mask)
Sets the value of a sub-word of the sample mask.- Parameters:
index
- which 32-bit sub-word of the sample mask to updatemask
- the new value of the mask sub-word
-
glFramebufferTexture
public static void glFramebufferTexture(int target, int attachment, int texture, int level)
Attaches a level of a texture object as a logical buffer to the currently bound framebuffer object.- Parameters:
target
- the framebuffer target. One of:FRAMEBUFFER
READ_FRAMEBUFFER
DRAW_FRAMEBUFFER
attachment
- the attachment point of the framebuffertexture
- the texture object to attach to the framebuffer attachment point named byattachment
level
- the mipmap level oftexture
to attach
-
glFenceSync
public static long glFenceSync(int condition, int flags)
Creates a new sync object and inserts it into the GL command stream.- Parameters:
condition
- the condition that must be met to set the sync object's state to signaled. Must be:SYNC_GPU_COMMANDS_COMPLETE
flags
- a bitwise combination of flags controlling the behavior of the sync object. No flags are presently defined for this operation andflags
must be zero.
-
glIsSync
public static boolean glIsSync(long sync)
Determines if a name corresponds to a sync object.- Parameters:
sync
- a value that may be the name of a sync object
-
glDeleteSync
public static void glDeleteSync(long sync)
Deletes a sync object.- Parameters:
sync
- the sync object to be deleted
-
glClientWaitSync
public static int glClientWaitSync(long sync, int flags, long timeout)
Causes the client to block and wait for a sync object to become signaled. Ifsync
is signaled whenglClientWaitSync
is called,glClientWaitSync
returns immediately, otherwise it will block and wait for up to timeout nanoseconds forsync
to become signaled.The return value is one of four status values:
ALREADY_SIGNALED
indicates that sync was signaled at the time that glClientWaitSync was called.TIMEOUT_EXPIRED
indicates that at least timeout nanoseconds passed and sync did not become signaled.CONDITION_SATISFIED
indicates that sync was signaled before the timeout expired.WAIT_FAILED
indicates that an error occurred. Additionally, an OpenGL error will be generated.
- Parameters:
sync
- the sync object whose status to wait onflags
- a bitfield controlling the command flushing behavior. One or more of:0 SYNC_FLUSH_COMMANDS_BIT
timeout
- the timeout, specified in nanoseconds, for which the implementation should wait forsync
to become signaled
-
glWaitSync
public static void glWaitSync(long sync, int flags, long timeout)
Causes the GL server to block and wait for a sync object to become signaled.glWaitSync
will always wait no longer than an implementation-dependent timeout. The duration of this timeout in nanoseconds may be queried by withMAX_SERVER_WAIT_TIMEOUT
. There is currently no way to determine whether glWaitSync unblocked because the timeout expired or because the sync object being waited on was signaled.If an error occurs,
glWaitSync
does not cause the GL server to block.- Parameters:
sync
- the sync object whose status to wait onflags
- a bitfield controlling the command flushing behavior. Must be:0 timeout
- the timeout that the server should wait before continuing. Must be:TIMEOUT_IGNORED
-
glGetInteger64v
public static void glGetInteger64v(int pname, java.nio.LongBuffer params)
Returns the 64bit integer value or values of a selected parameter.- Parameters:
pname
- the parameter value to be returnedparams
- the value or values of the specified parameter
-
glGetInteger64
public static long glGetInteger64(int pname)
Returns the 64bit integer value or values of a selected parameter.- Parameters:
pname
- the parameter value to be returned
-
glGetInteger64i_v
public static void glGetInteger64i_v(int pname, int index, java.nio.LongBuffer params)
Queries the 64bit integer value of an indexed state variable.- Parameters:
pname
- the indexed state to queryindex
- the index of the element being queriedparams
- the value or values of the specified parameter
-
glGetInteger64i
public static long glGetInteger64i(int pname, int index)
Queries the 64bit integer value of an indexed state variable.- Parameters:
pname
- the indexed state to queryindex
- the index of the element being queried
-
glGetSynciv
public static void glGetSynciv(long sync, int pname, java.nio.IntBuffer length, java.nio.IntBuffer values)
Queries the properties of a sync object.- Parameters:
sync
- the sync object whose properties to querypname
- the parameter whose value to retrieve from the sync object specified insync
. One of:OBJECT_TYPE
SYNC_CONDITION
SYNC_STATUS
SYNC_FLAGS
length
- the address of an variable to receive the number of integers placed invalues
values
- the address of an array to receive the values of the queried parameter
-
glGetSynci
public static int glGetSynci(long sync, int pname, java.nio.IntBuffer length)
Queries the properties of a sync object.- Parameters:
sync
- the sync object whose properties to querypname
- the parameter whose value to retrieve from the sync object specified insync
. One of:OBJECT_TYPE
SYNC_CONDITION
SYNC_STATUS
SYNC_FLAGS
length
- the address of an variable to receive the number of integers placed invalues
-
glGetBufferParameteri64v
public static void glGetBufferParameteri64v(int target, int pname, long[] params)
Array version of:GetBufferParameteri64v
-
glMultiDrawElementsBaseVertex
public static void glMultiDrawElementsBaseVertex(int mode, int[] count, int type, org.lwjgl.PointerBuffer indices, int[] basevertex)
Array version of:MultiDrawElementsBaseVertex
-
glGetMultisamplefv
public static void glGetMultisamplefv(int pname, int index, float[] val)
Array version of:GetMultisamplefv
-
glGetInteger64v
public static void glGetInteger64v(int pname, long[] params)
Array version of:GetInteger64v
-
glGetInteger64i_v
public static void glGetInteger64i_v(int pname, int index, long[] params)
Array version of:GetInteger64i_v
-
glGetSynciv
public static void glGetSynciv(long sync, int pname, int[] length, int[] values)
Array version of:GetSynciv
-
-