/[libvob]/libvob/test/vob/gl/irregu.test
ViewVC logotype

Diff of /libvob/test/vob/gl/irregu.test

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

revision 1.3 by jvk, Tue Apr 22 11:12:28 2003 UTC revision 1.4 by tjl, Tue Apr 22 20:00:03 2003 UTC
# Line 24  Line 24 
24  needGL()  needGL()
25  # Really basic  # Really basic
26    
27    import java
28    import vob
29  from org.nongnu.libvob.gl import IrregularFrame  from org.nongnu.libvob.gl import IrregularFrame
30  from test.tools.gfx import *  from test.tools.gfx import *
31  from vob.putil.effects import IrreguFrame  from vob.putil.effects import IrreguFrame
# Line 32  def testCreate(): Line 34  def testCreate():
34      irregu = IrregularFrame.create(0,0,1,1,2,3)      irregu = IrregularFrame.create(0,0,1,1,2,3)
35    
36  def testCrash():  def testCrash():
37      irregu = IrreguFrame(-2, -1.5, 2, 1.5, 0.2, 1.0, type="ellipse")      for i in range(0,20):
38            if i % 5 == 0:
39                java.lang.System.gc()
40            vob.gl.GL.freeQueue()
41    
42            irregu = IrreguFrame(-2, -1.5, 2, 1.5, 0.2, 1.0, type="ellipse")
43            irregu2 = IrreguFrame(-2, -1.5, 2, 1.5, 0.2, 1.0)
44    
45            vs = getvs()
46    
47            cs1 = vs.orthoCS(0, "1", 0, 0, 0, 150, 300)
48            cs2 = vs.orthoCS(0, "2", 0, 0, 0, 0, 1 )
49    
50            vs.map.put(irregu.frame, cs1, cs2)
51            vs.map.put(irregu.content, cs1, cs2)
52            vs.map.put(irregu2.frame, cs1, cs2)
53            vs.map.put(irregu2.content, cs1, cs2)
54    
55      vs = getvs()          for i in range(0,10):
56                render(vs)
     cs1 = vs.orthoCS(0, "1", 0, 0, 0, 150, 300)  
     cs2 = vs.orthoCS(0, "2", 0, 0, 0, 0, 1 )  
   
     vs.map.put(irregu.frame, cs1, cs2)  
   
     render(vs)  

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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