Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class ARBVertexArrayObject

extends Object
Class Inheritance
Imports
java.nio.*, org.lwjgl.system.*

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

Modifier and TypeField and Description
public static final int
GL_VERTEX_ARRAY_BINDING

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
glBindVertexArray(int
the name of the vertex array to bind
array
)

Binds a vertex array object

public static void
glDeleteVertexArrays(IntBuffer
an array containing the n names of the objects to be deleted
arrays
)

Deletes vertex array objects.

public static void
glDeleteVertexArrays(int array)

Deletes vertex array objects.

public static void
glDeleteVertexArrays(int[] arrays)

Array version of: DeleteVertexArrays

public static void
glGenVertexArrays(IntBuffer
a buffer in which the generated vertex array object names are stored
arrays
)

Generates vertex array object names.

public static int
glGenVertexArrays()

Generates vertex array object names.

public static void
glGenVertexArrays(int[] arrays)

Array version of: GenVertexArrays

public static boolean
glIsVertexArray(int
a value that may be the name of a vertex array object
array
)

Determines if a name corresponds to a vertex array object.

public static void
nglDeleteVertexArrays(int
the number of vertex array objects to be deleted
n
,
long arrays)

Unsafe version of: DeleteVertexArrays

public static void
nglGenVertexArrays(int
the number of vertex array object names to generate
n
,
long arrays)

Unsafe version of: GenVertexArrays

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_VERTEX_ARRAY_BINDINGback to summary
public static final int GL_VERTEX_ARRAY_BINDING

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.

Constructor Detail

ARBVertexArrayObjectback to summary
protected ARBVertexArrayObject()

Method Detail

glBindVertexArrayback to summary
public static void glBindVertexArray(int array)

Binds a vertex array object

Parameters
array:int

the name of the vertex array to bind

glDeleteVertexArraysback to summary
public static void glDeleteVertexArrays(IntBuffer arrays)

Deletes vertex array objects.

Parameters
arrays:IntBuffer

an array containing the n names of the objects to be deleted

glDeleteVertexArraysback to summary
public static void glDeleteVertexArrays(int array)

Deletes vertex array objects.

glDeleteVertexArraysback to summary
public static void glDeleteVertexArrays(int[] arrays)

Array version of: DeleteVertexArrays

glGenVertexArraysback to summary
public static void glGenVertexArrays(IntBuffer arrays)

Generates vertex array object names.

Parameters
arrays:IntBuffer

a buffer in which the generated vertex array object names are stored

glGenVertexArraysback to summary
public static int glGenVertexArrays()

Generates vertex array object names.

Annotations
@NativeType:void
glGenVertexArraysback to summary
public static void glGenVertexArrays(int[] arrays)

Array version of: GenVertexArrays

glIsVertexArrayback to summary
public static boolean glIsVertexArray(int array)

Determines if a name corresponds to a vertex array object.

Parameters
array:int

a value that may be the name of a vertex array object

Annotations
@NativeType:GLboolean
nglDeleteVertexArraysback to summary
public static void nglDeleteVertexArrays(int n, long arrays)

Unsafe version of: DeleteVertexArrays

Parameters
n:int

the number of vertex array objects to be deleted

nglGenVertexArraysback to summary
public static void nglGenVertexArrays(int n, long arrays)

Unsafe version of: GenVertexArrays

Parameters
n:int

the number of vertex array object names to generate