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

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

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

revision 1.1 by tjl, Tue Mar 11 13:32:17 2003 UTC revision 1.2 by tjl, Tue Mar 11 14:01:27 2003 UTC
# Line 23  Line 23 
23    
24  needGL()  needGL()
25    
 from gzz.vob import *  
26  from java.awt import Color  from java.awt import Color
 from gzz.gfx.gl import GL, GLCache  
27    
28  from test.tools.gfx import *  from test.tools.gfx import *
29    
30  def testBgTriangle():  def testBgTriangle():
31      vs = getvs()      vs = getvs()
32      vs.map.put(SolidBgVob(Color.red))      vs.map.put(vob.vobs.SolidBgVob(Color.red))
33      vs.map.put(GLCache.getCallList("""      vs.map.put(vob.gl.GLCache.getCallList("""
34          Color 0 1 0          Color 0 1 0
35          Disable TEXTURE_2D          Disable TEXTURE_2D
36          Begin TRIANGLES          Begin TRIANGLES
# Line 45  def testBgTriangle(): Line 43  def testBgTriangle():
43      checkAvgColor(10, 10, 2, 2, (255, 0, 0), 2)      checkAvgColor(10, 10, 2, 2, (255, 0, 0), 2)
44      checkAvgColor(110, 110, 2, 2, (0, 255, 0), 2)      checkAvgColor(110, 110, 2, 2, (0, 255, 0), 2)
45    
 def testOvalBgVob():  
     vs = getvs()  
     vs.map.put(SolidBgVob(Color.red))  
     cs1 = vs.coords.affineCoordsys(0, 0, 100, 100, 100, 0, 0, 100)  
     vs.matcher.add(cs1, "cs")  
     vs.map.put(OvalBgVob(), cs1)  
     render(vs)  
     checkAvgColor(10, 10, 2, 2, (255, 0, 0), 2)  
     checkAvgColor(150, 150, 2, 2, (255, 255, 255), 2)  
   
46  # : vim: set syntax=python :  # : vim: set syntax=python :

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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