|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.brackeen.javagamebook.graphics3D.PolygonRenderer
com.brackeen.javagamebook.graphics3D.FastTexturedPolygonRenderer
com.brackeen.javagamebook.graphics3D.ShadedSurfacePolygonRenderer
com.brackeen.javagamebook.bsp2D.SimpleBSPRenderer
The SimpleBSPRenderer class is a renderer capable of drawing polygons in a BSP tree and any polygon objects in the scene. No Z-buffering is used.
Nested Class Summary |
Field Summary |
Fields inherited from class com.brackeen.javagamebook.graphics3D.FastTexturedPolygonRenderer |
INTERP_SIZE, INTERP_SIZE_BITS, SCALE, SCALE_BITS |
Constructor Summary | |
SimpleBSPRenderer(Transform3D camera,
ViewWindow viewWindow)
Creates a new BSP renderer with the specified camera object and view window. |
Method Summary | |
void |
draw(java.awt.Graphics2D g,
BSPTree tree)
Draws the visible polygons in a BSP tree based on the camera location. |
void |
endFrame(java.awt.Graphics2D g)
Indicates the end of rendering of a frame. |
void |
startFrame(java.awt.Graphics2D g)
Indicates the start of rendering of a frame. |
boolean |
visitPolygon(BSPPolygon poly,
boolean isBack)
Visits a BSP polygon. |
Methods inherited from class com.brackeen.javagamebook.graphics3D.PolygonRenderer |
draw, getCamera |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleBSPRenderer(Transform3D camera, ViewWindow viewWindow)
Method Detail |
public void startFrame(java.awt.Graphics2D g)
PolygonRenderer
startFrame
in class FastTexturedPolygonRenderer
public void endFrame(java.awt.Graphics2D g)
PolygonRenderer
endFrame
in class ShadedSurfacePolygonRenderer
public void draw(java.awt.Graphics2D g, BSPTree tree)
public boolean visitPolygon(BSPPolygon poly, boolean isBack)
BSPTreeTraverseListener
visitPolygon
in interface BSPTreeTraverseListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |