38 |
public static boolean dbg = false; |
public static boolean dbg = false; |
39 |
private static void pa(String s) { System.out.println(s); } |
private static void pa(String s) { System.out.println(s); } |
40 |
|
|
41 |
// public static gzz.gfx.gl.PaperMill paperMill; |
public static org.nongnu.libvob.gl.PaperMill paperMill; |
42 |
// public static gzz.client.GraphicsAPI.RenderingSurface paperMillWindow; |
public static org.nongnu.libvob.GraphicsAPI.RenderingSurface paperMillWindow; |
43 |
|
|
44 |
/** The page is in the range (0,0)..(w,h) in paper coordinates. |
/** The page is in the range (0,0)..(w,h) in paper coordinates. |
45 |
*/ |
*/ |
128 |
|
|
129 |
} |
} |
130 |
|
|
|
/* |
|
131 |
private Paper getBg() { |
private Paper getBg() { |
132 |
if(bg == null) { |
if(bg == null) { |
133 |
if(paperMill == null) |
if(paperMill == null) |
136 |
} |
} |
137 |
return bg; |
return bg; |
138 |
} |
} |
|
*/ |
|
139 |
|
|
140 |
public Paper getPaper(boolean withBackground) { |
public Paper getPaper(boolean withBackground) { |
141 |
return getPaper(withBackground, true); |
return getPaper(withBackground, true); |
142 |
} |
} |
143 |
public Paper getPaper(boolean withBackground, boolean withSpan) { |
public Paper getPaper(boolean withBackground, boolean withSpan) { |
|
/* |
|
144 |
if(!withSpan) { |
if(!withSpan) { |
145 |
if(!withBackground) throw new Error("Can't do without both"); |
if(!withBackground) throw new Error("Can't do without both"); |
146 |
return getBg(); |
return getBg(); |
197 |
return bgPaper; |
return bgPaper; |
198 |
} |
} |
199 |
} else { |
} else { |
|
*/ |
|
200 |
if(noBgPaper == null) { |
if(noBgPaper == null) { |
201 |
noBgPaper = new Paper(); |
noBgPaper = new Paper(); |
202 |
addPaperPass(noBgPaper, setupOnlyPass); |
addPaperPass(noBgPaper, setupOnlyPass); |
203 |
|
|
204 |
} |
} |
205 |
return noBgPaper; |
return noBgPaper; |
206 |
// } |
} |
207 |
} |
} |
208 |
|
|
209 |
public void request(float importance, float pixels) { |
public void request(float importance, float pixels) { |