gzz-commits
[Top][All Lists]
Advanced

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

[Gzz-commits] libvob/vob/demo/multifil randgraph.py


From: Janne V. Kujala
Subject: [Gzz-commits] libvob/vob/demo/multifil randgraph.py
Date: Wed, 09 Jul 2003 07:38:36 -0400

CVSROOT:        /cvsroot/libvob
Module name:    libvob
Branch:         
Changes by:     Janne V. Kujala <address@hidden>        03/07/09 07:38:36

Modified files:
        vob/demo/multifil: randgraph.py 

Log message:
        Don't use standardcoords

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/vob/demo/multifil/randgraph.py.diff?tr1=1.24&tr2=1.25&r1=text&r2=text

Patches:
Index: libvob/vob/demo/multifil/randgraph.py
diff -u libvob/vob/demo/multifil/randgraph.py:1.24 
libvob/vob/demo/multifil/randgraph.py:1.25
--- libvob/vob/demo/multifil/randgraph.py:1.24  Wed Jul  9 06:52:23 2003
+++ libvob/vob/demo/multifil/randgraph.py       Wed Jul  9 07:38:36 2003
@@ -40,7 +40,8 @@
             self, 
            SlideLin("x", 200, 20, "x", "Left", "Right"),
            SlideLin("y", 300, 20, "y", "Up", "Down"),
-           SlideLin("ang", 21, 3, "Rotation angle", "Prior", "Next"),
+           SlideLin("ang", 0, 3, "Rotation angle", "Prior", "Next"),
+           SlideLin("ang2", 0, 3, "Rotation angle 2", "Home", "End"),
             Action("Use display list", "D", self.compile, noAnimation=1),
             *light3d.commonkeys
        )
@@ -52,12 +53,15 @@
             return
 
         list = GL.createDisplayList();
-        print w
         vs = w.createVobScene()
         self.putGraph(vs, 0, 800);
 
         list.startCompile(w.window)
-        w.renderStill(vs, 0)
+
+        #w.renderStill(vs, 0)
+        vs.coords.renderInterp(w.getRenderingSurface(),
+                               vs.map, None, None, 0, 0, 1);
+
         list.endCompile(w.window)
 
         self.list = GLRen.createCallListCoorded(list)
@@ -108,6 +112,8 @@
 
         cs = vs.coords.rotateXYZ(cs,  0, 1, 0,  self.ang);
         vs.matcher.add(cs, "Rot")
+        cs = vs.coords.rotateXYZ(cs,  1, 0, 0,  self.ang2);
+        vs.matcher.add(cs, "Rot2")
 
         if self.list:
             vs.put(self.list, cs)




reply via email to

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