1 |
// (c): Tuomas J. Lukka |
// (c): Tuomas J. Lukka |
2 |
|
|
3 |
package gzz.gfx.gl; |
package gzz.gfx.gl; |
4 |
|
import org.python.util.PythonInterpreter; |
5 |
|
|
6 |
/** Create libpaper papers for PageSpan pages. |
/** Create libpaper papers for PageSpan pages. |
7 |
*/ |
*/ |
27 |
return |
return |
28 |
"\n ActiveTexture TEXTURE"+i+" \n"+ |
"\n ActiveTexture TEXTURE"+i+" \n"+ |
29 |
"\n BindTexture TEXTURE_2D "+p.getTexture(0,1).getTexId()+"\n"+ |
"\n BindTexture TEXTURE_2D "+p.getTexture(0,1).getTexId()+"\n"+ |
30 |
|
filter+ |
31 |
"\n ActiveTexture TEXTURE0\n" |
"\n ActiveTexture TEXTURE0\n" |
32 |
; |
; |
33 |
} |
} |
112 |
|
|
113 |
|
|
114 |
public PageSpanPaper(Paper background, GLSpanner.SpanPage p) { |
public PageSpanPaper(Paper background, GLSpanner.SpanPage p) { |
115 |
|
if(filter == null) { |
116 |
|
PythonInterpreter jython = new PythonInterpreter(); |
117 |
|
jython.execfile("gzz/gfx/gl/pagespanpaper.py"); |
118 |
|
jython.cleanup(); |
119 |
|
} |
120 |
this.bg = background; |
this.bg = background; |
121 |
this.identity = identity; |
this.identity = identity; |
122 |
this.p = p; |
this.p = p; |