34 |
execfile("gzz/gfx/gl/pagespanpaper.py") |
execfile("gzz/gfx/gl/pagespanpaper.py") |
35 |
|
|
36 |
# Now, the output goes to alpha |
# Now, the output goes to alpha |
37 |
PageSpanPaper.setupOnlyPass = parseCombiner(""" |
setupCode = parseCombiner(""" |
38 |
PushAttrib ENABLE_BIT TEXTURE_BIT COLOR_BUFFER_BIT CURRENT_BIT |
PushAttrib ENABLE_BIT TEXTURE_BIT COLOR_BUFFER_BIT CURRENT_BIT |
39 |
ActiveTexture TEXTURE1 |
ActiveTexture TEXTURE1 |
40 |
Disable TEXTURE_2D |
Disable TEXTURE_2D |
52 |
alpha = SPARE1.blue |
alpha = SPARE1.blue |
53 |
""") |
""") |
54 |
|
|
|
print PageSpanPaper.setupOnlyPass |
|
55 |
|
|
56 |
def paperOnce(vs, into, layout, scale): |
def paperOnce(vs, into, layout, scale): |
57 |
scale *= .5 |
scale *= .5 |
126 |
Toggle("bg", 1, "bg", "b"), |
Toggle("bg", 1, "bg", "b"), |
127 |
) |
) |
128 |
gzz.gfx.gl.PageSpanPaper.withHalo = 0 |
gzz.gfx.gl.PageSpanPaper.withHalo = 0 |
129 |
gzz.gfx.gl.PageSpanPaper.paperMill = OptMill( |
|
130 |
gzz.gfx.gl.PaperMill.getInstance()) |
if hasattr(gfx.util.demowindow, "w"): |
131 |
gzz.gfx.gl.PageSpanPaper.paperMillWindow = gfx.util.demowindow.w |
gzz.gfx.gl.PageSpanPaper.paperMill = OptMill( |
132 |
|
gzz.gfx.gl.PaperMill.getInstance()) |
133 |
|
gzz.gfx.gl.PageSpanPaper.paperMillWindow = gfx.util.demowindow.w |
134 |
|
|
135 |
|
self.enf = pages[0] |
136 |
def scene(self, vs): |
def scene(self, vs): |
137 |
|
PageSpanPaper.setupOnlyPass = setupCode |
138 |
|
|
139 |
vs.put(background((.36, .84, 1.0))) |
vs.put(background((.36, .84, 1.0))) |
140 |
self.layout = self.pageSpanCellView.getLayout(pages[0]) |
self.layout = self.pageSpanCellView.getLayout(self.enf) |
141 |
self.layoutBg = self.pageSpanCellViewBg.getLayout(pages[0]) |
self.layoutBg = self.pageSpanCellViewBg.getLayout(self.enf) |
142 |
textPaperScene(vs, self.layout, self.layoutBg, self.scale) |
textPaperScene(vs, self.layout, self.layoutBg, self.scale) |
143 |
|
|
144 |
|
|