Class GLVertexBufferObject

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

public class GLVertexBufferObject extends Object
Vertex buffer object wrapper
  • Field Details

  • 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

      public ByteBuffer map(int size)
    • map

      public ByteBuffer map()
    • orphan

      public void orphan()
    • unmap

      public boolean unmap()
    • isMapped

      public boolean isMapped()
    • bufferData

      public void bufferData(ByteBuffer data)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • bind

      public void bind()
    • bindNone

      public void bindNone()
    • getID

      public int getID()
    • enableVertexAttribArray

      public void enableVertexAttribArray(int index)
    • disableVertexAttribArray

      public void disableVertexAttribArray()