com.brackeen.javagamebook.graphics3D
Class FastTexturedPolygonRenderer

java.lang.Object
  extended bycom.brackeen.javagamebook.graphics3D.PolygonRenderer
      extended bycom.brackeen.javagamebook.graphics3D.FastTexturedPolygonRenderer
Direct Known Subclasses:
ShadedSurfacePolygonRenderer, ShadedTexturedPolygonRenderer

public class FastTexturedPolygonRenderer
extends PolygonRenderer

The FastTexturedPolygonRenderer is a PolygonRenderer that efficiently renders Textures.


Nested Class Summary
 class FastTexturedPolygonRenderer.Method0
           
 class FastTexturedPolygonRenderer.Method1
           
 class FastTexturedPolygonRenderer.Method2
           
 class FastTexturedPolygonRenderer.Method3
           
 class FastTexturedPolygonRenderer.PowerOf2TextureRenderer
           
 class FastTexturedPolygonRenderer.ScanRenderer
          The ScanRenderer class is an abstract inner class of FastTexturedPolygonRenderer that provides an interface for rendering a horizontal scan line.
 class FastTexturedPolygonRenderer.ShadedSurfaceRenderer
           
 class FastTexturedPolygonRenderer.ShadedTextureRenderer
           
 
Field Summary
static int INTERP_SIZE
           
static int INTERP_SIZE_BITS
           
static int SCALE
           
static int SCALE_BITS
           
 
Constructor Summary
FastTexturedPolygonRenderer(Transform3D camera, ViewWindow viewWindow)
           
FastTexturedPolygonRenderer(Transform3D camera, ViewWindow viewWindow, boolean clearViewEveryFrame)
           
 
Method Summary
 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.
 
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
 

Field Detail

SCALE_BITS

public static final int SCALE_BITS
See Also:
Constant Field Values

SCALE

public static final int SCALE
See Also:
Constant Field Values

INTERP_SIZE_BITS

public static final int INTERP_SIZE_BITS
See Also:
Constant Field Values

INTERP_SIZE

public static final int INTERP_SIZE
See Also:
Constant Field Values
Constructor Detail

FastTexturedPolygonRenderer

public FastTexturedPolygonRenderer(Transform3D camera,
                                   ViewWindow viewWindow)

FastTexturedPolygonRenderer

public FastTexturedPolygonRenderer(Transform3D camera,
                                   ViewWindow viewWindow,
                                   boolean clearViewEveryFrame)
Method Detail

startFrame

public void startFrame(java.awt.Graphics2D g)
Description copied from class: PolygonRenderer
Indicates the start of rendering of a frame. This method should be called every frame before any polygons are drawn.

Overrides:
startFrame in class PolygonRenderer

endFrame

public void endFrame(java.awt.Graphics2D g)
Description copied from class: PolygonRenderer
Indicates the end of rendering of a frame. This method should be called every frame after all polygons are drawn.

Overrides:
endFrame in class PolygonRenderer