|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GeomInterface
This interface defines a standard set of methods for interacting with dynamic geometry while hiding the underlying implementation.
| Method Summary | |
|---|---|
void |
addData(float[] coordData,
float[] texCoordData,
float[] normalData,
float[] colorData)
Super fast method add a bunch of data right into the data elements |
void |
addData(org.openmali.vecmath2.Tuple3f translate,
int numCoords,
float[] coordData,
float[] texCoordData,
float[] normalData,
float alpha)
Super fast method for moving a bunch of data into the data elements. |
void |
addData(org.openmali.vecmath2.Tuple3f translate,
int numCoords,
float[] coordData,
float[] texCoordData,
float[] normalData,
float[] colorData)
Super fast method for moving a bunch of data into the data elements. |
void |
drawEnd()
Ends the drawing cycle and commits the geometry changes to the 3d card. |
void |
drawStart()
Resets the vertices back to zero and sets the types of changes that will be made during the drawing cycle. |
void |
drawStart(int mask)
Resets the vertices back to zero and sets the types of changes that will be made during the drawing cycle. |
GeometryArray |
getGeometry()
|
int |
getNumVertices()
|
int |
getValidVertexCount()
|
int |
newVertex()
Starts a new vertex to be updated. |
void |
setColor(byte x,
byte y,
byte z)
|
void |
setColor(byte x,
byte y,
byte z,
byte a)
|
void |
setColor(org.openmali.vecmath2.Colorf color)
|
void |
setColor(float x,
float y,
float z)
|
void |
setCoordinate(float x,
float y,
float z)
|
void |
setCoordinate(org.openmali.vecmath2.Tuple3f p)
|
void |
setNormal(float x,
float y,
float z)
|
void |
setNormal(org.openmali.vecmath2.Vector3f normal)
|
void |
setTexCoord(int unit,
float u,
float v)
|
void |
setTexCoord(int unit,
org.openmali.vecmath2.TexCoord2f t)
|
void |
update()
This method must be provided by users to draw the geometry. |
| Methods inherited from interface org.xith3d.scenegraph.GeometryUpdater |
|---|
updateData |
| Method Detail |
|---|
void drawStart(int mask)
mask - The bitmask of things which can change.void drawStart()
int newVertex()
void drawEnd()
void setCoordinate(org.openmali.vecmath2.Tuple3f p)
void setCoordinate(float x,
float y,
float z)
void setTexCoord(int unit,
org.openmali.vecmath2.TexCoord2f t)
void setTexCoord(int unit,
float u,
float v)
void setColor(org.openmali.vecmath2.Colorf color)
void setColor(float x,
float y,
float z)
void setColor(byte x,
byte y,
byte z)
void setColor(byte x,
byte y,
byte z,
byte a)
void setNormal(org.openmali.vecmath2.Vector3f normal)
void setNormal(float x,
float y,
float z)
void addData(float[] coordData,
float[] texCoordData,
float[] normalData,
float[] colorData)
void addData(org.openmali.vecmath2.Tuple3f translate,
int numCoords,
float[] coordData,
float[] texCoordData,
float[] normalData,
float[] colorData)
void addData(org.openmali.vecmath2.Tuple3f translate,
int numCoords,
float[] coordData,
float[] texCoordData,
float[] normalData,
float alpha)
GeometryArray getGeometry()
void update()
int getValidVertexCount()
int getNumVertices()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||