jjdh API

jjdh.opengl.engine.buffers
Class VertexArrayJob

java.lang.Object
  extended by jjdh.opengl.engine.buffers.VertexArrayJob
All Implemented Interfaces:
Renderable

public class VertexArrayJob
extends Object
implements Renderable


Field Summary
protected  List<GLBuffer> buffers
           
protected  NormalGenerator generator
           
protected  boolean isVBO
           
protected  List<BufferTask> tasks
           
 
Constructor Summary
VertexArrayJob()
           
 
Method Summary
 void addBuffer(GLBuffer buffer)
           
 void addTask(BufferTask task)
           
 void addTask(IndexBuffer indexBuffer, int glMode)
           
 void addTask(SpecializedIndexBuffer indexBuffer)
           
 void bind(javax.media.opengl.GL gl, boolean bind)
           
 void compile()
           
 ColorBuffer createColorBuffer(int capacity)
           
 QuadBuffer createQuadBuffer(int capacity, int glMode)
           
 TextureBuffer createTextureBuffer(int capacity)
           
 TriangleBuffer createTriangleBuffer(int capacity, int glMode)
           
 VertexBuffer createVertexBuffer(int capacity)
           
 void enableAutomaticNormals(boolean enable)
           
 void render(javax.media.opengl.GL gl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tasks

protected List<BufferTask> tasks

buffers

protected List<GLBuffer> buffers

generator

protected NormalGenerator generator

isVBO

protected boolean isVBO
Constructor Detail

VertexArrayJob

public VertexArrayJob()
Method Detail

enableAutomaticNormals

public void enableAutomaticNormals(boolean enable)

createVertexBuffer

public VertexBuffer createVertexBuffer(int capacity)

createTextureBuffer

public TextureBuffer createTextureBuffer(int capacity)

createColorBuffer

public ColorBuffer createColorBuffer(int capacity)

createTriangleBuffer

public TriangleBuffer createTriangleBuffer(int capacity,
                                           int glMode)

createQuadBuffer

public QuadBuffer createQuadBuffer(int capacity,
                                   int glMode)

addBuffer

public void addBuffer(GLBuffer buffer)

addTask

public void addTask(BufferTask task)

addTask

public void addTask(IndexBuffer indexBuffer,
                    int glMode)

addTask

public void addTask(SpecializedIndexBuffer indexBuffer)

compile

public void compile()

bind

public void bind(javax.media.opengl.GL gl,
                 boolean bind)
Parameters:
gl -
bind -

render

public final void render(javax.media.opengl.GL gl)
Specified by:
render in interface Renderable

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.