zombie.core.VBO
Class GLVertexBufferObject

java.lang.Object
  extended by zombie.core.VBO.GLVertexBufferObject

public class GLVertexBufferObject
extends java.lang.Object

Vertex buffer object wrapper


Constructor Summary
GLVertexBufferObject(int type, int usage)
          C'tor
GLVertexBufferObject(long size, int type, int usage)
          C'tor
 
Method Summary
 void clear()
          Tells the driver we don't care about the data in our buffer any more (may improve performance before mapping)
 void create()
           
 int getID()
           
 boolean isMapped()
           
 java.nio.ByteBuffer map()
           
 java.nio.ByteBuffer map(int size)
           
 void orphan()
           
 void render()
           
 java.lang.String toString()
           
 boolean unmap()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GLVertexBufferObject

public GLVertexBufferObject(long size,
                            int type,
                            int usage)
C'tor


GLVertexBufferObject

public GLVertexBufferObject(int type,
                            int usage)
C'tor

Method Detail

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

public java.nio.ByteBuffer map(int size)

map

public java.nio.ByteBuffer map()

orphan

public void orphan()

unmap

public boolean unmap()

isMapped

public boolean isMapped()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

render

public void render()

getID

public int getID()