Added alternative VertexAttribPointer with ByteBuffer data and explicit type.
This commit is contained in:
parent
38ce21abeb
commit
3118499020
|
@ -32,7 +32,6 @@
|
|||
package org.lwjgl.opengl;
|
||||
|
||||
import org.lwjgl.util.generator.*;
|
||||
import org.lwjgl.util.generator.Alternate;
|
||||
import org.lwjgl.util.generator.opengl.*;
|
||||
|
||||
import java.nio.*;
|
||||
|
@ -141,6 +140,13 @@ public interface ARB_vertex_shader {
|
|||
@GLfloat
|
||||
@GLdouble Buffer buffer);
|
||||
|
||||
@Alternate("glVertexAttribPointerARB")
|
||||
void glVertexAttribPointerARB(@GLuint int index, int size, @GLenum int type, boolean normalized, @GLsizei int stride,
|
||||
@CachedReference(index = "index", name = "glVertexAttribPointer_buffer")
|
||||
@BufferObject(BufferKind.ArrayVBO)
|
||||
@Check
|
||||
@Const ByteBuffer buffer);
|
||||
|
||||
void glEnableVertexAttribArrayARB(@GLuint int index);
|
||||
|
||||
void glDisableVertexAttribArrayARB(@GLuint int index);
|
||||
|
|
|
@ -367,6 +367,13 @@ public interface GL20 {
|
|||
@GLfloat
|
||||
@GLdouble Buffer buffer);
|
||||
|
||||
@Alternate("glVertexAttribPointer")
|
||||
void glVertexAttribPointer(@GLuint int index, int size, @GLenum int type, boolean normalized, @GLsizei int stride,
|
||||
@CachedReference(index = "index", name = "glVertexAttribPointer_buffer")
|
||||
@BufferObject(BufferKind.ArrayVBO)
|
||||
@Check
|
||||
@Const ByteBuffer buffer);
|
||||
|
||||
void glEnableVertexAttribArray(@GLuint int index);
|
||||
|
||||
void glDisableVertexAttribArray(@GLuint int index);
|
||||
|
|
Loading…
Reference in New Issue