Class ARBVertexArrayObject


  • public class ARBVertexArrayObject
    extends java.lang.Object
    Native bindings to the ARB_vertex_array_object extension.

    This extension introduces named vertex array objects which encapsulate vertex array state on the client side. These objects allow applications to rapidly switch between large sets of array state. In addition, layered libraries can return to the default array state by simply creating and binding a new vertex array object.

    This extension differs from GL_APPLE_vertex_array_object in that client memory cannot be accessed through a non-zero vertex array object. It also differs in that vertex array objects are explicitly not sharable between contexts.

    Promoted to core in OpenGL 3.0.

    • Field Detail

      • GL_VERTEX_ARRAY_BINDING

        public static final int GL_VERTEX_ARRAY_BINDING
        Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
        See Also:
        Constant Field Values
    • Method Detail

      • glBindVertexArray

        public static void glBindVertexArray​(int array)
        Binds a vertex array object
        Parameters:
        array - the name of the vertex array to bind
      • nglDeleteVertexArrays

        public static void nglDeleteVertexArrays​(int n,
                                                 long arrays)
        Unsafe version of: DeleteVertexArrays
        Parameters:
        n - the number of vertex array objects to be deleted
      • glDeleteVertexArrays

        public static void glDeleteVertexArrays​(java.nio.IntBuffer arrays)
        Deletes vertex array objects.
        Parameters:
        arrays - an array containing the n names of the objects to be deleted
      • glDeleteVertexArrays

        public static void glDeleteVertexArrays​(int array)
        Deletes vertex array objects.
      • nglGenVertexArrays

        public static void nglGenVertexArrays​(int n,
                                              long arrays)
        Unsafe version of: GenVertexArrays
        Parameters:
        n - the number of vertex array object names to generate
      • glGenVertexArrays

        public static void glGenVertexArrays​(java.nio.IntBuffer arrays)
        Generates vertex array object names.
        Parameters:
        arrays - a buffer in which the generated vertex array object names are stored
      • glGenVertexArrays

        public static int glGenVertexArrays()
        Generates vertex array object names.
      • glIsVertexArray

        public static boolean glIsVertexArray​(int array)
        Determines if a name corresponds to a vertex array object.
        Parameters:
        array - a value that may be the name of a vertex array object
      • glDeleteVertexArrays

        public static void glDeleteVertexArrays​(int[] arrays)
        Array version of: DeleteVertexArrays
      • glGenVertexArrays

        public static void glGenVertexArrays​(int[] arrays)
        Array version of: GenVertexArrays