Package heronarts.glx

Class VertexBuffer

java.lang.Object
heronarts.glx.VertexBuffer
Direct Known Subclasses:
VertexBuffer.UnitCube, VertexBuffer.UnitCubeEdges

public abstract class VertexBuffer extends Object
  • Constructor Details

    • VertexBuffer

      public VertexBuffer(GLX glx, int numVertices)
    • VertexBuffer

      public VertexBuffer(GLX glx, int numVertices, int attributes)
  • Method Details

    • bufferData

      protected abstract void bufferData(ByteBuffer buffer)
    • putVertex

      protected void putVertex(float x, float y, float z)
    • putVertex

      public static void putVertex(ByteBuffer buffer, float x, float y, float z)
    • putTex2d

      protected void putTex2d(float u, float v)
    • putTex2d

      public static void putTex2d(ByteBuffer buffer, float u, float v)
    • getHandle

      public short getHandle()
    • getNumVertices

      public int getNumVertices()
    • dispose

      public void dispose()