net.nexttext.renderer
Class OpenGLTextPageRenderer

java.lang.Object
  extended by net.nexttext.renderer.TextPageRenderer
      extended by net.nexttext.renderer.G3DTextPageRenderer
          extended by net.nexttext.renderer.OpenGLTextPageRenderer

public class OpenGLTextPageRenderer
extends G3DTextPageRenderer

Renders the text stored in a TextPage as glyphs.

This TextPage renderer uses the parent PApplet's native drawing functions to render glyphs. If the glyphs to be rendered are deformed, their shapes are tesselated using the GLU tesselator from the OpenGL library.


Nested Class Summary
 class OpenGLTextPageRenderer.TessCallback
          This tesselator callback uses native Processing drawing functions to execute the incoming commands.
 
Nested classes/interfaces inherited from class net.nexttext.renderer.G3DTextPageRenderer
G3DTextPageRenderer.RendererType
 
Constructor Summary
OpenGLTextPageRenderer(processing.core.PApplet p)
          Builds a TextPageRenderer.
OpenGLTextPageRenderer(processing.core.PApplet p, processing.core.PGraphics g)
          Builds a TextPageRenderer.
 
Method Summary
 
Methods inherited from class net.nexttext.renderer.G3DTextPageRenderer
renderPage
 
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

OpenGLTextPageRenderer

public OpenGLTextPageRenderer(processing.core.PApplet p)
                       throws java.lang.NoClassDefFoundError
Builds a TextPageRenderer.

Parameters:
p - the parent PApplet
Throws:
java.lang.NoClassDefFoundError

OpenGLTextPageRenderer

public OpenGLTextPageRenderer(processing.core.PApplet p,
                              processing.core.PGraphics g)
                       throws java.lang.NoClassDefFoundError
Builds a TextPageRenderer.

Parameters:
p - the parent PApplet
Throws:
java.lang.NoClassDefFoundError