net.nexttext.renderer
Class G3DTextPageRenderer
java.lang.Object
net.nexttext.renderer.TextPageRenderer
net.nexttext.renderer.G3DTextPageRenderer
- Direct Known Subclasses:
- OpenGLTextPageRenderer, P3DTextPageRenderer
public abstract class G3DTextPageRenderer
- extends TextPageRenderer
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
G3DTextPageRenderer
public G3DTextPageRenderer(processing.core.PApplet p,
float curveDetail)
- Builds a G3DTextPageRenderer.
- Parameters:
p
- the parent PAppletcurveDetail
- 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 PAppletg
- the PGraphicscurveDetail
- level of detail for curve approximation
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