com.threerings.opengl.renderer.util
Class BatchFactory
java.lang.Object
com.threerings.opengl.renderer.util.BatchFactory
public class BatchFactory
- extends Object
Contains methods to create optimal Batches for rendering various kinds of geometry.
BatchFactory
public BatchFactory()
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.