|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.jagrlib.piece.RenderDepthBuffer.PolyEdge
protected static class RenderDepthBuffer.PolyEdge
Polygon edge.
Field Summary | |
---|---|
int |
bottomV
Handle of the bottom vertex. |
int |
count
Number of hlines to draw. |
double |
du
U difference between two adjacent hlines. |
double |
dv
V difference between two adjacent hlines. |
double |
dx
X difference between two adjacent hlines. |
double |
dz
Z difference between two adjacent hlines. |
int |
topV
Handle of the top vertex. |
double |
u
Texture U-coordinate of the edge-hline intersection. |
double |
v
Texture V-coordinate of the edge-hline intersection. |
double |
x
X-coordinate of the edge-hline intersection. |
int |
y0
Starting Y-coordinate. |
double |
z
Z-coordinate of the edge-hline intersection. |
Constructor Summary | |
---|---|
RenderDepthBuffer.PolyEdge(double[] p1,
double[] tex1,
double[] p2,
double[] tex2,
boolean correctInterpolation)
Common constructor for flat shader and texture shader. |
|
RenderDepthBuffer.PolyEdge(double[] p1,
int h1,
double[] p2,
int h2,
boolean correctInterpolation)
Common constructor for Gouraud/Phong shader and every other interpolating shader. |
Method Summary | |
---|---|
int |
compareTo(RenderDepthBuffer.PolyEdge o)
Natural ordering: [ y0, x ]. |
void |
next()
Prepare the edge record for the next line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int y0
public double x
public double dx
public double z
public double dz
public double u
public double du
public double v
public double dv
public int count
public int topV
public int bottomV
Constructor Detail |
---|
public RenderDepthBuffer.PolyEdge(double[] p1, double[] tex1, double[] p2, double[] tex2, boolean correctInterpolation)
public RenderDepthBuffer.PolyEdge(double[] p1, int h1, double[] p2, int h2, boolean correctInterpolation)
Method Detail |
---|
public void next()
public int compareTo(RenderDepthBuffer.PolyEdge o)
compareTo
in interface Comparable<RenderDepthBuffer.PolyEdge>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |