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

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

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

revision 1.30 by tjl, Wed Oct 2 18:24:34 2002 UTC revision 1.31 by tjl, Sun Oct 6 13:43:56 2002 UTC
# Line 1  Line 1 
1  # A gl demo framework that can reload the given file at will.  # A gl demo framework that can reload the given file at will.
2    #
3    # The target size for demos is 1024x768, since that is
4    # a reasonable lowest common denominator.
5    #
6    # Our demo animations will also be in that size.
7    #
8    # The current screen size can be queried from the vobscene
9    # and the user is free to resize the window; demos shouldn't.
10    
11  import sys  import sys
12  # Unfortunate debianisms XXX  # Unfortunate debianisms XXX
# Line 256  class Main(Runnable): Line 264  class Main(Runnable):
264          b,s = (Bindings(), Show())          b,s = (Bindings(), Show())
265          global w          global w
266          w = gfxapi.createWindow()          w = gfxapi.createWindow()
         w.setLocation(0,0,600,600)  
267          loadScenes()          loadScenes()
268          scr = Screen(w, b, s)          scr = Screen(w, b, s)
269          AbstractUpdateManager.addWindow(scr)          AbstractUpdateManager.addWindow(scr)
270          AbstractUpdateManager.chg()          AbstractUpdateManager.chg()
271            w.setLocation(0,0,1024,768)
272                    
273    
274  scenefile = args[0]  scenefile = args[0]

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

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