/[gzz]/gzz/gfx/demo/testtimeout.py
ViewVC logotype

Diff of /gzz/gfx/demo/testtimeout.py

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

revision 1.2 by benja, Wed Sep 4 22:06:00 2002 UTC revision 1.3 by tjl, Tue Sep 10 09:53:15 2002 UTC
# Line 9  class TimeoutScene: Line 9  class TimeoutScene:
9      def scene(self, vs):      def scene(self, vs):
10          d = w.getSize()          d = w.getSize()
11          putnoc(vs, background((0.5,0.5,0.5)))          putnoc(vs, background((0.5,0.5,0.5)))
12          vs.put(rectangle((1,0.1,0.1)), "rec", 10, self.x, 200, 150, 150)          vs.putnoc(getDList("Disable TEXTURE_2D"))
13            vs.put(coloredQuad((1,0.1,0.1)), "rec", 10, self.x, 200, 150, 150)
14          w.addTimeout(1000, None)          w.addTimeout(1000, None)
15          return vs          return vs
16    
17    
 def rectangle(rgb):  
     return getDList("""  
         LineWidth 4  
         Color %s %s %s  
         Disable TEXTURE_2D  
         Begin LINE_LOOP  
         Vertex -1 -1  
         Vertex -1 1  
         Vertex 1 1  
         Vertex 1 -1  
         End  
     """%(rgb))  
   
18  currentScene = TimeoutScene()  currentScene = TimeoutScene()

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

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