272 |
#test cull-clip interface |
#test cull-clip interface |
273 |
font = GL.createFont("gfx/fonts/a010013l.pfb", 16) |
font = GL.createFont("gfx/fonts/a010013l.pfb", 16) |
274 |
renderable = GLRen.createHorizText2(font, "FOO", 1, 1, 1, 1) |
renderable = GLRen.createHorizText2(font, "FOO", 1, 1, 1, 1) |
|
|
|
275 |
|
|
276 |
cs = c.affineCoordsys(0, 0, 10, 10, 100, 0, 0, 100) |
cs = c.affineCoordsys(0, 0, 10, 10, 100, 0, 0, 100) |
277 |
cs_clip = c.affineCoordsys(0, 0, 0, 0, 200, 0, 0, 200) |
cs_clip = c.affineCoordsys(0, 0, 0, 0, 200, 0, 0, 200) |
295 |
a = str(boxwh) |
a = str(boxwh) |
296 |
failIf(boxwh[0] != 10.0, "%s != 10.0" % (boxwh[0])) |
failIf(boxwh[0] != 10.0, "%s != 10.0" % (boxwh[0])) |
297 |
failIf(boxwh[1] != 10.0, "%s != 10.0" % (boxwh[1])) |
failIf(boxwh[1] != 10.0, "%s != 10.0" % (boxwh[1])) |
298 |
|
|
299 |
|
#test findBoundingBox bugfix |
300 |
|
cs_box = c.orthoBox(0, 0, 0, 0, 200, 100, 1, 2) |
301 |
|
cs_clip = c.orthoBox(0, 0,100, 0, 100, 100, 1, 1) |
302 |
|
cs_cull = c.cull(cs_box, cs_clip) |
303 |
|
putThings() |
304 |
|
checkNotAvgColor(0, 0, 200, 200, (255, 0, 0), delta=50) |
305 |
|
|
306 |
#test same area |
#test same area |
307 |
cs_clip = c.affineCoordsys(0, 0, 10, 10, 100, 0, 0, 100) |
cs_clip = c.affineCoordsys(0, 0, 10, 10, 100, 0, 0, 100) |