gzz-commits
[Top][All Lists]
Advanced

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

[Gzz-commits] gzz/gfx/util disp.py


From: Janne V. Kujala
Subject: [Gzz-commits] gzz/gfx/util disp.py
Date: Tue, 04 Mar 2003 04:28:19 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Janne V. Kujala <address@hidden>        03/03/04 04:28:19

Modified files:
        gfx/util       : disp.py 

Log message:
        read mipzip names from a given file

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/util/disp.py.diff?tr1=1.3&tr2=1.4&r1=text&r2=text

Patches:
Index: gzz/gfx/util/disp.py
diff -u gzz/gfx/util/disp.py:1.3 gzz/gfx/util/disp.py:1.4
--- gzz/gfx/util/disp.py:1.3    Tue Mar  4 04:19:36 2003
+++ gzz/gfx/util/disp.py        Tue Mar  4 04:28:19 2003
@@ -47,7 +47,6 @@
 while yt > 1: yt *= .5
 
 
-
 def filescene(vs, file):
     m = MipzipLoader(File(file))
     m.loadToBaseLevelSynch(0)
@@ -97,23 +96,22 @@
 class Main(Runnable):
 
     def run(self):
-       #GLSpanner.dangerouslyOverrideMemoryPartitioner()
-
         w = gfxapi.createWindow()
         w.setLocation(0,0,xs,ys)
         w.registerBinder(Bindings())
 
-        for file in [
-            "tmp/tmp_0_0_0.mipzip",
-            "tmp/tmp_0_0_1.mipzip",
-            "tmp/tmp_0_0_2.mipzip",
-            "tmp/tmp_0_0_3.mipzip"
-            ]:
+        f = open(sys.argv[1], "r")
+        lines = f.readlines()
+        f.close()
+
+        for line in lines:
+            fields = line.split()
+
+            file = fields[0]
             vs = w.createVobScene()
             filescene(vs, file)
             w.renderStill(vs, 0)
         
-
 
 gfxapi = GraphicsAPI.getInstance()
 gfxapi.startUpdateManager(Main())




reply via email to

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