/[gzz]/gzz/gfx/demo/fillet/zbuffer.py
ViewVC logotype

Diff of /gzz/gfx/demo/fillet/zbuffer.py

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

revision 1.6 by benja, Mon Dec 30 13:49:48 2002 UTC revision 1.7 by tjl, Sun Jan 12 11:41:45 2003 UTC
# Line 45  ListIndex("ind", "cellTexs", 0, "fillet Line 45  ListIndex("ind", "cellTexs", 0, "fillet
45                            
46          putnoc(vs, background((0.3, 0.2, 0.6)))          putnoc(vs, background((0.3, 0.2, 0.6)))
47    
48          putnoc(vs, getDList("""          putnoc(vs, getDListNocoords("""
49              Enable ALPHA_TEST              Enable ALPHA_TEST
50              AlphaFunc GEQUAL 0.2              AlphaFunc GEQUAL 0.2
51              Enable DEPTH_TEST              Enable DEPTH_TEST
# Line 55  ListIndex("ind", "cellTexs", 0, "fillet Line 55  ListIndex("ind", "cellTexs", 0, "fillet
55          """))          """))
56    
57          if self.polymode:          if self.polymode:
58              putnoc(vs, getDList("""              putnoc(vs, getDListNocoords("""
59                  PolygonMode FRONT_AND_BACK LINE                  PolygonMode FRONT_AND_BACK LINE
60                  Disable TEXTURE_2D                  Disable TEXTURE_2D
61                  LineWidth 2                  LineWidth 2
# Line 100  ListIndex("ind", "cellTexs", 0, "fillet Line 100  ListIndex("ind", "cellTexs", 0, "fillet
100    
101          self.putCells(vs, sca)          self.putCells(vs, sca)
102    
103          putnoc(vs, getDList("""          putnoc(vs, getDListNocoords("""
104              PopAttrib              PopAttrib
105              """))              """))
106          return vs          return vs
# Line 114  ListIndex("ind", "cellTexs", 0, "fillet Line 114  ListIndex("ind", "cellTexs", 0, "fillet
114                      vs.coords.ortho(into, d, -0.75*wid*self.movel, 2*l, wid/2, h/2), "bar"+str(d)))                      vs.coords.ortho(into, d, -0.75*wid*self.movel, 2*l, wid/2, h/2), "bar"+str(d)))
115                  for d in (600, 800)]                  for d in (600, 800)]
116    
117          putnoc(vs, getDList("""          putnoc(vs, getDListNocoords("""
118              Color 1 1 1              Color 1 1 1
119          """))          """))
120    
121          if self.color:          if self.color:
122              putnoc(vs, getDList("""              putnoc(vs, getDListNocoords("""
123                  Color 1 1 1                  Color 1 1 1
124              """))              """))
125          print "ctr ",cellTexRects,"cc",cc          print "ctr ",cellTexRects,"cc",cc
# Line 128  ListIndex("ind", "cellTexs", 0, "fillet Line 128  ListIndex("ind", "cellTexs", 0, "fillet
128    
129          if self.conn:          if self.conn:
130              if self.color:              if self.color:
131                  putnoc(vs, getDList("""                  putnoc(vs, getDListNocoords("""
132                      Color 1 0.6 0.6                      Color 1 0.6 0.6
133                  """))                  """))
134              putnoc(vs, getDList("""              putnoc(vs, getDListNocoords("""
135                  PushAttrib DEPTH_BUFFER_BIT                  PushAttrib DEPTH_BUFFER_BIT
136                  DepthFunc ALWAYS                  DepthFunc ALWAYS
137              """))              """))
138              vs.map.put(connSmooths[self.ind], cc[0][1], cc[0][0])              vs.map.put(connSmooths[self.ind], cc[0][1], cc[0][0])
139              putnoc(vs, getDList("""              putnoc(vs, getDListNocoords("""
140                  PopAttrib                  PopAttrib
141              """))              """))
142    

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