/[gzz]/gzz/test/tools/gfx.py
ViewVC logotype

Diff of /gzz/test/tools/gfx.py

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

revision 1.3 by tjl, Tue Oct 15 17:42:19 2002 UTC revision 1.4 by tjl, Wed Oct 16 07:46:39 2002 UTC
# Line 3  print "Init test.gfx" Line 3  print "Init test.gfx"
3  print dir(gzz)  print dir(gzz)
4  print dir(gzz.client)  print dir(gzz.client)
5    
6    didRender = 0
7    
8  win = gzz.client.GraphicsAPI.getInstance().createWindow()  win = gzz.client.GraphicsAPI.getInstance().createWindow()
9  win.setLocation(0, 0, 500, 500)  win.setLocation(0, 0, 500, 500)
10    
# Line 12  def getvs(): Line 14  def getvs():
14      return win.createVobScene()      return win.createVobScene()
15    
16  def render(vs):  def render(vs):
17        global didRender
18        didRender = 1
19      win.renderStill(vs, 0)      win.renderStill(vs, 0)
20    
21  def getAvgColor(x, y, w, h):  def getAvgColor(x, y, w, h):

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

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