/[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.38 by tjl, Tue Oct 8 11:04:07 2002 UTC revision 1.39 by jvk, Tue Oct 8 12:34:13 2002 UTC
# Line 108  def getText(text): Line 108  def getText(text):
108          textstyle = GLTextStyle.create("sans", 0, 1)          textstyle = GLTextStyle.create("sans", 0, 1)
109      return TextVob(textstyle, text, 0)      return TextVob(textstyle, text, 0)
110    
111  def putText(vs, cs1, text, color = None, x = 0, y = 0, h = 10):  def putText(vs, cs1, text, color = None, x = 0, y = 0, z = 0, h = 10):
112      if color != None:          if color != None:    
113          putnoc(vs, getDListNocoords("Color " + js(color)))          putnoc(vs, getDListNocoords("Color " + js(color)))
114      putnoc(vs, getDListNocoords("""      putnoc(vs, getDListNocoords("""
# Line 122  def putText(vs, cs1, text, color = None, Line 122  def putText(vs, cs1, text, color = None,
122    
123      t = getText(text)      t = getText(text)
124    
125      cs = vs.coords.coordsys(cs1, 0, x, y-h, h, h)      cs = vs.coords.coordsys(cs1, z, x, y-h, h, h)
126      vs.matcher.addSub(cs1, cs, str(text))      vs.matcher.addSub(cs1, cs, str(text))
127    
128      vs.map.put(t, cs)      vs.map.put(t, cs)

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

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