gestalt.impl.jogl.shape
Class JoglVBOMesh
java.lang.Object
gestalt.shape.AbstractShape
gestalt.shape.Mesh
gestalt.impl.jogl.shape.JoglMesh
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
|
Constructor Summary |
JoglVBOMesh(float[] theVertices,
int theVertexComponents,
float[] theColors,
int theColorComponents,
float[] theTexCoords,
int theTexCoordComponents,
float[] theNormals,
int thePrimitive)
|
| 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 |
JoglVBOMesh
public JoglVBOMesh(float[] theVertices,
int theVertexComponents,
float[] theColors,
int theColorComponents,
float[] theTexCoords,
int theTexCoordComponents,
float[] theNormals,
int thePrimitive)
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