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 |
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 |
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 |
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 |
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 |
|
|