gzz.gfx.gl
Class PaperMill

java.lang.Object
  |
  +--gzz.gfx.gl.PaperMill
Direct Known Subclasses:
CachingPaperMill

public abstract class PaperMill
extends java.lang.Object


Constructor Summary
PaperMill()
           
 
Method Summary
static PaperMill getInstance()
           
 Paper getOptimizedPaper(int seed, GraphicsAPI.RenderingSurface w)
          Get an optimized (rendered-to-texture) paper.
abstract  Paper getPaper(int seed)
          Get the paper corresponding to the given seed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaperMill

public PaperMill()
Method Detail

getPaper

public abstract Paper getPaper(int seed)
Get the paper corresponding to the given seed.


getOptimizedPaper

public Paper getOptimizedPaper(int seed,
                               GraphicsAPI.RenderingSurface w)
Get an optimized (rendered-to-texture) paper. This will usually return a paper with a single pass and single texture, in which case you can set the texture environment (or fragment program) and add other papers.

HOWEVER, this does not work on ATI drivers; so it is not guaranteed that the paper will be like that. Check it first.

See Also:
GL.workaroundStupidBuggyAtiDrivers

getInstance

public static PaperMill getInstance()