gestalt.impl.jogl.shape
Class JoglMesh
java.lang.Object
gestalt.shape.AbstractShape
gestalt.shape.Mesh
gestalt.impl.jogl.shape.JoglMesh
- All Implemented Interfaces:
- Disposable, Drawable, java.io.Serializable
- Direct Known Subclasses:
- JoglVBOMesh
public class JoglMesh
- extends Mesh
- See Also:
- Serialized Form
|
Constructor Summary |
JoglMesh(float[] theVertices,
int theVertexComponents,
float[] theColors,
int theColorComponents,
float[] theTexCoords,
int theTexCoordComponents,
float[] theNormals,
int thePrimitive)
|
| Methods inherited from class gestalt.shape.Mesh |
atomcount, colors, drawlength, drawlength, drawstart, drawstart, getLength, getNumberOfColorComponents, getNumberOfTexCoordComponents, getNumberOfVertexComponents, getStart, normals, setLength, setStart, texcoords, 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 |
JoglMesh
public JoglMesh(float[] theVertices,
int theVertexComponents,
float[] theColors,
int theColorComponents,
float[] theTexCoords,
int theTexCoordComponents,
float[] theNormals,
int thePrimitive)
setPrimitive
public void setPrimitive(int theGestaltPrimitive)
- Specified by:
setPrimitive in class Mesh
getPrimitive
public int getPrimitive()
- Specified by:
getPrimitive in class Mesh
updateData
public void updateData()
- Specified by:
updateData in class Mesh
checkDataIntegrity
public boolean checkDataIntegrity()
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.
- Parameters:
theRenderContext - GLContext
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.
processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009