public class ARBClearBufferObject
extends java.lang.Object
Buffer objects are fundamental to the operation of OpenGL. Buffers are used as a source of data for vertices and indices, read through buffer textures
in shaders, used to transfer texture and image data into and out of textures and framebuffers, and may be written to by operations such as transform
feedback. OpenGL contains mechanisms to copy sections of buffers from one to another, but it has no mechanism to initialize the content of a buffer to a
known value. In effect, it has memcpy, but not memset.
This extension adds such a mechanism and has several use cases. Examples include clearing a pixel unpack buffer before transferring data to a texture or resetting buffer data to a known value before sparse updates through shader image stores or transform feedback.
Requires OpenGL 1.5. Promoted to core in OpenGL 4.3.
| Modifier and Type | Method and Description |
|---|---|
static void |
glClearBufferData(int target,
int internalformat,
int format,
int type,
java.nio.ByteBuffer data)
Fills a buffer object's data store with a fixed value.
|
static void |
glClearBufferData(int target,
int internalformat,
int format,
int type,
float[] data)
Array version of:
ClearBufferData |
static void |
glClearBufferData(int target,
int internalformat,
int format,
int type,
java.nio.FloatBuffer data)
Fills a buffer object's data store with a fixed value.
|
static void |
glClearBufferData(int target,
int internalformat,
int format,
int type,
int[] data)
Array version of:
ClearBufferData |
static void |
glClearBufferData(int target,
int internalformat,
int format,
int type,
java.nio.IntBuffer data)
Fills a buffer object's data store with a fixed value.
|
static void |
glClearBufferData(int target,
int internalformat,
int format,
int type,
short[] data)
Array version of:
ClearBufferData |
static void |
glClearBufferData(int target,
int internalformat,
int format,
int type,
java.nio.ShortBuffer data)
Fills a buffer object's data store with a fixed value.
|
static void |
glClearBufferSubData(int target,
int internalformat,
long offset,
long size,
int format,
int type,
java.nio.ByteBuffer data)
Fills all or part of buffer object's data store with a fixed value.
|
static void |
glClearBufferSubData(int target,
int internalformat,
long offset,
long size,
int format,
int type,
float[] data)
Array version of:
ClearBufferSubData |
static void |
glClearBufferSubData(int target,
int internalformat,
long offset,
long size,
int format,
int type,
java.nio.FloatBuffer data)
Fills all or part of buffer object's data store with a fixed value.
|
static void |
glClearBufferSubData(int target,
int internalformat,
long offset,
long size,
int format,
int type,
int[] data)
Array version of:
ClearBufferSubData |
static void |
glClearBufferSubData(int target,
int internalformat,
long offset,
long size,
int format,
int type,
java.nio.IntBuffer data)
Fills all or part of buffer object's data store with a fixed value.
|
static void |
glClearBufferSubData(int target,
int internalformat,
long offset,
long size,
int format,
int type,
short[] data)
Array version of:
ClearBufferSubData |
static void |
glClearBufferSubData(int target,
int internalformat,
long offset,
long size,
int format,
int type,
java.nio.ShortBuffer data)
Fills all or part of buffer object's data store with a fixed value.
|
static void |
glClearNamedBufferDataEXT(int buffer,
int internalformat,
int format,
int type,
java.nio.ByteBuffer data)
DSA version of
ClearBufferData. |
static void |
glClearNamedBufferDataEXT(int buffer,
int internalformat,
int format,
int type,
float[] data)
Array version of:
ClearNamedBufferDataEXT |
static void |
glClearNamedBufferDataEXT(int buffer,
int internalformat,
int format,
int type,
java.nio.FloatBuffer data)
DSA version of
ClearBufferData. |
static void |
glClearNamedBufferDataEXT(int buffer,
int internalformat,
int format,
int type,
int[] data)
Array version of:
ClearNamedBufferDataEXT |
static void |
glClearNamedBufferDataEXT(int buffer,
int internalformat,
int format,
int type,
java.nio.IntBuffer data)
DSA version of
ClearBufferData. |
static void |
glClearNamedBufferDataEXT(int buffer,
int internalformat,
int format,
int type,
short[] data)
Array version of:
ClearNamedBufferDataEXT |
static void |
glClearNamedBufferDataEXT(int buffer,
int internalformat,
int format,
int type,
java.nio.ShortBuffer data)
DSA version of
ClearBufferData. |
static void |
glClearNamedBufferSubDataEXT(int buffer,
int internalformat,
long offset,
long size,
int format,
int type,
java.nio.ByteBuffer data)
DSA version of
ClearBufferSubData. |
static void |
glClearNamedBufferSubDataEXT(int buffer,
int internalformat,
long offset,
long size,
int format,
int type,
float[] data)
Array version of:
ClearNamedBufferSubDataEXT |
static void |
glClearNamedBufferSubDataEXT(int buffer,
int internalformat,
long offset,
long size,
int format,
int type,
java.nio.FloatBuffer data)
DSA version of
ClearBufferSubData. |
static void |
glClearNamedBufferSubDataEXT(int buffer,
int internalformat,
long offset,
long size,
int format,
int type,
int[] data)
Array version of:
ClearNamedBufferSubDataEXT |
static void |
glClearNamedBufferSubDataEXT(int buffer,
int internalformat,
long offset,
long size,
int format,
int type,
java.nio.IntBuffer data)
DSA version of
ClearBufferSubData. |
static void |
glClearNamedBufferSubDataEXT(int buffer,
int internalformat,
long offset,
long size,
int format,
int type,
short[] data)
Array version of:
ClearNamedBufferSubDataEXT |
static void |
glClearNamedBufferSubDataEXT(int buffer,
int internalformat,
long offset,
long size,
int format,
int type,
java.nio.ShortBuffer data)
DSA version of
ClearBufferSubData. |
static void |
nglClearBufferData(int target,
int internalformat,
int format,
int type,
long data)
Unsafe version of:
ClearBufferData |
static void |
nglClearBufferSubData(int target,
int internalformat,
long offset,
long size,
int format,
int type,
long data)
Unsafe version of:
ClearBufferSubData |
static void |
nglClearNamedBufferDataEXT(int buffer,
int internalformat,
int format,
int type,
long data)
Unsafe version of:
ClearNamedBufferDataEXT |
static void |
nglClearNamedBufferSubDataEXT(int buffer,
int internalformat,
long offset,
long size,
int format,
int type,
long data)
Unsafe version of:
ClearNamedBufferSubDataEXT |
public static void nglClearBufferData(int target,
int internalformat,
int format,
int type,
long data)
ClearBufferDatapublic static void glClearBufferData(int target,
int internalformat,
int format,
int type,
@Nullable
java.nio.ByteBuffer data)
target - the target of the operation. One of:internalformat - the internal format with which the data will be stored in the buffer objectformat - the format of the data in memory addressed by data. One of:type - the type of the data in memory addressed by data. One of:data - the buffer containing the data to be used as the source of the constant fill value. The elements of data are converted by the GL into the format
specified by internalformat, and then used to fill the specified range of the destination buffer. If data is NULL, then it is ignored and the
sub-range of the buffer is filled with zeros.public static void glClearBufferData(int target,
int internalformat,
int format,
int type,
@Nullable
java.nio.ShortBuffer data)
target - the target of the operation. One of:internalformat - the internal format with which the data will be stored in the buffer objectformat - the format of the data in memory addressed by data. One of:type - the type of the data in memory addressed by data. One of:data - the buffer containing the data to be used as the source of the constant fill value. The elements of data are converted by the GL into the format
specified by internalformat, and then used to fill the specified range of the destination buffer. If data is NULL, then it is ignored and the
sub-range of the buffer is filled with zeros.public static void glClearBufferData(int target,
int internalformat,
int format,
int type,
@Nullable
java.nio.IntBuffer data)
target - the target of the operation. One of:internalformat - the internal format with which the data will be stored in the buffer objectformat - the format of the data in memory addressed by data. One of:type - the type of the data in memory addressed by data. One of:data - the buffer containing the data to be used as the source of the constant fill value. The elements of data are converted by the GL into the format
specified by internalformat, and then used to fill the specified range of the destination buffer. If data is NULL, then it is ignored and the
sub-range of the buffer is filled with zeros.public static void glClearBufferData(int target,
int internalformat,
int format,
int type,
@Nullable
java.nio.FloatBuffer data)
target - the target of the operation. One of:internalformat - the internal format with which the data will be stored in the buffer objectformat - the format of the data in memory addressed by data. One of:type - the type of the data in memory addressed by data. One of:data - the buffer containing the data to be used as the source of the constant fill value. The elements of data are converted by the GL into the format
specified by internalformat, and then used to fill the specified range of the destination buffer. If data is NULL, then it is ignored and the
sub-range of the buffer is filled with zeros.public static void nglClearBufferSubData(int target,
int internalformat,
long offset,
long size,
int format,
int type,
long data)
ClearBufferSubDatapublic static void glClearBufferSubData(int target,
int internalformat,
long offset,
long size,
int format,
int type,
@Nullable
java.nio.ByteBuffer data)
target - the target of the operation. One of:internalformat - the internal format with which the data will be stored in the buffer objectoffset - the offset, in basic machine units into the buffer object's data store at which to start fillingsize - the size, in basic machine units of the range of the data store to fillformat - the format of the data in memory addressed by data. One of:type - the type of the data in memory addressed by data. One of:data - the buffer containing the data to be used as the source of the constant fill value. The elements of data are converted by the GL into the format
specified by internalformat, and then used to fill the specified range of the destination buffer. If data is NULL, then it is ignored and the
sub-range of the buffer is filled with zeros.public static void glClearBufferSubData(int target,
int internalformat,
long offset,
long size,
int format,
int type,
@Nullable
java.nio.ShortBuffer data)
target - the target of the operation. One of:internalformat - the internal format with which the data will be stored in the buffer objectoffset - the offset, in basic machine units into the buffer object's data store at which to start fillingsize - the size, in basic machine units of the range of the data store to fillformat - the format of the data in memory addressed by data. One of:type - the type of the data in memory addressed by data. One of:data - the buffer containing the data to be used as the source of the constant fill value. The elements of data are converted by the GL into the format
specified by internalformat, and then used to fill the specified range of the destination buffer. If data is NULL, then it is ignored and the
sub-range of the buffer is filled with zeros.public static void glClearBufferSubData(int target,
int internalformat,
long offset,
long size,
int format,
int type,
@Nullable
java.nio.IntBuffer data)
target - the target of the operation. One of:internalformat - the internal format with which the data will be stored in the buffer objectoffset - the offset, in basic machine units into the buffer object's data store at which to start fillingsize - the size, in basic machine units of the range of the data store to fillformat - the format of the data in memory addressed by data. One of:type - the type of the data in memory addressed by data. One of:data - the buffer containing the data to be used as the source of the constant fill value. The elements of data are converted by the GL into the format
specified by internalformat, and then used to fill the specified range of the destination buffer. If data is NULL, then it is ignored and the
sub-range of the buffer is filled with zeros.public static void glClearBufferSubData(int target,
int internalformat,
long offset,
long size,
int format,
int type,
@Nullable
java.nio.FloatBuffer data)
target - the target of the operation. One of:internalformat - the internal format with which the data will be stored in the buffer objectoffset - the offset, in basic machine units into the buffer object's data store at which to start fillingsize - the size, in basic machine units of the range of the data store to fillformat - the format of the data in memory addressed by data. One of:type - the type of the data in memory addressed by data. One of:data - the buffer containing the data to be used as the source of the constant fill value. The elements of data are converted by the GL into the format
specified by internalformat, and then used to fill the specified range of the destination buffer. If data is NULL, then it is ignored and the
sub-range of the buffer is filled with zeros.public static void nglClearNamedBufferDataEXT(int buffer,
int internalformat,
int format,
int type,
long data)
ClearNamedBufferDataEXTpublic static void glClearNamedBufferDataEXT(int buffer,
int internalformat,
int format,
int type,
@Nullable
java.nio.ByteBuffer data)
ClearBufferData.buffer - the buffer object to clearinternalformat - the internal format with which the data will be stored in the buffer objectformat - the format of the data in memory addressed by data. One of:type - the type of the data in memory addressed by data. One of:data - the buffer containing the data to be used as the source of the constant fill value. The elements of data are converted by the GL into the format
specified by internalformat, and then used to fill the specified range of the destination buffer. If data is NULL, then it is ignored and the
sub-range of the buffer is filled with zeros.public static void glClearNamedBufferDataEXT(int buffer,
int internalformat,
int format,
int type,
@Nullable
java.nio.ShortBuffer data)
ClearBufferData.buffer - the buffer object to clearinternalformat - the internal format with which the data will be stored in the buffer objectformat - the format of the data in memory addressed by data. One of:type - the type of the data in memory addressed by data. One of:data - the buffer containing the data to be used as the source of the constant fill value. The elements of data are converted by the GL into the format
specified by internalformat, and then used to fill the specified range of the destination buffer. If data is NULL, then it is ignored and the
sub-range of the buffer is filled with zeros.public static void glClearNamedBufferDataEXT(int buffer,
int internalformat,
int format,
int type,
@Nullable
java.nio.IntBuffer data)
ClearBufferData.buffer - the buffer object to clearinternalformat - the internal format with which the data will be stored in the buffer objectformat - the format of the data in memory addressed by data. One of:type - the type of the data in memory addressed by data. One of:data - the buffer containing the data to be used as the source of the constant fill value. The elements of data are converted by the GL into the format
specified by internalformat, and then used to fill the specified range of the destination buffer. If data is NULL, then it is ignored and the
sub-range of the buffer is filled with zeros.public static void glClearNamedBufferDataEXT(int buffer,
int internalformat,
int format,
int type,
@Nullable
java.nio.FloatBuffer data)
ClearBufferData.buffer - the buffer object to clearinternalformat - the internal format with which the data will be stored in the buffer objectformat - the format of the data in memory addressed by data. One of:type - the type of the data in memory addressed by data. One of:data - the buffer containing the data to be used as the source of the constant fill value. The elements of data are converted by the GL into the format
specified by internalformat, and then used to fill the specified range of the destination buffer. If data is NULL, then it is ignored and the
sub-range of the buffer is filled with zeros.public static void nglClearNamedBufferSubDataEXT(int buffer,
int internalformat,
long offset,
long size,
int format,
int type,
long data)
ClearNamedBufferSubDataEXTpublic static void glClearNamedBufferSubDataEXT(int buffer,
int internalformat,
long offset,
long size,
int format,
int type,
@Nullable
java.nio.ByteBuffer data)
ClearBufferSubData.buffer - the buffer object to clearinternalformat - the internal format with which the data will be stored in the buffer objectoffset - the offset, in basic machine units into the buffer object's data store at which to start fillingsize - the size, in basic machine units of the range of the data store to fillformat - the format of the data in memory addressed by data. One of:type - the type of the data in memory addressed by data. One of:data - the buffer containing the data to be used as the source of the constant fill value. The elements of data are converted by the GL into the format
specified by internalformat, and then used to fill the specified range of the destination buffer. If data is NULL, then it is ignored and the
sub-range of the buffer is filled with zeros.public static void glClearNamedBufferSubDataEXT(int buffer,
int internalformat,
long offset,
long size,
int format,
int type,
@Nullable
java.nio.ShortBuffer data)
ClearBufferSubData.buffer - the buffer object to clearinternalformat - the internal format with which the data will be stored in the buffer objectoffset - the offset, in basic machine units into the buffer object's data store at which to start fillingsize - the size, in basic machine units of the range of the data store to fillformat - the format of the data in memory addressed by data. One of:type - the type of the data in memory addressed by data. One of:data - the buffer containing the data to be used as the source of the constant fill value. The elements of data are converted by the GL into the format
specified by internalformat, and then used to fill the specified range of the destination buffer. If data is NULL, then it is ignored and the
sub-range of the buffer is filled with zeros.public static void glClearNamedBufferSubDataEXT(int buffer,
int internalformat,
long offset,
long size,
int format,
int type,
@Nullable
java.nio.IntBuffer data)
ClearBufferSubData.buffer - the buffer object to clearinternalformat - the internal format with which the data will be stored in the buffer objectoffset - the offset, in basic machine units into the buffer object's data store at which to start fillingsize - the size, in basic machine units of the range of the data store to fillformat - the format of the data in memory addressed by data. One of:type - the type of the data in memory addressed by data. One of:data - the buffer containing the data to be used as the source of the constant fill value. The elements of data are converted by the GL into the format
specified by internalformat, and then used to fill the specified range of the destination buffer. If data is NULL, then it is ignored and the
sub-range of the buffer is filled with zeros.public static void glClearNamedBufferSubDataEXT(int buffer,
int internalformat,
long offset,
long size,
int format,
int type,
@Nullable
java.nio.FloatBuffer data)
ClearBufferSubData.buffer - the buffer object to clearinternalformat - the internal format with which the data will be stored in the buffer objectoffset - the offset, in basic machine units into the buffer object's data store at which to start fillingsize - the size, in basic machine units of the range of the data store to fillformat - the format of the data in memory addressed by data. One of:type - the type of the data in memory addressed by data. One of:data - the buffer containing the data to be used as the source of the constant fill value. The elements of data are converted by the GL into the format
specified by internalformat, and then used to fill the specified range of the destination buffer. If data is NULL, then it is ignored and the
sub-range of the buffer is filled with zeros.public static void glClearBufferData(int target,
int internalformat,
int format,
int type,
@Nullable
short[] data)
ClearBufferDatapublic static void glClearBufferData(int target,
int internalformat,
int format,
int type,
@Nullable
int[] data)
ClearBufferDatapublic static void glClearBufferData(int target,
int internalformat,
int format,
int type,
@Nullable
float[] data)
ClearBufferDatapublic static void glClearBufferSubData(int target,
int internalformat,
long offset,
long size,
int format,
int type,
@Nullable
short[] data)
ClearBufferSubDatapublic static void glClearBufferSubData(int target,
int internalformat,
long offset,
long size,
int format,
int type,
@Nullable
int[] data)
ClearBufferSubDatapublic static void glClearBufferSubData(int target,
int internalformat,
long offset,
long size,
int format,
int type,
@Nullable
float[] data)
ClearBufferSubDatapublic static void glClearNamedBufferDataEXT(int buffer,
int internalformat,
int format,
int type,
@Nullable
short[] data)
ClearNamedBufferDataEXTpublic static void glClearNamedBufferDataEXT(int buffer,
int internalformat,
int format,
int type,
@Nullable
int[] data)
ClearNamedBufferDataEXTpublic static void glClearNamedBufferDataEXT(int buffer,
int internalformat,
int format,
int type,
@Nullable
float[] data)
ClearNamedBufferDataEXTpublic static void glClearNamedBufferSubDataEXT(int buffer,
int internalformat,
long offset,
long size,
int format,
int type,
@Nullable
short[] data)
ClearNamedBufferSubDataEXTpublic static void glClearNamedBufferSubDataEXT(int buffer,
int internalformat,
long offset,
long size,
int format,
int type,
@Nullable
int[] data)
ClearNamedBufferSubDataEXTpublic static void glClearNamedBufferSubDataEXT(int buffer,
int internalformat,
long offset,
long size,
int format,
int type,
@Nullable
float[] data)
ClearNamedBufferSubDataEXTCopyright LWJGL. All Rights Reserved. License terms.