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

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

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

revision 1.9 by tjl, Sun Jan 12 11:41:47 2003 UTC revision 1.10 by tjl, Mon Jan 27 19:39:40 2003 UTC
# Line 30  def testPaperAnythingJava(): Line 30  def testPaperAnythingJava():
30      checkNotAvgColor(150, 150, 2, 2, (0,0,0), 30)      checkNotAvgColor(150, 150, 2, 2, (0,0,0), 30)
31      checkNotAvgColor(250, 250, 2, 2, (0,0,0), 30)      checkNotAvgColor(250, 250, 2, 2, (0,0,0), 30)
32    
33    def testDicing():
34        """Dicing paper a LOT - there have been some
35        too short allocated arrays.
36        """
37        paper = PaperMill.getInstance().getPaper(57)
38        for df in (0, .1, .5, 1, 5, 10, 20, 37, 100):
39            vs = getvs()
40            vs.map.put(SolidBgVob(Color.black))
41            pq = GLRen.createPaperQuad(paper, 0, 0, 1, 1, df)
42            cs1 = vs.coords.distort(0, 0, 0, 10, 10, 400, 40)
43            vs.map.put(pq, cs1, 0)
44            vs.map.put(pq, cs1, 0)
45            vs.map.put(pq, cs1, 0)
46            vs.map.put(pq, cs1, 0)
47            render(vs)
48            checkNotAvgColor(50, 50, 20, 20, (0,0,0), 30)
49    
50  def testOptimizedPaper():  def testOptimizedPaper():
51      """See that optimized paper really is same as      """See that optimized paper really is same as
52      original."""      original."""

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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