Class GLVertexBufferObject
java.lang.Object
zombie.core.VBO.GLVertexBufferObject
Vertex buffer object wrapper
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGLVertexBufferObject(int type, int usage) C'torGLVertexBufferObject(long size, int type, int usage) C'tor -
Method Summary
Modifier and TypeMethodDescriptionvoidbind()voidbindNone()voidbufferData(ByteBuffer data) voidclear()Tells the driver we don't care about the data in our buffer any more (may improve performance before mapping)voidcreate()voidvoidenableVertexAttribArray(int index) intgetID()static voidinit()booleanisMapped()map()map(int size) voidorphan()toString()booleanunmap()
-
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()
-