Class PhongRenderer.PolygonInfoEx
java.lang.Object
|
+--FlatRenderer.PolygonInfo
|
+--GouraudRenderer.PolygonInfoEx
|
+--PhongRenderer.PolygonInfoEx
- Enclosing class:
- PhongRenderer
- protected class PhongRenderer.PolygonInfoEx
- extends GouraudRenderer.PolygonInfoEx
Polygon information -- only functions to create instances of
PhongRenderer.EdgeTableEx and ActiveEdgeTable.
|
Method Summary |
Color |
getColor()
Shorthand function to return the base color of this polygon. |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
PhongRenderer.PolygonInfoEx
public PhongRenderer.PolygonInfoEx(Mesh.Polygon poly,
GouraudRenderer.MeshInfo meshInfo,
List lights)
- Constructs the object.
- Parameters:
poly - the polygon associated with this info.meshInfo - the info of the corresponding Mesh object that
owns the polygon.lights - A list of Light objects available in the World.
getColor
public Color getColor()
- Shorthand function to return the base color of this polygon.
- Overrides:
- getColor in class GouraudRenderer.PolygonInfoEx