|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.brackeen.javagamebook.graphics3D.PolygonRenderer
The PolygonRenderer class is an abstract class that transforms and draws polygons onto the screen.
Constructor Summary | |
PolygonRenderer(Transform3D camera,
ViewWindow viewWindow)
Creates a new PolygonRenderer with the specified Transform3D (camera) and ViewWindow. |
|
PolygonRenderer(Transform3D camera,
ViewWindow viewWindow,
boolean clearViewEveryFrame)
Creates a new PolygonRenderer with the specified Transform3D (camera) and ViewWindow. |
Method Summary | |
boolean |
draw(java.awt.Graphics2D g,
Polygon3D poly)
Transforms and draws a polygon. |
void |
endFrame(java.awt.Graphics2D g)
Indicates the end of rendering of a frame. |
Transform3D |
getCamera()
Gets the camera used for this PolygonRenderer. |
void |
startFrame(java.awt.Graphics2D g)
Indicates the start of rendering of a frame. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PolygonRenderer(Transform3D camera, ViewWindow viewWindow)
public PolygonRenderer(Transform3D camera, ViewWindow viewWindow, boolean clearViewEveryFrame)
Method Detail |
public Transform3D getCamera()
public void startFrame(java.awt.Graphics2D g)
public void endFrame(java.awt.Graphics2D g)
public boolean draw(java.awt.Graphics2D g, Polygon3D poly)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |