Package org.lwjgl.opengl
Class GL32
- java.lang.Object
-
- org.lwjgl.opengl.GL32
-
public class GL32 extends java.lang.ObjectThe 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 intGL_ALREADY_SIGNALED
GL_CONDITION_SATISFIEDReturned by ClientWaitSync.static intGL_CONTEXT_COMPATIBILITY_PROFILE_BIT
GL_CONTEXT_CORE_PROFILE_BITContext profile bits.static intGL_CONTEXT_PROFILE_MASKAccepted by thepnameparameter of GetIntegerv.static intGL_DEPTH_CLAMPAccepted by thecapparameter of Enable, Disable, and IsEnabled, and by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static intGL_FIRST_VERTEX_CONVENTIONAccepted by themodeparameter of ProvokingVertex.static intGL_FRAMEBUFFER_ATTACHMENT_LAYEREDAccepted by thepnameparameter of GetFramebufferAttachment- Parameteriv.static intGL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETSReturned by CheckFramebufferStatus.static intGL_GEOMETRY_INPUT_TYPE
GL_GEOMETRY_OUTPUT_TYPEAccepted by thepnameparameter of ProgramParameteri and GetProgramiv.static intGL_GEOMETRY_SHADERAccepted by thetypeparameter of CreateShader and returned by theparamsparameter of GetShaderiv.static intGL_GEOMETRY_VERTICES_OUTAccepted by thepnameparameter of ProgramParameteri and GetProgramiv.static intGL_INT_SAMPLER_2D_MULTISAMPLE
GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAYReturned by thetypeparameter of GetActiveUniform.static intGL_LAST_VERTEX_CONVENTIONAccepted by themodeparameter of ProvokingVertex.static intGL_LINE_STRIP_ADJACENCY
GL_LINES_ADJACENCYAccepted by themodeparameter of Begin, DrawArrays, MultiDrawArrays, DrawElements, MultiDrawElements, and DrawRangeElements.static intGL_MAX_COLOR_TEXTURE_SAMPLES
GL_MAX_DEPTH_TEXTURE_SAMPLESAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static intGL_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 thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static intGL_MAX_INTEGER_SAMPLES
GL_MAX_SAMPLE_MASK_WORDSAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static intGL_MAX_SERVER_WAIT_TIMEOUTAccepted as thepnameparameter of GetInteger64v.static intGL_MAX_VERTEX_OUTPUT_COMPONENTSAccepted by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static intGL_OBJECT_TYPEAccepted as thepnameparameter of GetSynciv.static intGL_PROGRAM_POINT_SIZEAccepted by thecapparameter of Enable, Disable, and IsEnabled, and by thepnameparameter of GetIntegerv, GetFloatv, GetDoublev, and GetBooleanv.static intGL_PROVOKING_VERTEXAccepted by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static intGL_PROXY_TEXTURE_2D_MULTISAMPLEAccepted by thetargetparameter of TexImage2DMultisample.static intGL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAYAccepted by thetargetparameter of TexImage3DMultisample.static intGL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTIONAccepted by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static intGL_SAMPLE_MASKAccepted by thecapparameter of Enable, Disable, and IsEnabled, and by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static intGL_SAMPLE_MASK_VALUEAccepted by thetargetparameter of GetBooleani_v and GetIntegeri_v.static intGL_SAMPLE_POSITIONAccepted by thepnameparameter of GetMultisamplefv.static intGL_SAMPLER_2D_MULTISAMPLE
GL_SAMPLER_2D_MULTISAMPLE_ARRAYReturned by thetypeparameter of GetActiveUniform.static intGL_SIGNALEDReturned invaluesfor GetSyncivpnameSYNC_STATUS.static intGL_SYNC_CONDITIONAccepted as thepnameparameter of GetSynciv.static intGL_SYNC_FENCEReturned invaluesfor GetSyncivpnameOBJECT_TYPE.static intGL_SYNC_FLAGSAccepted as thepnameparameter of GetSynciv.static intGL_SYNC_FLUSH_COMMANDS_BITAccepted in theflagsparameter of ClientWaitSync.static intGL_SYNC_GPU_COMMANDS_COMPLETEReturned invaluesfor GetSyncivpnameSYNC_CONDITION.static intGL_SYNC_STATUSAccepted as thepnameparameter of GetSynciv.static intGL_TEXTURE_2D_MULTISAMPLEAccepted by thetargetparameter of BindTexture and TexImage2DMultisample.static intGL_TEXTURE_2D_MULTISAMPLE_ARRAYAccepted by thetargetparameter of BindTexture and TexImage3DMultisample.static intGL_TEXTURE_BINDING_2D_MULTISAMPLE
GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAYAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static intGL_TEXTURE_CUBE_MAP_SEAMLESSAccepted by thecapparameter of Enable, Disable and IsEnabled, and by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv and GetDoublev.static intGL_TEXTURE_FIXED_SAMPLE_LOCATIONS
GL_TEXTURE_SAMPLESAccepted by thepnameparameter of GetTexLevelParameter.static intGL_TIMEOUT_EXPIREDReturned by ClientWaitSync.static longGL_TIMEOUT_IGNOREDAccepted in thetimeoutparameter of WaitSync.static intGL_TRIANGLE_STRIP_ADJACENCY
GL_TRIANGLES_ADJACENCYAccepted by themodeparameter of Begin, DrawArrays, MultiDrawArrays, DrawElements, MultiDrawElements, and DrawRangeElements.static intGL_UNSIGNALEDReturned invaluesfor GetSyncivpnameSYNC_STATUS.static intGL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE
GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAYReturned by thetypeparameter of GetActiveUniform.static intGL_WAIT_FAILEDReturned by ClientWaitSync.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static intglClientWaitSync(long sync, int flags, long timeout)static voidglDeleteSync(long sync)static voidglDrawElementsBaseVertex(int mode, java.nio.ByteBuffer indices, int basevertex)static voidglDrawElementsBaseVertex(int mode, java.nio.IntBuffer indices, int basevertex)static voidglDrawElementsBaseVertex(int mode, int type, java.nio.ByteBuffer indices, int basevertex)static voidglDrawElementsBaseVertex(int mode, int count, int type, long indices, int basevertex)static voidglDrawElementsBaseVertex(int mode, java.nio.ShortBuffer indices, int basevertex)static voidglDrawElementsInstancedBaseVertex(int mode, java.nio.ByteBuffer indices, int primcount, int basevertex)static voidglDrawElementsInstancedBaseVertex(int mode, java.nio.IntBuffer indices, int primcount, int basevertex)static voidglDrawElementsInstancedBaseVertex(int mode, int type, java.nio.ByteBuffer indices, int primcount, int basevertex)static voidglDrawElementsInstancedBaseVertex(int mode, int count, int type, long indices, int primcount, int basevertex)static voidglDrawElementsInstancedBaseVertex(int mode, java.nio.ShortBuffer indices, int primcount, int basevertex)static voidglDrawRangeElementsBaseVertex(int mode, int start, int end, java.nio.ByteBuffer indices, int basevertex)static voidglDrawRangeElementsBaseVertex(int mode, int start, int end, java.nio.IntBuffer indices, int basevertex)static voidglDrawRangeElementsBaseVertex(int mode, int start, int end, int type, java.nio.ByteBuffer indices, int basevertex)static voidglDrawRangeElementsBaseVertex(int mode, int start, int end, int count, int type, long indices, int basevertex)static voidglDrawRangeElementsBaseVertex(int mode, int start, int end, java.nio.ShortBuffer indices, int basevertex)static longglFenceSync(int condition, int flags)static voidglFramebufferTexture(int target, int attachment, int texture, int level)static longglGetBufferParameteri64(int target, int pname)static voidglGetBufferParameteri64v(int target, int pname, long[] params)static voidglGetBufferParameteri64v(int target, int pname, java.nio.LongBuffer params)static longglGetInteger64(int pname)static voidglGetInteger64i_v(int pname, int index, long[] params)static voidglGetInteger64i_v(int pname, int index, java.nio.LongBuffer params)static longglGetInteger64i(int pname, int index)static voidglGetInteger64v(int pname, long[] params)static voidglGetInteger64v(int pname, java.nio.LongBuffer params)static floatglGetMultisamplef(int pname, int index)static voidglGetMultisamplefv(int pname, int index, float[] val)static voidglGetMultisamplefv(int pname, int index, java.nio.FloatBuffer val)static intglGetSynci(long sync, int pname, java.nio.IntBuffer length)static voidglGetSynciv(long sync, int pname, int[] length, int[] values)static voidglGetSynciv(long sync, int pname, java.nio.IntBuffer length, java.nio.IntBuffer values)static booleanglIsSync(long sync)static voidglMultiDrawElementsBaseVertex(int mode, int[] count, int type, org.lwjgl.PointerBuffer indices, int[] basevertex)static voidglMultiDrawElementsBaseVertex(int mode, java.nio.IntBuffer count, int type, org.lwjgl.PointerBuffer indices, java.nio.IntBuffer basevertex)static voidglProvokingVertex(int mode)static voidglSampleMaski(int index, int mask)static voidglTexImage2DMultisample(int target, int samples, int internalformat, int width, int height, boolean fixedsamplelocations)static voidglTexImage3DMultisample(int target, int samples, int internalformat, int width, int height, int depth, boolean fixedsamplelocations)static voidglWaitSync(long sync, int flags, long timeout)
-
-
-
Field Detail
-
GL_CONTEXT_PROFILE_MASK
Accepted by thepnameparameter 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 thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_FIRST_VERTEX_CONVENTION, GL_LAST_VERTEX_CONVENTION
Accepted by themodeparameter of ProvokingVertex.
-
GL_PROVOKING_VERTEX, GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION
Accepted by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_TEXTURE_CUBE_MAP_SEAMLESS
Accepted by thecapparameter of Enable, Disable and IsEnabled, and by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv and GetDoublev.
-
GL_SAMPLE_POSITION
Accepted by thepnameparameter of GetMultisamplefv.
-
GL_SAMPLE_MASK
Accepted by thecapparameter of Enable, Disable, and IsEnabled, and by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_SAMPLE_MASK_VALUE
Accepted by thetargetparameter of GetBooleani_v and GetIntegeri_v.
-
GL_TEXTURE_2D_MULTISAMPLE
Accepted by thetargetparameter of BindTexture and TexImage2DMultisample.
-
GL_PROXY_TEXTURE_2D_MULTISAMPLE
Accepted by thetargetparameter of TexImage2DMultisample.
-
GL_TEXTURE_2D_MULTISAMPLE_ARRAY
Accepted by thetargetparameter of BindTexture and TexImage3DMultisample.
-
GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY
Accepted by thetargetparameter 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 thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.
-
GL_TEXTURE_SAMPLES, GL_TEXTURE_FIXED_SAMPLE_LOCATIONS
Accepted by thepnameparameter 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 thetypeparameter of GetActiveUniform.
-
GL_DEPTH_CLAMP
Accepted by thecapparameter of Enable, Disable, and IsEnabled, and by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_GEOMETRY_SHADER
Accepted by thetypeparameter of CreateShader and returned by theparamsparameter of GetShaderiv.
-
GL_GEOMETRY_VERTICES_OUT, GL_GEOMETRY_INPUT_TYPE, GL_GEOMETRY_OUTPUT_TYPE
Accepted by thepnameparameter 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 thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_LINES_ADJACENCY, GL_LINE_STRIP_ADJACENCY, GL_TRIANGLES_ADJACENCY, GL_TRIANGLE_STRIP_ADJACENCY
Accepted by themodeparameter of Begin, DrawArrays, MultiDrawArrays, DrawElements, MultiDrawElements, and DrawRangeElements.
-
GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS
Returned by CheckFramebufferStatus.
-
GL_FRAMEBUFFER_ATTACHMENT_LAYERED
Accepted by thepnameparameter of GetFramebufferAttachment- Parameteriv.
-
GL_PROGRAM_POINT_SIZE
Accepted by thecapparameter of Enable, Disable, and IsEnabled, and by thepnameparameter of GetIntegerv, GetFloatv, GetDoublev, and GetBooleanv.
-
GL_MAX_SERVER_WAIT_TIMEOUT
Accepted as thepnameparameter of GetInteger64v.
-
GL_OBJECT_TYPE, GL_SYNC_CONDITION, GL_SYNC_STATUS, GL_SYNC_FLAGS
Accepted as thepnameparameter of GetSynciv.
-
GL_SYNC_FENCE
Returned invaluesfor GetSyncivpnameOBJECT_TYPE.
-
GL_SYNC_GPU_COMMANDS_COMPLETE
Returned invaluesfor GetSyncivpnameSYNC_CONDITION.
-
GL_UNSIGNALED, GL_SIGNALED
Returned invaluesfor GetSyncivpnameSYNC_STATUS.
-
GL_SYNC_FLUSH_COMMANDS_BIT
Accepted in theflagsparameter of ClientWaitSync.
-
GL_TIMEOUT_IGNORED
Accepted in thetimeoutparameter 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_SIZEBUFFER_USAGEBUFFER_ACCESSBUFFER_MAPPEDBUFFER_ACCESS_FLAGSBUFFER_MAP_LENGTHBUFFER_MAP_OFFSETBUFFER_IMMUTABLE_STORAGEBUFFER_STORAGE_FLAGSparams- 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_SIZEBUFFER_USAGEBUFFER_ACCESSBUFFER_MAPPEDBUFFER_ACCESS_FLAGSBUFFER_MAP_LENGTHBUFFER_MAP_OFFSETBUFFER_IMMUTABLE_STORAGEBUFFER_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: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- a pointer to the location where the indices are storedbasevertex- a constant that should be added to each element ofindiceswhen 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:POINTSLINE_STRIPLINE_LOOPLINESPOLYGONTRIANGLE_STRIPTRIANGLE_FANTRIANGLESQUAD_STRIPQUADSLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHEStype- the type of the values inindices. One of:UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INTindices- a pointer to the location where the indices are storedbasevertex- a constant that should be added to each element ofindiceswhen 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:POINTSLINE_STRIPLINE_LOOPLINESPOLYGONTRIANGLE_STRIPTRIANGLE_FANTRIANGLESQUAD_STRIPQUADSLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESindices- a pointer to the location where the indices are storedbasevertex- a constant that should be added to each element ofindiceswhen 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:POINTSLINE_STRIPLINE_LOOPLINESPOLYGONTRIANGLE_STRIPTRIANGLE_FANTRIANGLESQUAD_STRIPQUADSLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESstart- the minimum array index contained inindicesend- the maximum array index contained inindicescount- the number of elements to be renderedtype- the type of the values inindices. One of:UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INTindices- a pointer to the location where the indices are storedbasevertex- a constant that should be added to each element ofindiceswhen 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:POINTSLINE_STRIPLINE_LOOPLINESPOLYGONTRIANGLE_STRIPTRIANGLE_FANTRIANGLESQUAD_STRIPQUADSLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESstart- the minimum array index contained inindicesend- the maximum array index contained inindicestype- the type of the values inindices. One of:UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INTindices- a pointer to the location where the indices are storedbasevertex- a constant that should be added to each element ofindiceswhen 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:POINTSLINE_STRIPLINE_LOOPLINESPOLYGONTRIANGLE_STRIPTRIANGLE_FANTRIANGLESQUAD_STRIPQUADSLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESstart- the minimum array index contained inindicesend- the maximum array index contained inindicesindices- a pointer to the location where the indices are storedbasevertex- a constant that should be added to each element ofindiceswhen 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: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- 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:POINTSLINE_STRIPLINE_LOOPLINESPOLYGONTRIANGLE_STRIPTRIANGLE_FANTRIANGLESQUAD_STRIPQUADSLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHEStype- the type of the values inindices. One of:UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INTindices- 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:POINTSLINE_STRIPLINE_LOOPLINESPOLYGONTRIANGLE_STRIPTRIANGLE_FANTRIANGLESQUAD_STRIPQUADSLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESindices- 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:POINTSLINE_STRIPLINE_LOOPLINESPOLYGONTRIANGLE_STRIPTRIANGLE_FANTRIANGLESQUAD_STRIPQUADSLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHEScount- an array of the elements countstype- the type of the values inindices. One of:UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INTindices- 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_CONVENTIONLAST_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_MULTISAMPLEPROXY_TEXTURE_2D_MULTISAMPLEsamples- the number of samples in the multisample texture's imageinternalformat- the internal format to be used to store the multisample texture's image.internalformatmust 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_ARRAYPROXY_TEXTURE_2D_MULTISAMPLE_ARRAYsamples- the number of samples in the multisample texture's imageinternalformat- the internal format to be used to store the multisample texture's image.internalformatmust 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_POSITIONindex- 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_POSITIONindex- 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:FRAMEBUFFERREAD_FRAMEBUFFERDRAW_FRAMEBUFFERattachment- the attachment point of the framebuffertexture- the texture object to attach to the framebuffer attachment point named byattachmentlevel- the mipmap level oftextureto 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_COMPLETEflags- a bitwise combination of flags controlling the behavior of the sync object. No flags are presently defined for this operation andflagsmust 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. Ifsyncis signaled whenglClientWaitSyncis called,glClientWaitSyncreturns immediately, otherwise it will block and wait for up to timeout nanoseconds forsyncto become signaled.The return value is one of four status values:
ALREADY_SIGNALEDindicates that sync was signaled at the time that glClientWaitSync was called.TIMEOUT_EXPIREDindicates that at least timeout nanoseconds passed and sync did not become signaled.CONDITION_SATISFIEDindicates that sync was signaled before the timeout expired.WAIT_FAILEDindicates 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_BITtimeout- the timeout, specified in nanoseconds, for which the implementation should wait forsyncto 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.glWaitSyncwill 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,
glWaitSyncdoes 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_TYPESYNC_CONDITIONSYNC_STATUSSYNC_FLAGSlength- the address of an variable to receive the number of integers placed invaluesvalues- 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_TYPESYNC_CONDITIONSYNC_STATUSSYNC_FLAGSlength- 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
-
-