Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class EXTCompiledVertexArray

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

Native bindings to the EXT_compiled_vertex_array extension.

This extension defines an interface which allows static vertex array data to be cached or pre-compiled for more efficient rendering. This is useful for implementations which can cache the transformed results of array data for reuse by several DrawArrays, ArrayElement, or DrawElements commands. It is also useful for implementations which can transfer array data to fast memory for more efficient processing.

For example, rendering an M by N mesh of quadrilaterals can be accomplished by setting up vertex arrays containing all of the vertexes in the mesh and issuing M DrawElements commands each of which operate on 2 * N vertexes. Each DrawElements command after the first will share N vertexes with the preceding DrawElements command. If the vertex array data is locked while the DrawElements commands are executed, then OpenGL may be able to transform each of these shared vertexes just once.

Field Summary

Modifier and TypeField and Description
public static final int
GL_ARRAY_ELEMENT_LOCK_COUNT_EXT

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

public static final int
GL_ARRAY_ELEMENT_LOCK_FIRST_EXT

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 native void
glLockArraysEXT(int first, int count)

public static native void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_ARRAY_ELEMENT_LOCK_COUNT_EXTback to summary
public static final int GL_ARRAY_ELEMENT_LOCK_COUNT_EXT

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

GL_ARRAY_ELEMENT_LOCK_FIRST_EXTback to summary
public static final int GL_ARRAY_ELEMENT_LOCK_FIRST_EXT

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

Constructor Detail

EXTCompiledVertexArrayback to summary
protected EXTCompiledVertexArray()

Method Detail

glLockArraysEXTback to summary
public static native void glLockArraysEXT(int first, int count)
glUnlockArraysEXTback to summary
public static native void glUnlockArraysEXT()