Class GL44
- java.lang.Object
-
- org.lwjgl.opengl.GL44
-
public class GL44 extends java.lang.ObjectThe core OpenGL 4.4 functionality. OpenGL 4.4 implementations support revision 4.40 of the OpenGL Shading Language.Extensions promoted to core in this release:
-
-
Field Summary
Fields Modifier and Type Field and Description static intGL_BUFFER_IMMUTABLE_STORAGE
GL_BUFFER_STORAGE_FLAGSAccepted by thepnameparameter ofGetBufferParameter{i|i64}v.static intGL_CLEAR_TEXTUREstatic intGL_CLIENT_MAPPED_BUFFER_BARRIER_BITAccepted by thebarriersparameter ofMemoryBarrier.static intGL_CLIENT_STORAGE_BIT
GL_DYNAMIC_STORAGE_BITstatic intGL_LOCATION_COMPONENTAccepted in thepropsarray ofGetProgramResourceiv.static intGL_MAP_COHERENT_BIT
GL_MAP_PERSISTENT_BITstatic intGL_MAX_VERTEX_ATTRIB_STRIDEImplementation-dependent state which constrains the maximum value of stride parameters to vertex array pointer-setting commands.static intGL_MIRROR_CLAMP_TO_EDGEAccepted by theparamparameter of TexParameter{if}, SamplerParameter{if} and SamplerParameter{if}v, and by theparamsparameter of TexParameter{if}v, TexParameterI{i ui}v and SamplerParameterI{i ui}v when theirpnameparameter isTEXTURE_WRAP_S,TEXTURE_WRAP_T, orTEXTURE_WRAP_R,static intGL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTEDImplementations are not required to support primitive restart for separate patch primitives (primitive type PATCHES).static intGL_QUERY_BUFFERAccepted by thetargetparameter ofBindBuffer,BufferData,BufferSubData,MapBuffer,UnmapBuffer,MapBufferRange,GetBufferSubData,GetBufferParameteriv,GetBufferParameteri64v,GetBufferPointerv,ClearBufferSubData, and thereadtargetandwritetargetparameters ofCopyBufferSubData.static intGL_QUERY_BUFFER_BARRIER_BITAccepted in thebarriersbitfield inMemoryBarrier.static intGL_QUERY_BUFFER_BINDINGstatic intGL_QUERY_RESULT_NO_WAITAccepted by thepnameparameter ofGetQueryObjectiv,GetQueryObjectuiv,GetQueryObjecti64vandGetQueryObjectui64v.static intGL_TEXTURE_BUFFER_BINDINGEquivalent toTEXTURE_BUFFER_ARBquery, but named more consistently.static intGL_TRANSFORM_FEEDBACK_BUFFER_INDEX
GL_TRANSFORM_FEEDBACK_BUFFER_STRIDEAccepted in thepropsarray ofGetProgramResourceiv.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidglBindBuffersBase(int target, int first, int[] buffers)static voidglBindBuffersBase(int target, int first, java.nio.IntBuffer buffers)static voidglBindBuffersRange(int target, int first, int[] buffers, org.lwjgl.PointerBuffer offsets, org.lwjgl.PointerBuffer sizes)static voidglBindBuffersRange(int target, int first, java.nio.IntBuffer buffers, org.lwjgl.PointerBuffer offsets, org.lwjgl.PointerBuffer sizes)static voidglBindImageTextures(int first, int[] textures)static voidglBindImageTextures(int first, java.nio.IntBuffer textures)static voidglBindSamplers(int first, int[] samplers)static voidglBindSamplers(int first, java.nio.IntBuffer samplers)static voidglBindTextures(int first, int[] textures)static voidglBindTextures(int first, java.nio.IntBuffer textures)static voidglBindVertexBuffers(int first, int[] buffers, org.lwjgl.PointerBuffer offsets, int[] strides)static voidglBindVertexBuffers(int first, java.nio.IntBuffer buffers, org.lwjgl.PointerBuffer offsets, java.nio.IntBuffer strides)static voidglBufferStorage(int target, java.nio.ByteBuffer data, int flags)static voidglBufferStorage(int target, double[] data, int flags)static voidglBufferStorage(int target, java.nio.DoubleBuffer data, int flags)static voidglBufferStorage(int target, float[] data, int flags)static voidglBufferStorage(int target, java.nio.FloatBuffer data, int flags)static voidglBufferStorage(int target, int[] data, int flags)static voidglBufferStorage(int target, java.nio.IntBuffer data, int flags)static voidglBufferStorage(int target, long size, int flags)static voidglBufferStorage(int target, short[] data, int flags)static voidglBufferStorage(int target, java.nio.ShortBuffer data, int flags)static voidglClearTexImage(int texture, int level, int format, int type, java.nio.ByteBuffer data)static voidglClearTexImage(int texture, int level, int format, int type, double[] data)static voidglClearTexImage(int texture, int level, int format, int type, java.nio.DoubleBuffer data)static voidglClearTexImage(int texture, int level, int format, int type, float[] data)static voidglClearTexImage(int texture, int level, int format, int type, java.nio.FloatBuffer data)static voidglClearTexImage(int texture, int level, int format, int type, int[] data)static voidglClearTexImage(int texture, int level, int format, int type, java.nio.IntBuffer data)static voidglClearTexImage(int texture, int level, int format, int type, short[] data)static voidglClearTexImage(int texture, int level, int format, int type, java.nio.ShortBuffer data)static voidglClearTexSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.ByteBuffer data)static voidglClearTexSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, double[] data)static voidglClearTexSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.DoubleBuffer data)static voidglClearTexSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, float[] data)static voidglClearTexSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.FloatBuffer data)static voidglClearTexSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int[] data)static voidglClearTexSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.IntBuffer data)static voidglClearTexSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, short[] data)static voidglClearTexSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.ShortBuffer data)
-
-
-
Field Detail
-
GL_MAX_VERTEX_ATTRIB_STRIDE
Implementation-dependent state which constrains the maximum value of stride parameters to vertex array pointer-setting commands.
-
GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED
Implementations are not required to support primitive restart for separate patch primitives (primitive type PATCHES). Support can be queried by calling GetBooleanv with the symbolic constant PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED. A value of FALSE indicates that primitive restart is treated as disabled when drawing patches, no matter the value of the enables. A value of TRUE indicates that primitive restart behaves normally for patches.
-
GL_TEXTURE_BUFFER_BINDING
Equivalent toTEXTURE_BUFFER_ARBquery, but named more consistently.
-
GL_BUFFER_IMMUTABLE_STORAGE, GL_BUFFER_STORAGE_FLAGS
Accepted by thepnameparameter ofGetBufferParameter{i|i64}v.
-
GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT
Accepted by thebarriersparameter ofMemoryBarrier.
-
GL_LOCATION_COMPONENT, GL_TRANSFORM_FEEDBACK_BUFFER_INDEX, GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE
Accepted in thepropsarray ofGetProgramResourceiv.
-
GL_QUERY_RESULT_NO_WAIT
Accepted by thepnameparameter ofGetQueryObjectiv,GetQueryObjectuiv,GetQueryObjecti64vandGetQueryObjectui64v.
-
GL_QUERY_BUFFER
Accepted by thetargetparameter ofBindBuffer,BufferData,BufferSubData,MapBuffer,UnmapBuffer,MapBufferRange,GetBufferSubData,GetBufferParameteriv,GetBufferParameteri64v,GetBufferPointerv,ClearBufferSubData, and thereadtargetandwritetargetparameters ofCopyBufferSubData.
-
GL_QUERY_BUFFER_BARRIER_BIT
Accepted in thebarriersbitfield inMemoryBarrier.
-
GL_MIRROR_CLAMP_TO_EDGE
Accepted by theparamparameter of TexParameter{if}, SamplerParameter{if} and SamplerParameter{if}v, and by theparamsparameter of TexParameter{if}v, TexParameterI{i ui}v and SamplerParameterI{i ui}v when theirpnameparameter isTEXTURE_WRAP_S,TEXTURE_WRAP_T, orTEXTURE_WRAP_R,
-
-
Method Detail
-
glBufferStorage
public static void glBufferStorage(int target, long size, int flags)Creates the data store of a buffer object.The data store of the buffer object bound to
targetis allocated as a result of a call to this function and cannot be de-allocated until the buffer is deleted with a call toDeleteBuffers. Such a store may not be re-allocated through further calls toBufferStorageorBufferData.BufferStoragedeletes any existing data store. If any portion of the buffer object is mapped in the current context or any context current to another thread, it is as thoughUnmapBufferis executed in each such context prior to deleting the existing data store.- Parameters:
target- the buffer object target. One of:size- the size of the data store in basic machine unitsflags- the bitwiseORof flags describing the intended usage of the buffer object's data store by the application. Valid flags and their meanings are as follows:DYNAMIC_STORAGE_BIT– The contents of the data store may be updated after creation through calls toBufferSubData. If this bit is not set, the buffer content may not be directly updated by the client. Thedataargument may be used to specify the initial content of the buffer's data store regardless of the presence of theDYNAMIC_STORAGE_BIT. Regardless of the presence of this bit, buffers may always be updated with server-side calls such asCopyBufferSubDataandClearBufferSubData.MAP_READ_BIT– The buffer's data store may be mapped by the client for read access and a pointer in the client's address space obtained that may be read from.MAP_WRITE_BIT– The buffer's data store may be mapped by the client for write access and a pointer in the client's address space obtained that may be written to.MAP_PERSISTENT_BIT– The client may request that the server read from or write to the buffer while it is mapped. The client's pointer to the data store remains valid so long as the data store is mapped, even during execution of drawing or dispatch commands.MAP_COHERENT_BIT– Shared access to buffers that are simultaneously mapped for client access and are used by the server will be coherent, so long as that mapping is performed using MapBufferRange. That is, data written to the store by either the client or server will be immediately visible to the other with no further action taken by the application. In particular:- If
MAP_COHERENT_BITis not set and the client performs a write followed by a call to theMemoryBarriercommand with theCLIENT_MAPPED_BUFFER_BARRIER_BITset, then in subsequent commands the server will see the writes. - If
MAP_COHERENT_BITis set and the client performs a write, then in subsequent commands the server will see the writes. - If
MAP_COHERENT_BITis not set and the server performs a write, the application must callMemoryBarrierwith theCLIENT_MAPPED_BUFFER_BARRIER_BITset and then callFenceSyncwithSYNC_GPU_COMMANDS_COMPLETE(orFinish). Then the CPU will see the writes after the sync is complete. - If
MAP_COHERENT_BITis set and the server does a write, the app must callFenceSyncwithSYNC_GPU_COMMANDS_COMPLETE(orFinish). Then the CPU will see the writes after the sync is complete.
- If
CLIENT_STORAGE_BIT– When all other criteria for the buffer storage allocation are met, this bit may be used by an implementation to determine whether to use storage that is local to the server or to the client to serve as the backing store for the buffer.
If
flagscontainsMAP_PERSISTENT_BIT, it must also contain at least one ofMAP_READ_BITorMAP_WRITE_BIT.It is an error to specify
MAP_COHERENT_BITwithout also specifyingMAP_PERSISTENT_BIT.
-
glBufferStorage
public static void glBufferStorage(int target, java.nio.ByteBuffer data, int flags) public static void glBufferStorage(int target, java.nio.ShortBuffer data, int flags) public static void glBufferStorage(int target, java.nio.IntBuffer data, int flags) public static void glBufferStorage(int target, java.nio.FloatBuffer data, int flags) public static void glBufferStorage(int target, java.nio.DoubleBuffer data, int flags)Creates the data store of a buffer object.The data store of the buffer object bound to
targetis allocated as a result of a call to this function and cannot be de-allocated until the buffer is deleted with a call toDeleteBuffers. Such a store may not be re-allocated through further calls toBufferStorageorBufferData.BufferStoragedeletes any existing data store. If any portion of the buffer object is mapped in the current context or any context current to another thread, it is as thoughUnmapBufferis executed in each such context prior to deleting the existing data store.- Parameters:
target- the buffer object target. One of:data- the address in client memory of the data that should be used to initialize the buffer's data store. IfdataisNULL, the data store of the buffer is created, but contains undefined data. Otherwise,datashould point to an array of at leastsizebasic machine units.flags- the bitwiseORof flags describing the intended usage of the buffer object's data store by the application. Valid flags and their meanings are as follows:DYNAMIC_STORAGE_BIT– The contents of the data store may be updated after creation through calls toBufferSubData. If this bit is not set, the buffer content may not be directly updated by the client. Thedataargument may be used to specify the initial content of the buffer's data store regardless of the presence of theDYNAMIC_STORAGE_BIT. Regardless of the presence of this bit, buffers may always be updated with server-side calls such asCopyBufferSubDataandClearBufferSubData.MAP_READ_BIT– The buffer's data store may be mapped by the client for read access and a pointer in the client's address space obtained that may be read from.MAP_WRITE_BIT– The buffer's data store may be mapped by the client for write access and a pointer in the client's address space obtained that may be written to.MAP_PERSISTENT_BIT– The client may request that the server read from or write to the buffer while it is mapped. The client's pointer to the data store remains valid so long as the data store is mapped, even during execution of drawing or dispatch commands.MAP_COHERENT_BIT– Shared access to buffers that are simultaneously mapped for client access and are used by the server will be coherent, so long as that mapping is performed using MapBufferRange. That is, data written to the store by either the client or server will be immediately visible to the other with no further action taken by the application. In particular:- If
MAP_COHERENT_BITis not set and the client performs a write followed by a call to theMemoryBarriercommand with theCLIENT_MAPPED_BUFFER_BARRIER_BITset, then in subsequent commands the server will see the writes. - If
MAP_COHERENT_BITis set and the client performs a write, then in subsequent commands the server will see the writes. - If
MAP_COHERENT_BITis not set and the server performs a write, the application must callMemoryBarrierwith theCLIENT_MAPPED_BUFFER_BARRIER_BITset and then callFenceSyncwithSYNC_GPU_COMMANDS_COMPLETE(orFinish). Then the CPU will see the writes after the sync is complete. - If
MAP_COHERENT_BITis set and the server does a write, the app must callFenceSyncwithSYNC_GPU_COMMANDS_COMPLETE(orFinish). Then the CPU will see the writes after the sync is complete.
- If
CLIENT_STORAGE_BIT– When all other criteria for the buffer storage allocation are met, this bit may be used by an implementation to determine whether to use storage that is local to the server or to the client to serve as the backing store for the buffer.
If
flagscontainsMAP_PERSISTENT_BIT, it must also contain at least one ofMAP_READ_BITorMAP_WRITE_BIT.It is an error to specify
MAP_COHERENT_BITwithout also specifyingMAP_PERSISTENT_BIT.
-
glClearTexSubImage
public static void glClearTexSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.ByteBuffer data) public static void glClearTexSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.ShortBuffer data) public static void glClearTexSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.IntBuffer data) public static void glClearTexSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.FloatBuffer data) public static void glClearTexSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.DoubleBuffer data)Fills all or part of a texture image with a constant value.Arguments
xoffset,yoffset, andzoffsetspecify the lower left texel coordinates of awidth-wide byheight-high bydepth-deep rectangular subregion of the texel array and are interpreted as they are inTexSubImage3D.For 1D array textures,
yoffsetis interpreted as the first layer to be cleared andheightis the number of layers to clear. For 2D array textures,zoffsetis interpreted as the first layer to be cleared anddepthis the number of layers to clear. Cube map textures are treated as an array of six slices in the z-dimension, where the value ofzoffsetis interpreted as specifying the cube map face for the correspondinglayeranddepthis the number of faces to clear. For cube map array textures,zoffsetis the first layer-face to clear, anddepthis the number of layer-faces to clear. Each layer-face is translated into an array layer and a cube map face.Negative values of
xoffset,yoffset, andzoffsetcorrespond to the coordinates of border texels.- Parameters:
texture- the texture to clear. It is an error iftextureis zero or not the name of a texture object, iftextureis a buffer texture, or if the texture image has a compressed internal formatlevel- the texture level to clearxoffset- the x coordinate of the texel subregionyoffset- the y coordinate of the texel subregionzoffset- the z coordinate of the texel subregionwidth- the subregion widthheight- the subregion heightdepth- the subregion depthformat- the format of the source data. One of:type- the type of the source data. One of:data- an array of between one and four components of texel data that will be used as the source for the constant fill value. IfdataisNULL, then the pointer is ignored and the sub-range of the texture image is filled with zeros.
-
glClearTexImage
public static void glClearTexImage(int texture, int level, int format, int type, java.nio.ByteBuffer data) public static void glClearTexImage(int texture, int level, int format, int type, java.nio.ShortBuffer data) public static void glClearTexImage(int texture, int level, int format, int type, java.nio.IntBuffer data) public static void glClearTexImage(int texture, int level, int format, int type, java.nio.FloatBuffer data) public static void glClearTexImage(int texture, int level, int format, int type, java.nio.DoubleBuffer data)Is equivalent to callingClearTexSubImagewithxoffset,yoffset, andzoffsetequal to -bandwidth,height, anddepthequal to the dimensions of the texture image plus2xb(or zero and one for dimensions the texture doesn't have).- Parameters:
texture- the texture to clear. It is an error iftextureis zero or not the name of a texture object, iftextureis a buffer texture, or if the texture image has a compressed internal formatlevel- the texture level to clearformat- the format of the source data. One of:type- the type of the source data. One of:data- an array of between one and four components of texel data that will be used as the source for the constant fill value. IfdataisNULL, then the pointer is ignored and the sub-range of the texture image is filled with zeros.
-
glBindBuffersBase
public static void glBindBuffersBase(int target, int first, java.nio.IntBuffer buffers)Bindscountexisting buffer objects to bindings numberedfirstthroughfirst+count-1in the array of buffer binding points corresponding totarget. Ifbuffersis notNULL, it specifies an array ofcountvalues, each of which must be zero or the name of an existing buffer object. It is equivalent to:for ( i = 0; i < count; i++ ) { if ( buffers == NULL ) { glBindBufferBase(target, first + i, 0); } else { glBindBufferBase(target, first + i, buffers[i]); } }except that the single general buffer binding corresponding to
targetis unmodified, and that buffers will not be created if they do not exist.- Parameters:
target- the buffer object target. One of:first- the first bindingbuffers- an array of zeros or names of existing buffers objects
-
glBindBuffersRange
public static void glBindBuffersRange(int target, int first, java.nio.IntBuffer buffers, org.lwjgl.PointerBuffer offsets, org.lwjgl.PointerBuffer sizes)Bindscountexisting buffer objects to bindings numberedfirstthroughfirst+count-1in the array of buffer binding points corresponding totarget.offsetsandsizesspecify arrays ofcountvalues indicating the range of each buffer to bind. IfbuffersisNULL, all bindings fromfirstthroughfirst+count-1are reset to their unbound (zero) state. In this case, the offsets and sizes associated with the binding points are set to default values, ignoringoffsetsandsizes. It is equivalent to:for ( i = 0; i < count; i++ ) { if ( buffers == NULL ) { glBindBufferRange(target, first + i, 0, 0, 0); } else { glBindBufferRange(target, first + i, buffers[i], offsets[i], sizes[i]); } }except that the single general buffer binding corresponding to
targetis unmodified, and that buffers will not be created if they do not exist.The values specified in
buffers,offsets, andsizeswill be checked separately for each binding point. When values for a specific binding point are invalid, the state for that binding point will be unchanged and an error will be generated. However, state for other binding points will still be changed if their corresponding values are valid.- Parameters:
target- the buffer object target. One of:first- the first bindingbuffers- an array of names of existing buffers objectsoffsets- an array of offsetssizes- an array of sizes
-
glBindTextures
public static void glBindTextures(int first, java.nio.IntBuffer textures)Bindscountexisting texture objects to texture image units numberedfirstthroughfirst+count-1. Iftexturesis notNULL, it specifies an array ofcountvalues, each of which must be zero or the name of an existing texture object. When an entry intexturesis the name of an existing texture object, that object is bound to corresponding texture unit for the target specified when the texture object was created. When an entry intexturesis zero, each of the targets enumerated at the beginning of this section is reset to its default texture for the corresponding texture image unit. IftexturesisNULL, each target of each affected texture image unit fromfirstthroughfirst+count-1is reset to its default texture.BindTexturesis equivalent to:for ( i = 0; i < count; i++ ) { uint texture; if ( textures == NULL ) { texture = 0; } else { texture = textures[i]; } ActiveTexture(TEXTURE0 + first + i); if ( texture != 0 ) { enum target; // target of texture object textures[i] BindTexture(target, textures[i]); } else { for ( target in all supported targets ) { BindTexture(target, 0); } } }except that the active texture selector retains its original value upon completion of the command, and that textures will not be created if they do not exist.
The values specified in
textureswill be checked separately for each texture image unit. When a value for a specific texture image unit is invalid, the state for that texture image unit will be unchanged and an error will be generated. However, state for other texture image units will still be changed if their corresponding values are valid.- Parameters:
first- the first texture objectstextures- an array of zeros or names of existing texture objects
-
glBindSamplers
public static void glBindSamplers(int first, java.nio.IntBuffer samplers)Bindscountexisting sampler objects to texture image units numberedfirstthroughfirst+count-1. Ifsamplersis notNULL, it specifies an array ofcountvalues, each of which must be zero or the name of an existing sampler object. IfsamplersisNULL, each affected texture image unit fromfirstthroughfirst+count-1will be reset to have no bound sampler object.BindSamplersis equivalent to:for ( i = 0; i < count; i++ ) { if ( samplers == NULL ) { glBindSampler(first + i, 0); } else { glBindSampler(first + i, samplers[i]); } }The values specified in
samplerswill be checked separately for each texture image unit. When a value for a specific texture image unit is invalid, the state for that texture image unit will be unchanged and an error will be generated. However, state for other texture image units will still be changed if their corresponding values are valid.- Parameters:
first- the first sampler objectsamplers- an array of zeros or names of existing sampler objects
-
glBindImageTextures
public static void glBindImageTextures(int first, java.nio.IntBuffer textures)Bindscountexisting texture objects to image units numberedfirstthroughfirst+count-1. Iftexturesis notNULL, it specifies an array ofcountvalues, each of which must be zero or the name of an existing texture object. IftexturesisNULL, each affected image unit fromfirstthroughfirst+count-1will be reset to have no bound texture object.When binding a non-zero texture object to an image unit, the image unit
level,layered,layer, andaccessparameters are set to zero,TRUE, zero, andREAD_WRITE, respectively. The image unitformatparameter is taken from the internal format of the texture image at level zero of the texture object identified bytextures. For cube map textures, the internal format of theTEXTURE_CUBE_MAP_POSITIVE_Ximage of level zero is used. For multisample, multisample array, buffer, and rectangle textures, the internal format of the single texture level is used.When unbinding a texture object from an image unit, the image unit parameters
level,layered,layer, andformatwill be reset to their default values of zero,FALSE, 0, andR8, respectively.BindImageTexturesis equivalent to:for ( i = 0; i < count; i++ ) { if ( textures == NULL || textures[i] = 0 ) { glBindImageTexture(first + i, 0, 0, FALSE, 0, READ_ONLY, R8); } else { glBindImageTexture(first + i, textures[i], 0, TRUE, 0, READ_WRITE, lookupInternalFormat(textures[i])); } }where
lookupInternalFormatreturns the internal format of the specified texture object.The values specified in
textureswill be checked separately for each image unit. When a value for a specific image unit is invalid, the state for that image unit will be unchanged and an error will be generated. However, state for other image units will still be changed if their corresponding values are valid.- Parameters:
first- the first image unittextures- an array of zeros or names of existing texture objects
-
glBindVertexBuffers
public static void glBindVertexBuffers(int first, java.nio.IntBuffer buffers, org.lwjgl.PointerBuffer offsets, java.nio.IntBuffer strides)Bindscountexisting buffer objects to vertex buffer binding points numberedfirstthroughfirst+count-1. Ifbuffersis notNULL, it specifies an array ofcountvalues, each of which must be zero or the name of an existing buffer object.offsetsandstridesspecify arrays ofcountvalues indicating the offset of the first element and stride between elements in each buffer, respectively. IfbuffersisNULL, each affected vertex buffer binding point fromfirstthroughfirst+count-1will be reset to have no bound buffer object. In this case, the offsets and strides associated with the binding points are set to default values, ignoringoffsetsandstrides.BindVertexBuffersis equivalent to:for ( i = 0; i < count; i++ ) { if ( buffers == NULL ) { glBindVertexBuffer(first + i, 0, 0, 16); } else { glBindVertexBuffer(first + i, buffers[i], offsets[i], strides[i]); } }except that buffers will not be created if they do not exist.
The values specified in
buffers,offsets, andstrideswill be checked separately for each vertex buffer binding point. When a value for a specific binding point is invalid, the state for that binding point will be unchanged and an error will be generated. However, state for other binding points will still be changed if their corresponding values are valid.- Parameters:
first- the first vertex buffer binding pointbuffers- an array of zeros or names of existing buffers objectsoffsets- an array of offsesstrides- an array of stride values
-
glBufferStorage
public static void glBufferStorage(int target, short[] data, int flags) public static void glBufferStorage(int target, int[] data, int flags) public static void glBufferStorage(int target, float[] data, int flags) public static void glBufferStorage(int target, double[] data, int flags)Array version of:BufferStorage
-
glClearTexSubImage
public static void glClearTexSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, short[] data) public static void glClearTexSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int[] data) public static void glClearTexSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, float[] data) public static void glClearTexSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, double[] data)Array version of:ClearTexSubImage
-
glClearTexImage
public static void glClearTexImage(int texture, int level, int format, int type, short[] data) public static void glClearTexImage(int texture, int level, int format, int type, int[] data) public static void glClearTexImage(int texture, int level, int format, int type, float[] data) public static void glClearTexImage(int texture, int level, int format, int type, double[] data)Array version of:ClearTexImage
-
glBindBuffersBase
public static void glBindBuffersBase(int target, int first, int[] buffers)Array version of:BindBuffersBase
-
glBindBuffersRange
public static void glBindBuffersRange(int target, int first, int[] buffers, org.lwjgl.PointerBuffer offsets, org.lwjgl.PointerBuffer sizes)Array version of:BindBuffersRange
-
glBindTextures
public static void glBindTextures(int first, int[] textures)Array version of:BindTextures
-
glBindSamplers
public static void glBindSamplers(int first, int[] samplers)Array version of:BindSamplers
-
glBindImageTextures
public static void glBindImageTextures(int first, int[] textures)Array version of:BindImageTextures
-
glBindVertexBuffers
public static void glBindVertexBuffers(int first, int[] buffers, org.lwjgl.PointerBuffer offsets, int[] strides)Array version of:BindVertexBuffers
-
-