Package heronarts.glx
Class VertexBuffer
java.lang.Object
heronarts.glx.VertexBuffer
- Direct Known Subclasses:
VertexBuffer.UnitCube
,VertexBuffer.UnitCubeEdges
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
ConstructorDescriptionVertexBuffer
(GLX glx, int numVertices) VertexBuffer
(GLX glx, int numVertices, int attributes) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
bufferData
(ByteBuffer buffer) void
dispose()
short
int
protected void
putTex2d
(float u, float v) static void
putTex2d
(ByteBuffer buffer, float u, float v) protected void
putVertex
(float x, float y, float z) static void
putVertex
(ByteBuffer buffer, float x, float y, float z)
-
Constructor Details
-
VertexBuffer
-
VertexBuffer
-
-
Method Details
-
bufferData
-
putVertex
protected void putVertex(float x, float y, float z) -
putVertex
-
putTex2d
protected void putTex2d(float u, float v) -
putTex2d
-
getHandle
public short getHandle() -
getNumVertices
public int getNumVertices() -
dispose
public void dispose()
-