gzz.gfx.gl
Class PageSpanPaper

java.lang.Object
  |
  +--gzz.gfx.gl.PageSpanPaper

public class PageSpanPaper
extends java.lang.Object

Create libpaper papers for PageSpan pages.


Field Summary
static boolean dbg
           
static java.lang.String filter
          The code to set filtering on the texture.
 float h
          The page is in the range (0,0)..(w,h) in paper coordinates.
static PaperMill paperMill
           
static GraphicsAPI.RenderingSurface paperMillWindow
           
static java.lang.String setupDualPass
          Set up code for being the extra pass.
static java.lang.String setupExtraPass
          Set up code for being the extra pass.
static java.lang.String setupHaloDualPass
          Set up code for being the extra pass.
static java.lang.String setupOnlyPass
          Set up code for being the only pass.
static java.lang.String teardown
           
 float w
          The page is in the range (0,0)..(w,h) in paper coordinates.
static boolean withHalo
           
 
Constructor Summary
PageSpanPaper(GLSpanner.SpanPage p, int paperSeed)
           
 
Method Summary
 Paper getPaper(boolean withBackground)
           
 Paper getPaper(boolean withBackground, boolean withSpan)
           
 float getX(float fullPageX)
          Return the paper X coordinate for the given full page span coordinate.
 float getY(float fullPageY)
           
 void request(float importance, float pixels)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbg

public static boolean dbg

paperMill

public static PaperMill paperMill

paperMillWindow

public static GraphicsAPI.RenderingSurface paperMillWindow

w

public final float w
The page is in the range (0,0)..(w,h) in paper coordinates.


h

public final float h
The page is in the range (0,0)..(w,h) in paper coordinates.


filter

public static java.lang.String filter
The code to set filtering on the texture.


setupOnlyPass

public static java.lang.String setupOnlyPass
Set up code for being the only pass. Simply write out the texture values.


setupExtraPass

public static java.lang.String setupExtraPass
Set up code for being the extra pass. Blend this on top of the current values.


setupDualPass

public static java.lang.String setupDualPass
Set up code for being the extra pass. Take the value from texunit 0 and blend on top of it texunit 1.


setupHaloDualPass

public static java.lang.String setupHaloDualPass
Set up code for being the extra pass. Take the value from texunit 0 and blend on top of it halo of texunit 1.


withHalo

public static boolean withHalo

teardown

public static java.lang.String teardown
Constructor Detail

PageSpanPaper

public PageSpanPaper(GLSpanner.SpanPage p,
                     int paperSeed)
Method Detail

getX

public float getX(float fullPageX)
Return the paper X coordinate for the given full page span coordinate.


getY

public float getY(float fullPageY)

getPaper

public Paper getPaper(boolean withBackground)

getPaper

public Paper getPaper(boolean withBackground,
                      boolean withSpan)

request

public void request(float importance,
                    float pixels)