|
Jazz3D API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sygem.jazz3d3.Shape
Base face class. Provides common functionality for faces.
Constructor Summary | |
Shape(int v1,
int v2,
int v3,
int r,
int g,
int b)
Default constructor. |
Method Summary | |
boolean |
getDoubleSided()
Returns whether or not this face is double-sided. |
Vertex |
getFaceNormal()
Returns the normal vector for this face. |
int |
getTransparency()
Get the transparency value of this face. |
double |
getU(int u,
boolean wrap)
Get the U value of a particular vertex in this face |
double |
getV(int v,
boolean wrap)
Get the V value of a particular vertex in this face |
int |
getVertexID(int vert)
Returns a vertex ID from this face. |
void |
setColour(int r,
int g,
int b)
Set the colour of this face. |
void |
setDoubleSided(boolean ds)
Set this face to be double-sided (culling not applied). |
void |
setFaceNormal(Vertex norm)
Set the normal vector for this face. |
void |
setTransparency(int tr)
Set the transparency value of this face. |
void |
setUV(double u1,
double v1,
double u2,
double v2,
double u3,
double v3,
double u4,
double v4)
Set the UV coordinates of a face. |
void |
setWrapUV(double u1,
double v1,
double u2,
double v2,
double u3,
double v3,
double u4,
double v4)
Set the UV coordinates of a face when using UV wrapping. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Shape(int v1, int v2, int v3, int r, int g, int b)
Method Detail |
public final void setUV(double u1, double v1, double u2, double v2, double u3, double v3, double u4, double v4)
public final void setWrapUV(double u1, double v1, double u2, double v2, double u3, double v3, double u4, double v4)
public final double getU(int u, boolean wrap)
u
- A value between 1 & 4 - the vertex being queriedwrap
- Set to true if you want the UV wrapping co-ordpublic final double getV(int v, boolean wrap)
v
- A value between 1 & 4 - the vertex being queriedwrap
- Set to true if you want the UV wrapping co-ordpublic final void setTransparency(int tr)
Note: This is only used by the transparent renderer.
RenderTransparent
public final int getTransparency()
Note: This is only used by the transparent renderer.
RenderTransparent
public final void setColour(int r, int g, int b)
r
- The red component of the new colour (0 - 255)g
- The green component of the new colour (0 - 255)b
- The blue component of the new colour (0 - 255)Object3d.setFaceColour(int, int, int, int)
public final Vertex getFaceNormal()
setFaceNormal(com.sygem.jazz3d3.Vertex)
public final void setFaceNormal(Vertex norm)
norm
- The new face normalgetFaceNormal()
public final void setDoubleSided(boolean ds)
public final boolean getDoubleSided()
public final int getVertexID(int vert)
|
©2001 SyGem Software |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |