lower opengl requirement to 2.1 when higher versions are unsupported #21
+14
-1
@@ -12,10 +12,23 @@ import static org.lwjgl.system.MemoryUtil.memAddress;
|
||||
|
||||
/**
|
||||
* Native bindings to the <a href="https://registry.khronos.org/OpenGL/extensions/APPLE/APPLE_vertex_array_object.txt">APPLE_vertex_array_object</a> extension.
|
||||
* <p>This extension introduces named vertex array objects which encapsulate vertex array state on the client side.
|
||||
* The main purpose of these objects is to keep pointers to static vertex data and provide a name for different sets of static vertex data.</p>
|
||||
*
|
||||
* <p>By extending vertex array range functionality this extension allows multiple vertex array ranges to exist at one time,
|
||||
* including their complete sets of state, in manner analogous to texture objects.</p>
|
||||
*
|
||||
* <p>GenVertexArraysAPPLE creates a list of n number of vertex array object names. After creating a name,
|
||||
* BindVertexArrayAPPLE associates the name with a vertex array object and selects this vertex array and its associated state as current.
|
||||
* To get back to the default vertex array and its associated state the client should bind to vertex array named 0.</p>
|
||||
*
|
||||
* <p>Once a client is done using a vertex array object it can be deleted with DeleteVertexArraysAPPLE.
|
||||
* The client is responsible for allocating and deallocating the memory used by the vertex array data,
|
||||
* while the DeleteVertexArraysAPPLE command deletes vertex array object names and associated state only.</p>
|
||||
*/
|
||||
public class APPLEVertexArrayObject {
|
||||
private static final long bindVertexArray = GL.getFunctionProvider().getFunctionAddress("glBindVertexArrayAPPLE");
|
||||
private static final long deleteVertexArrays = GL.getFunctionProvider().getFunctionAddress("glDeleteVertexArrays");
|
||||
private static final long deleteVertexArrays = GL.getFunctionProvider().getFunctionAddress("glDeleteVertexArraysAPPLE");
|
||||
private static final long genVertexArrays = GL.getFunctionProvider().getFunctionAddress("glGenVertexArraysAPPLE");
|
||||
private static final long isVertexArray = GL.getFunctionProvider().getFunctionAddress("glIsVertexArrayAPPLE");
|
||||
|
||||
|
||||
Reference in new issue
Block a user