gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] libvob/test/vob/gl glvobcoorder.test


From: Asko Soukka
Subject: [Gzz-commits] libvob/test/vob/gl glvobcoorder.test
Date: Tue, 01 Apr 2003 08:55:38 -0500

CVSROOT:        /cvsroot/libvob
Module name:    libvob
Changes by:     Asko Soukka <address@hidden>    03/04/01 08:55:38

Modified files:
        test/vob/gl    : glvobcoorder.test 

Log message:
        adding paper, but still fails, probably something in parameters have 
also changed

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/test/vob/gl/glvobcoorder.test.diff?tr1=1.9&tr2=1.10&r1=text&r2=text

Patches:
Index: libvob/test/vob/gl/glvobcoorder.test
diff -u libvob/test/vob/gl/glvobcoorder.test:1.9 
libvob/test/vob/gl/glvobcoorder.test:1.10
--- libvob/test/vob/gl/glvobcoorder.test:1.9    Tue Apr  1 07:53:56 2003
+++ libvob/test/vob/gl/glvobcoorder.test        Tue Apr  1 08:55:38 2003
@@ -245,11 +245,17 @@
 
 #test distorted outside (should not be drawn)
 #normally without distortion this should be drawn
+    from org.nongnu.libvob.gl import PaperMill
+    paper = PaperMill.getInstance().getPaper(57)
+    pq = GLRen.createPaperQuad(paper, 0, 0, 1, 1, 1)
     cs = c.affine(0, 0, 10, 10, 100, 0, 0, 100)
     cs_d = c.distort(cs, 0, 0, 1, 1, 1, 0.1) 
     cs_clip = c.affine(0, 0, 10, 100, 100, 0, 0, 100)
     cs_cull = c.cull(cs_d, cs_clip)
-    putThings()
+    vs.map.clear()
+    vs.map.put(vob.vobs.SolidBackdropVob(Color.red))
+    vs.map.put(pq, cs_cull, 0)
+    render(vs)
     checkAvgColor(10, 10, 80, 80, (255, 0, 0), delta=50)
 
 #test same area (should be drawn)
@@ -282,7 +288,11 @@
     cs_clip = c.affine(0, 0, 10, 90, 100, 0, 0, 100)
     cs_cull = c.cull(cs_d, cs_clip)
 
-    putThings()
+    vs.map.clear()
+    vs.map.put(vob.vobs.SolidBackdropVob(Color.red))
+    vs.map.put(pq, cs_cull, 0)
+    render(vs)
+
     checkNotAvgColor(10, 10, 100, 100, (255, 0, 0), delta=50)
 
 #test findBoundingBox bugfix (should be drawn)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]