Class GouraudRenderer.EdgeEntryEx
java.lang.Object
|
+--FlatRenderer.EdgeEntry
|
+--GouraudRenderer.EdgeEntryEx
- Enclosing class:
- GouraudRenderer
- protected static class GouraudRenderer.EdgeEntryEx
- extends FlatRenderer.EdgeEntry
Extended edge entry containing intensity information at each entry.
|
Field Summary |
protected float[] |
endIntensity
The ending intensity value at (xmax,ymax). |
protected float[] |
startIntensity
The starting intensity value at (xmin,ymin). |
|
Method Summary |
float[] |
getEndIntensity()
Returns the intensity of the polygon vertice at (xmax,ymax). |
float[] |
getStartIntensity()
Returns the intensity of the polygon vertice at (xmin,ymin). |
| Methods inherited from class FlatRenderer.EdgeEntry |
getDenominator,
getNumerator,
getOwner,
getX,
getXMin,
getYMax,
getYMin,
isHorizontal,
isVertical,
nextX,
toString |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
startIntensity
protected float[] startIntensity
- The starting intensity value at (xmin,ymin).
[0] = Red, [1] = Green, [2] = Blue.
Each ranges 0-1.
endIntensity
protected float[] endIntensity
- The ending intensity value at (xmax,ymax).
[0] = Red, [1] = Green, [2] = Blue.
Each ranges 0-1.
GouraudRenderer.EdgeEntryEx
public GouraudRenderer.EdgeEntryEx(Mesh.Polygon poly,
int xmin,
int ymin,
int xmax,
int ymax,
float[] startIntensity,
float[] endIntensity)
- Constructs the entry for an edge.
- Parameters:
poly - the owner of this edge.xmin - the x coordinate of the lower point in the edge.ymin - the y coordinate of the lower point in the edge.xmax - the x coordinate of the upper point in the edge.ymax - the y coordinate of the upper point in the edge.startIntensity - the starting intensity value of the polygon
vertice at (xmin,ymin). The intensity
values are [0]=R, [1]=G, [2]=B. which
ranges from 0-1.endIntensity - the ending intensity value of the polygon
vertice at (xmax,ymax). The intensity values
are [0]=R, [1]=G, [2]=B which ranges from 0-1.
getStartIntensity
public float[] getStartIntensity()
- Returns the intensity of the polygon vertice at (xmin,ymin).
- Returns:
- intensity values, [0]=R, [1]=G, [2]=B. which ranges from 0-1.
getEndIntensity
public float[] getEndIntensity()
- Returns the intensity of the polygon vertice at (xmax,ymax).
- Returns:
- intensity values, [0]=R, [1]=G, [2]=B. which ranges from 0-1.