Package org.lwjgl.opengl
Class ARBVertexArrayObject
- java.lang.Object
-
- org.lwjgl.opengl.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 Summary
Fields Modifier and Type Field and Description static int
GL_VERTEX_ARRAY_BINDING
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static void
glBindVertexArray(int array)
Binds a vertex array objectstatic void
glDeleteVertexArrays(int array)
Deletes vertex array objects.static void
glDeleteVertexArrays(int[] arrays)
Array version of:DeleteVertexArrays
static void
glDeleteVertexArrays(java.nio.IntBuffer arrays)
Deletes vertex array objects.static int
glGenVertexArrays()
Generates vertex array object names.static void
glGenVertexArrays(int[] arrays)
Array version of:GenVertexArrays
static void
glGenVertexArrays(java.nio.IntBuffer arrays)
Generates vertex array object names.static boolean
glIsVertexArray(int array)
Determines if a name corresponds to a vertex array object.
-
-
-
Field Detail
-
GL_VERTEX_ARRAY_BINDING
public static final int GL_VERTEX_ARRAY_BINDING
Accepted by thepname
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
-
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.
-
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
-
-