/[gzz]/gzz/test/gzz/gfx/gl/glvobcoorder.test
ViewVC logotype

Diff of /gzz/test/gzz/gfx/gl/glvobcoorder.test

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.37 by tjl, Fri Feb 21 20:02:58 2003 UTC revision 1.38 by humppake, Tue Mar 4 10:26:24 2003 UTC
# Line 272  def testCulling(): Line 272  def testCulling():
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)
# Line 296  def testCulling(): Line 295  def testCulling():
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)

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26