com.threerings.opengl.renderer.util
Class BatchFactory

java.lang.Object
  extended by com.threerings.opengl.renderer.util.BatchFactory

public class BatchFactory
extends Object

Contains methods to create optimal Batches for rendering various kinds of geometry.


Constructor Summary
BatchFactory()
           
 
Method Summary
static SimpleBatch createLineBatch(Renderer renderer, FloatBuffer vbuf)
          Creates a batch containing the specified array of lines.
static SimpleBatch createTriangleBatchT2N3V3(Renderer renderer, FloatBuffer vbuf, ShortBuffer ibuf)
          Creates a batch containing the specified triangles (whose texture coordinates, normals, and vertices are packed as in the GL11.GL_T2F_N3F_V3F interleaved format).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchFactory

public BatchFactory()
Method Detail

createLineBatch

public static SimpleBatch createLineBatch(Renderer renderer,
                                          FloatBuffer vbuf)
Creates a batch containing the specified array of lines.


createTriangleBatchT2N3V3

public static SimpleBatch createTriangleBatchT2N3V3(Renderer renderer,
                                                    FloatBuffer vbuf,
                                                    ShortBuffer ibuf)
Creates a batch containing the specified triangles (whose texture coordinates, normals, and vertices are packed as in the GL11.GL_T2F_N3F_V3F interleaved format).



Copyright © 2011. All Rights Reserved.