113 |
self.paperopts = PaperOptions.instance() |
self.paperopts = PaperOptions.instance() |
114 |
self.newpaperopts = OpenGL11_PaperOptions() |
self.newpaperopts = OpenGL11_PaperOptions() |
115 |
|
|
116 |
def getPaper(self, seed, passmask=[1,1,1,1,1,1,1]): |
def getPaper(self, seed, passmask=[1,1,1,1,1,1,1], |
117 |
|
numcolors = 8, |
118 |
|
minlum = 80): |
119 |
pap = PaperHanger() |
pap = PaperHanger() |
120 |
pap.reg = Registry() |
pap.reg = Registry() |
121 |
|
|
132 |
|
|
133 |
# XXX: TODO: these could be passed inside the paper object |
# XXX: TODO: these could be passed inside the paper object |
134 |
# (and then the textures, too, would be protected from gc) |
# (and then the textures, too, would be protected from gc) |
135 |
colors = Colors(rng.nextInt()) |
colors = Colors(rng.nextInt(), colors = numcolors, minlum = minlum) |
136 |
textures = Textures(rng.nextInt()) |
textures = Textures(rng.nextInt()) |
137 |
rootrep = TexGenXYRepeatUnit(rng, scale = 0.3 * scaleFactor) |
rootrep = TexGenXYRepeatUnit(rng, scale = 0.3 * scaleFactor) |
138 |
|
|