/[libvob]/libvob/vob/buoy/buoymanager.py
ViewVC logotype

Diff of /libvob/vob/buoy/buoymanager.py

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

revision 1.12 by tjl, Wed May 7 12:00:42 2003 UTC revision 1.13 by tjl, Tue May 13 11:48:22 2003 UTC
# Line 32  from vob.putil.misc import * Line 32  from vob.putil.misc import *
32  vob.AbstractUpdateManager.defaultAnimationTime = 1500  vob.AbstractUpdateManager.defaultAnimationTime = 1500
33  vob.AbstractUpdateManager.fractCalc = vob.AbstractUpdateManager.LinearCalculator(0)  vob.AbstractUpdateManager.fractCalc = vob.AbstractUpdateManager.LinearCalculator(0)
34    
35  lineconn = GLRen.createLineConnector(.5, .5, .5, .5)  # The connector is just a vob.
36    lineconn = vob.vobs.SimpleConnection(.5, .5, .5, .5)
37    lineconn.glsetup = GLCache.getCallList("""
38                PushAttrib ENABLE_BIT LINE_BIT
39                Disable TEXTURE_2D
40                LineWidth 5
41                Enable BLEND
42                Color 0 0 0 0.6
43            """)
44    lineconn.glteardown = GLCache.getCallList("""
45                PopAttrib
46            """)
47    
48  #lineconn = GLRen.createSqFilletConnection(30, 1, .125, 6)  #lineconn = GLRen.createSqFilletConnection(30, 1, .125, 6)
49    
50  size = jarray.zeros(2, 'f')  size = jarray.zeros(2, 'f')
# Line 155  class RealBuoyManager(BuoyLinkListener): Line 167  class RealBuoyManager(BuoyLinkListener):
167          otherAnchorCS = otherNode.renderBuoy(self.vs, into, linkId, otherAnchor, None)          otherAnchorCS = otherNode.renderBuoy(self.vs, into, linkId, otherAnchor, None)
168          self.cs[into] = (otherNode, linkId, otherAnchor, into)          self.cs[into] = (otherNode, linkId, otherAnchor, into)
169    
         self.vs.map.put(GLCache.getCallList("""  
             PushAttrib ENABLE_BIT LINE_BIT  
             Disable TEXTURE_2D  
             LineWidth 5  
             Enable BLEND  
             Color 0 0 0 0.6  
         """))  
   
170          self.vs.map.put(lineconn, anchorUnit,          self.vs.map.put(lineconn, anchorUnit,
171                          self.vs.unitSqCS(otherAnchorCS, "UN"))                          self.vs.unitSqCS(otherAnchorCS, "UN"))
172    
         self.vs.map.put(GLCache.getCallList("""  
             PopAttrib  
         """))  
173    
174          # Interpolation : old mainvp -> to new buoy          # Interpolation : old mainvp -> to new buoy
175          if hasattr(self, "animationCS_main") and \          if hasattr(self, "animationCS_main") and \

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

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