Class ARBClearBufferObject



  • public class ARBClearBufferObject
    extends java.lang.Object
    Native bindings to the ARB_clear_buffer_object extension.

    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.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      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, 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, 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, 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, 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, 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, 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, java.nio.FloatBuffer data)
      DSA version of ClearBufferData.
      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, 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, java.nio.FloatBuffer data)
      DSA version of ClearBufferSubData.
      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, java.nio.ShortBuffer data)
      DSA version of ClearBufferSubData.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait