com.brackeen.javagamebook.graphics3D
Class FastTexturedPolygonRenderer
java.lang.Object
com.brackeen.javagamebook.graphics3D.PolygonRenderer
com.brackeen.javagamebook.graphics3D.FastTexturedPolygonRenderer
- Direct Known Subclasses:
- ShadedSurfacePolygonRenderer, ShadedTexturedPolygonRenderer
- public class FastTexturedPolygonRenderer
- extends PolygonRenderer
The FastTexturedPolygonRenderer is a PolygonRenderer that
efficiently renders Textures.
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
FastTexturedPolygonRenderer
public FastTexturedPolygonRenderer(Transform3D camera,
ViewWindow viewWindow)
FastTexturedPolygonRenderer
public FastTexturedPolygonRenderer(Transform3D camera,
ViewWindow viewWindow,
boolean clearViewEveryFrame)
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