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

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

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

revision 1.6 by tjl, Mon Sep 30 22:20:28 2002 UTC revision 1.7 by tjl, Tue Oct 1 06:22:54 2002 UTC
# Line 172  class AlphaBlendScene2: Line 172  class AlphaBlendScene2:
172    
173          sca = vs.matcher.add(vs.coords.scaleXYZ(rot, 1, 1, 0.01), "sca")          sca = vs.matcher.add(vs.coords.scaleXYZ(rot, 1, 1, 0.01), "sca")
174    
         self.putCells(vs, sca)  
   
175          vs.map.put(getDList("""          vs.map.put(getDList("""
176              Enable BLEND              Enable BLEND
177              PushAttrib ENABLE_BIT              PushAttrib ENABLE_BIT
# Line 181  class AlphaBlendScene2: Line 179  class AlphaBlendScene2:
179              BlendFunc SRC_ALPHA ONE_MINUS_SRC_ALPHA              BlendFunc SRC_ALPHA ONE_MINUS_SRC_ALPHA
180              Color 1 1 1 0.7              Color 1 1 1 0.7
181              PushMatrix              PushMatrix
182              Scale 1000 1000 1              Scale 1000 1000 2
183              Begin QUAD_STRIP              Begin QUAD_STRIP
184              Vertex 0.5 1 1000              Vertex 0.5 1 1000
185              Vertex 0.5 -1 1000              Vertex 0.5 -1 1000
# Line 192  class AlphaBlendScene2: Line 190  class AlphaBlendScene2:
190              PopAttrib              PopAttrib
191          """), sca)          """), sca)
192    
193            self.putCells(vs, sca)
194    
195          putnoc(vs, getDList("""          putnoc(vs, getDList("""
196              PopAttrib              PopAttrib
197              """))              """))
# Line 210  class AlphaBlendScene2: Line 210  class AlphaBlendScene2:
210              Color 1 1 1              Color 1 1 1
211          """))          """))
212    
213            if self.color:
214                putnoc(vs, getDList("""
215                    Color 1 1 1
216                """))
217            vs.map.put(cellTexRects[self.ind], cc[1][0])
218            vs.map.put(cellTexRects[self.ind], cc[1][1])
219    
220          if self.conn:          if self.conn:
221              if self.color:              if self.color:
222                  putnoc(vs, getDList("""                  putnoc(vs, getDList("""
223                      Color 1 0.6 0.6                      Color 1 0.6 0.6
224                  """))                  """))
225                putnoc(vs, getDList("""
226                    PushAttrib DEPTH_BUFFER_BIT
227                    DepthFunc ALWAYS
228                """))
229              vs.map.put(connSmooths[self.ind], cc[0][1], cc[0][0])              vs.map.put(connSmooths[self.ind], cc[0][1], cc[0][0])
   
         if self.color:  
230              putnoc(vs, getDList("""              putnoc(vs, getDList("""
231                  Color 1 1 1                  PopAttrib
232              """))              """))
233    
234          vs.map.put(cellTexRects[self.ind], cc[1][0])  
         vs.map.put(cellTexRects[self.ind], cc[1][1])  
235    
236    
237  class AlphaCells:  class AlphaCells:

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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