Package zombie.core.VBO
Class GLVertexBufferObject
java.lang.Object
zombie.core.VBO.GLVertexBufferObject
Vertex buffer object wrapper
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGLVertexBufferObject
(int type, int usage) C'torGLVertexBufferObject
(long size, int type, int usage) C'tor -
Method Summary
Modifier and TypeMethodDescriptionvoid
bind()
void
bindNone()
void
bufferData
(ByteBuffer data) void
clear()
Tells the driver we don't care about the data in our buffer any more (may improve performance before mapping)void
create()
void
void
enableVertexAttribArray
(int index) int
getID()
static void
init()
boolean
isMapped()
map()
map
(int size) void
orphan()
toString()
boolean
unmap()
-
Field Details
-
funcs
-
-
Constructor Details
-
GLVertexBufferObject
public GLVertexBufferObject(long size, int type, int usage) C'tor -
GLVertexBufferObject
public GLVertexBufferObject(int type, int usage) C'tor
-
-
Method Details
-
init
public static void init() -
create
public void create() -
clear
public void clear()Tells the driver we don't care about the data in our buffer any more (may improve performance before mapping) -
map
-
map
-
orphan
public void orphan() -
unmap
public boolean unmap() -
isMapped
public boolean isMapped() -
bufferData
-
toString
-
bind
public void bind() -
bindNone
public void bindNone() -
getID
public int getID() -
enableVertexAttribArray
public void enableVertexAttribArray(int index) -
disableVertexAttribArray
public void disableVertexAttribArray()
-