26 |
import org.python.util.PythonInterpreter; |
import org.python.util.PythonInterpreter; |
27 |
|
|
28 |
public abstract class PaperMill { |
public abstract class PaperMill { |
29 |
|
|
30 |
|
/** Get the paper corresponding to the given seed. |
31 |
|
*/ |
32 |
public abstract Paper getPaper(int seed); |
public abstract Paper getPaper(int seed); |
33 |
|
|
34 |
|
/** Get an optimized (rendered-to-texture) paper. |
35 |
|
* This will usually return a paper with a single |
36 |
|
* pass and single |
37 |
|
* texture, in which case you can set the texture environment |
38 |
|
* (or fragment program) and add other papers. |
39 |
|
* <p> |
40 |
|
* HOWEVER, this does not work on ATI drivers; so it is not |
41 |
|
* guaranteed that the paper will be like that. Check it first. |
42 |
|
* @see GL.workaroundStupidBuggyAtiDrivers |
43 |
|
*/ |
44 |
public Paper getOptimizedPaper(int seed, GraphicsAPI.Window w) { |
public Paper getOptimizedPaper(int seed, GraphicsAPI.Window w) { |
45 |
return getPaper(seed); |
return getPaper(seed); |
46 |
} |
} |