Class GL15


  • public final class GL15
    extends java.lang.Object
    • Method Detail

      • glBindBuffer

        public static void glBindBuffer​(int target,
                                        int buffer)
      • glDeleteBuffers

        public static void glDeleteBuffers​(java.nio.IntBuffer buffers)
      • glDeleteBuffers

        public static void glDeleteBuffers​(int buffer)
        Overloads glDeleteBuffers.
      • glGenBuffers

        public static void glGenBuffers​(java.nio.IntBuffer buffers)
      • glGenBuffers

        public static int glGenBuffers()
        Overloads glGenBuffers.
      • glIsBuffer

        public static boolean glIsBuffer​(int buffer)
      • glBufferData

        public static void glBufferData​(int target,
                                        long data_size,
                                        int usage)
      • glBufferData

        public static void glBufferData​(int target,
                                        java.nio.ByteBuffer data,
                                        int usage)
      • glBufferData

        public static void glBufferData​(int target,
                                        java.nio.DoubleBuffer data,
                                        int usage)
      • glBufferData

        public static void glBufferData​(int target,
                                        java.nio.FloatBuffer data,
                                        int usage)
      • glBufferData

        public static void glBufferData​(int target,
                                        java.nio.IntBuffer data,
                                        int usage)
      • glBufferData

        public static void glBufferData​(int target,
                                        java.nio.ShortBuffer data,
                                        int usage)
      • glBufferSubData

        public static void glBufferSubData​(int target,
                                           long offset,
                                           java.nio.ByteBuffer data)
      • glBufferSubData

        public static void glBufferSubData​(int target,
                                           long offset,
                                           java.nio.DoubleBuffer data)
      • glBufferSubData

        public static void glBufferSubData​(int target,
                                           long offset,
                                           java.nio.FloatBuffer data)
      • glBufferSubData

        public static void glBufferSubData​(int target,
                                           long offset,
                                           java.nio.IntBuffer data)
      • glBufferSubData

        public static void glBufferSubData​(int target,
                                           long offset,
                                           java.nio.ShortBuffer data)
      • glGetBufferSubData

        public static void glGetBufferSubData​(int target,
                                              long offset,
                                              java.nio.ByteBuffer data)
      • glGetBufferSubData

        public static void glGetBufferSubData​(int target,
                                              long offset,
                                              java.nio.DoubleBuffer data)
      • glGetBufferSubData

        public static void glGetBufferSubData​(int target,
                                              long offset,
                                              java.nio.FloatBuffer data)
      • glGetBufferSubData

        public static void glGetBufferSubData​(int target,
                                              long offset,
                                              java.nio.IntBuffer data)
      • glGetBufferSubData

        public static void glGetBufferSubData​(int target,
                                              long offset,
                                              java.nio.ShortBuffer data)
      • glMapBuffer

        public static java.nio.ByteBuffer glMapBuffer​(int target,
                                                      int access,
                                                      java.nio.ByteBuffer old_buffer)
        glMapBuffer maps a GL buffer object to a ByteBuffer. The old_buffer argument can be null, in which case a new ByteBuffer will be created, pointing to the returned memory. If old_buffer is non-null, it will be returned if it points to the same mapped memory and has the same capacity as the buffer object, otherwise a new ByteBuffer is created. That way, an application will normally use glMapBuffer like this:

        ByteBuffer mapped_buffer; mapped_buffer = glMapBuffer(..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBuffer(..., ..., mapped_buffer);

        Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused.

        The version of this method without an explicit length argument calls glGetBufferParameter internally to retrieve the current buffer object size, which may cause a pipeline flush and reduce application performance.

        The version of this method with an explicit length argument is a fast alternative to the one without. No GL call is made to retrieve the buffer object size, so the user is responsible for tracking and using the appropriate length.
        Security warning: The length argument should match the buffer object size. Reading from or writing to outside the memory region that corresponds to the mapped buffer object will cause native crashes.

        Parameters:
        old_buffer - A ByteBuffer. If this argument points to the same address and has the same capacity as the new mapping, it will be returned and no new buffer will be created.

        Returns:
        A ByteBuffer representing the mapped buffer memory.
      • glMapBuffer

        public static java.nio.ByteBuffer glMapBuffer​(int target,
                                                      int access,
                                                      long length,
                                                      java.nio.ByteBuffer old_buffer)
        glMapBuffer maps a GL buffer object to a ByteBuffer. The old_buffer argument can be null, in which case a new ByteBuffer will be created, pointing to the returned memory. If old_buffer is non-null, it will be returned if it points to the same mapped memory and has the same capacity as the buffer object, otherwise a new ByteBuffer is created. That way, an application will normally use glMapBuffer like this:

        ByteBuffer mapped_buffer; mapped_buffer = glMapBuffer(..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBuffer(..., ..., mapped_buffer);

        Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused.

        The version of this method without an explicit length argument calls glGetBufferParameter internally to retrieve the current buffer object size, which may cause a pipeline flush and reduce application performance.

        The version of this method with an explicit length argument is a fast alternative to the one without. No GL call is made to retrieve the buffer object size, so the user is responsible for tracking and using the appropriate length.
        Security warning: The length argument should match the buffer object size. Reading from or writing to outside the memory region that corresponds to the mapped buffer object will cause native crashes.

        Parameters:
        old_buffer - A ByteBuffer. If this argument points to the same address and has the same capacity as the new mapping, it will be returned and no new buffer will be created.

        Returns:
        A ByteBuffer representing the mapped buffer memory.
      • glUnmapBuffer

        public static boolean glUnmapBuffer​(int target)
      • glGetBufferParameter

        public static void glGetBufferParameter​(int target,
                                                int pname,
                                                java.nio.IntBuffer params)
      • glGetBufferParameter

        @Deprecated
        public static int glGetBufferParameter​(int target,
                                               int pname)
        Deprecated.
        Will be removed in 3.0. Use glGetBufferParameteri(int, int) instead.
        Overloads glGetBufferParameteriv.

      • glGetBufferParameteri

        public static int glGetBufferParameteri​(int target,
                                                int pname)
        Overloads glGetBufferParameteriv.
      • glGetBufferPointer

        public static java.nio.ByteBuffer glGetBufferPointer​(int target,
                                                             int pname)
      • glGenQueries

        public static void glGenQueries​(java.nio.IntBuffer ids)
      • glGenQueries

        public static int glGenQueries()
        Overloads glGenQueries.
      • glDeleteQueries

        public static void glDeleteQueries​(java.nio.IntBuffer ids)
      • glDeleteQueries

        public static void glDeleteQueries​(int id)
        Overloads glDeleteQueries.
      • glIsQuery

        public static boolean glIsQuery​(int id)
      • glBeginQuery

        public static void glBeginQuery​(int target,
                                        int id)
      • glEndQuery

        public static void glEndQuery​(int target)
      • glGetQuery

        public static void glGetQuery​(int target,
                                      int pname,
                                      java.nio.IntBuffer params)
      • glGetQuery

        @Deprecated
        public static int glGetQuery​(int target,
                                     int pname)
        Deprecated.
        Will be removed in 3.0. Use glGetQueryi(int, int) instead.
        Overloads glGetQueryiv.

      • glGetQueryi

        public static int glGetQueryi​(int target,
                                      int pname)
        Overloads glGetQueryiv.
      • glGetQueryObject

        public static void glGetQueryObject​(int id,
                                            int pname,
                                            java.nio.IntBuffer params)
      • glGetQueryObjecti

        public static int glGetQueryObjecti​(int id,
                                            int pname)
        Overloads glGetQueryObjectiv.
      • glGetQueryObjectu

        public static void glGetQueryObjectu​(int id,
                                             int pname,
                                             java.nio.IntBuffer params)
      • glGetQueryObjectui

        public static int glGetQueryObjectui​(int id,
                                             int pname)
        Overloads glGetQueryObjectuiv.