/[libvob]/libvob/vob/putil/misc.py
ViewVC logotype

Diff of /libvob/vob/putil/misc.py

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

revision 1.3 by mudyc, Fri May 2 00:06:30 2003 UTC revision 1.4 by tjl, Fri Jun 6 20:04:23 2003 UTC
# Line 101  def getText(text): Line 101  def getText(text):
101    
102  def putText(vs, cs1, text, color = None, x = 0, y = 0, z = 0, h = 1, key = None):  def putText(vs, cs1, text, color = None, x = 0, y = 0, z = 0, h = 1, key = None):
103      if color != None:          if color != None:    
104          putnoc(vs, getDListNocoords("Color " + js(color)))          vs.put( getDListNocoords("Color " + js(color)))
105      putnoc(vs, getDListNocoords("""      vs.put( getDListNocoords("""
106          PushAttrib ENABLE_BIT          PushAttrib ENABLE_BIT
107          Disable ALPHA_TEST          Disable ALPHA_TEST
108          Disable DEPTH_TEST          Disable DEPTH_TEST
# Line 118  def putText(vs, cs1, text, color = None, Line 118  def putText(vs, cs1, text, color = None,
118    
119      vs.map.put(t, cs)      vs.map.put(t, cs)
120            
121      putnoc(vs, getDListNocoords("""      vs.put( getDListNocoords("""
122          PopAttrib          PopAttrib
123      """))      """))
124    
# Line 132  def putMultilineText(vs, cs, text, rowhe Line 132  def putMultilineText(vs, cs, text, rowhe
132  def js(list):  def js(list):
133      return " ".join([str(el) for el in list])      return " ".join([str(el) for el in list])
134    
 def rotatelist(list):  
     list.append(list.pop(0))  
   
135  def getDList(s):  def getDList(s):
136      return GLCache.getCallListCoorded(s)      return GLCache.getCallListCoorded(s)
137    
# Line 174  def getTexture(*args): Line 171  def getTexture(*args):
171  def floats(start, end, n):  def floats(start, end, n):
172      return [float(x) * (end-start) / n + start      return [float(x) * (end-start) / n + start
173          for x in range(0,n+1)]          for x in range(0,n+1)]
 def putAffine(vs, vob, key, d, x, y, xx, xy, yx, yy):  
     cs = vs.coords.affineCoordsys(key,  
         0, x, y, xx, xy, yx, yy)  
     vs.map.put(vob, cs)  
   
   
   
 def putnoc(vs, noc):  
     vs.map.put(noc)  
   

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