net.nexttext.renderer
Class G3DTextPageRenderer

java.lang.Object
  extended by net.nexttext.renderer.TextPageRenderer
      extended by net.nexttext.renderer.G3DTextPageRenderer
Direct Known Subclasses:
OpenGLTextPageRenderer, P3DTextPageRenderer

public abstract class G3DTextPageRenderer
extends TextPageRenderer


Nested Class Summary
static class G3DTextPageRenderer.RendererType
          Renderer type enumeration.
 
Constructor Summary
G3DTextPageRenderer(processing.core.PApplet p, float curveDetail)
          Builds a G3DTextPageRenderer.
G3DTextPageRenderer(processing.core.PApplet p, processing.core.PGraphics g, float curveDetail)
          Builds a G3DTextPageRenderer.
 
Method Summary
 void renderPage(TextPage textPage)
          The rendering loop.
 
Methods inherited from class net.nexttext.renderer.TextPageRenderer
getPApplet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

G3DTextPageRenderer

public G3DTextPageRenderer(processing.core.PApplet p,
                           float curveDetail)
Builds a G3DTextPageRenderer.

Parameters:
p - the parent PApplet
curveDetail - level of detail for curve approximation

G3DTextPageRenderer

public G3DTextPageRenderer(processing.core.PApplet p,
                           processing.core.PGraphics g,
                           float curveDetail)
Builds a G3DTextPageRenderer.

Parameters:
p - the parent PApplet
g - the PGraphics
curveDetail - level of detail for curve approximation
Method Detail

renderPage

public void renderPage(TextPage textPage)
The rendering loop. Takes as input a TextPage and traverses its root node, rendering all the TextObjectGlyph objects along the way.

Specified by:
renderPage in class TextPageRenderer
Parameters:
textPage - the TextPage to render