de.matthiasmann.twl.renderer.lwjgl
Class VertexArray

java.lang.Object
  extended by de.matthiasmann.twl.renderer.lwjgl.VertexArray

public class VertexArray
extends java.lang.Object

Simple vertex array class.

This class manages an interleaved vertex array in float format: tx, ty, x, y


Constructor Summary
VertexArray()
           
 
Method Summary
 java.nio.FloatBuffer allocate(int maxQuads)
           
 void bind()
           
 void drawQuads(int start, int count)
           
 void drawVertices(int start, int count)
           
 void unbind()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VertexArray

public VertexArray()
Method Detail

allocate

public java.nio.FloatBuffer allocate(int maxQuads)

bind

public void bind()

drawVertices

public void drawVertices(int start,
                         int count)

drawQuads

public void drawQuads(int start,
                      int count)

unbind

public void unbind()