gestalt.impl.jogl.shape
Class JoglVBOMesh

java.lang.Object
  extended by gestalt.shape.AbstractShape
      extended by gestalt.shape.Mesh
          extended by gestalt.impl.jogl.shape.JoglMesh
              extended by gestalt.impl.jogl.shape.JoglVBOMesh
All Implemented Interfaces:
Disposable, Drawable, java.io.Serializable

public class JoglVBOMesh
extends JoglMesh

See Also:
Serialized Form
To do:
JSR-231 mapping of data is broken when VBO is not supported

Nested Class Summary
static interface JoglVBOMesh.VBOModifier
           
 
Constructor Summary
JoglVBOMesh(float[] theVertices, int theVertexComponents, float[] theColors, int theColorComponents, float[] theTexCoords, int theTexCoordComponents, float[] theNormals, int thePrimitive)
           
 
Method Summary
 void addModifier(JoglVBOMesh.VBOModifier theModifier)
           
 float[] colors()
           
 void dispose(GLContext theRenderContext)
          tries to properly dispose an object.
 void draw(GLContext theRenderContext)
          this method is used to draw the drawable, when the context is ready.
 float[] normals()
           
 boolean removeModifier(JoglVBOMesh.VBOModifier theModifier)
           
 float[] texcoords()
           
 void updateData()
           
 
Methods inherited from class gestalt.impl.jogl.shape.JoglMesh
checkDataIntegrity, getPrimitive, setPrimitive
 
Methods inherited from class gestalt.shape.Mesh
atomcount, drawlength, drawlength, drawstart, drawstart, getLength, getNumberOfColorComponents, getNumberOfTexCoordComponents, getNumberOfVertexComponents, getStart, setLength, setStart, vertices
 
Methods inherited from class gestalt.shape.AbstractShape
add, getSortData, getSortValue, getTransformMode, isActive, isSortable, material, position, position, position, position, rotation, rotation, scale, scale, scale, setActive, setChildContainer, setMaterialRef, setPositionRef, setRotationRef, setScaleRef, setSortValue, setTransformMode, setTransformRef, transform
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoglVBOMesh

public JoglVBOMesh(float[] theVertices,
                   int theVertexComponents,
                   float[] theColors,
                   int theColorComponents,
                   float[] theTexCoords,
                   int theTexCoordComponents,
                   float[] theNormals,
                   int thePrimitive)
Method Detail

addModifier

public void addModifier(JoglVBOMesh.VBOModifier theModifier)

removeModifier

public boolean removeModifier(JoglVBOMesh.VBOModifier theModifier)

colors

public float[] colors()
Overrides:
colors in class Mesh

normals

public float[] normals()
Overrides:
normals in class Mesh

texcoords

public float[] texcoords()
Overrides:
texcoords in class Mesh

draw

public void draw(GLContext theRenderContext)
Description copied from interface: Drawable
this method is used to draw the drawable, when the context is ready. although the behavior sometimes varies and doesn t always need to have a visual representation depending on the implementation.

Specified by:
draw in interface Drawable
Overrides:
draw in class JoglMesh
Parameters:
theRenderContext - GLContext

updateData

public void updateData()
Overrides:
updateData in class JoglMesh

dispose

public void dispose(GLContext theRenderContext)
Description copied from interface: Disposable
tries to properly dispose an object. for example: an opengl texture object would try to remove its opengl counterpart.

Specified by:
dispose in interface Disposable
Overrides:
dispose in class JoglMesh


processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009