|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.scenegraph.utils.GeomDrawUtil
public class GeomDrawUtil
The GeomDrawUtil is a utility class, that allows for
drawing a geometry, i.e. creating a geometry through step-by-step
drawig instructions.
| Field Summary | |
|---|---|
static int |
CHANGE_COLORS
|
static int |
CHANGE_COORDINATES
The following are used for building a mask of what you are planning on changing during the drawing cycle. |
static int |
CHANGE_NORMALS
|
static int |
CHANGE_TEXCOORDS
|
| Constructor Summary | |
|---|---|
GeomDrawUtil(GeomContainer geom)
|
|
| Method Summary | |
|---|---|
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. |
int |
newVertex()
Starts a new vertex to be updated. |
void |
setColor(byte r,
byte g,
byte b)
|
void |
setColor(byte r,
byte g,
byte b,
byte a)
|
void |
setColor(org.openmali.vecmath2.Colorf color)
|
void |
setColor(float r,
float g,
float b)
|
void |
setColor(float r,
float g,
float b,
float a)
|
void |
setCoordinate(float x,
float y,
float z)
|
void |
setCoordinate(org.openmali.vecmath2.Tuple3f p)
Sets the current coordinate's value. |
void |
setGeom(GeomContainer geom)
|
void |
setNormal(float x,
float y,
float z)
|
void |
setNormal(org.openmali.vecmath2.Vector3f normal)
|
void |
setTexCoord(int unit,
float s)
|
void |
setTexCoord(int unit,
float s,
float t)
|
void |
setTexCoord(int unit,
float s,
float t,
float p)
|
void |
setTexCoord(int unit,
float s,
float t,
float p,
float q)
|
void |
setTexCoord(int unit,
org.openmali.vecmath2.TexCoord1f t)
|
void |
setTexCoord(int unit,
org.openmali.vecmath2.TexCoord2f t)
|
void |
setTexCoord(int unit,
org.openmali.vecmath2.TexCoord3f t)
|
void |
setTexCoord(int unit,
org.openmali.vecmath2.TexCoord4f t)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CHANGE_COORDINATES
public static final int CHANGE_NORMALS
public static final int CHANGE_COLORS
public static final int CHANGE_TEXCOORDS
| Constructor Detail |
|---|
public GeomDrawUtil(GeomContainer geom)
| Method Detail |
|---|
public void setGeom(GeomContainer geom)
public void drawStart(int mask)
mask - The bitmask of things which can change.public void drawStart()
public int newVertex()
public void setCoordinate(org.openmali.vecmath2.Tuple3f p)
p -
public void setCoordinate(float x,
float y,
float z)
public void setNormal(float x,
float y,
float z)
public void setNormal(org.openmali.vecmath2.Vector3f normal)
public void setColor(org.openmali.vecmath2.Colorf color)
public void setColor(float r,
float g,
float b)
public void setColor(float r,
float g,
float b,
float a)
public void setColor(byte r,
byte g,
byte b)
public void setColor(byte r,
byte g,
byte b,
byte a)
public void setTexCoord(int unit,
org.openmali.vecmath2.TexCoord1f t)
public void setTexCoord(int unit,
org.openmali.vecmath2.TexCoord2f t)
public void setTexCoord(int unit,
org.openmali.vecmath2.TexCoord3f t)
public void setTexCoord(int unit,
org.openmali.vecmath2.TexCoord4f t)
public void setTexCoord(int unit,
float s)
public void setTexCoord(int unit,
float s,
float t)
public void setTexCoord(int unit,
float s,
float t,
float p)
public void setTexCoord(int unit,
float s,
float t,
float p,
float q)
public void drawEnd()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||