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

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

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

revision 1.6 by jvk, Tue Sep 17 07:35:55 2002 UTC revision 1.7 by jvk, Tue Sep 17 11:14:05 2002 UTC
# Line 34  class IrreguScene: Line 34  class IrreguScene:
34              Enable TEXTURE_GEN_T              Enable TEXTURE_GEN_T
35              ActiveTexture TEXTURE0              ActiveTexture TEXTURE0
36              Begin LINE_LOOP              Begin LINE_LOOP
37              Vertex -%(w)sr -1              Vertex -%(w)s -1
38              Vertex -%(w)s +1              Vertex -%(w)s +1
39              Vertex +%(w)s +1              Vertex +%(w)s +1
40              Vertex +%(w)s -1              Vertex +%(w)s -1
41              End              End
42          """ % locals())          """ % locals())
43    
44          self.iq = GZZGL.createIrregularQuad(-1, -1, 1, 1, .5, """          self.iq = GZZGL.createIrregularQuad(.2, """
45                  PushAttrib ENABLE_BIT TEXTURE_BIT CURRENT_BIT                  PushAttrib ENABLE_BIT TEXTURE_BIT CURRENT_BIT
46                  Enable ALPHA_TEST                  Enable ALPHA_TEST
47                  AlphaFunc GREATER 0.0                  AlphaFunc GREATER 0.0
# Line 94  class IrreguScene: Line 94  class IrreguScene:
94          putnoc(vs, background((0.1,0.4,0.5)))          putnoc(vs, background((0.1,0.4,0.5)))
95    
96    
97          cs1 = vs.coords.affineCoordsys(0, "1", 10, self.x1, self.y1, 100, 0, 0, 100)          cs1 = vs.coords.affineCoordsys(0, "1", 10, self.x1, self.y1, 200, 0, 0, 100)
98          cs2 = vs.coords.affineCoordsys(0, "2", 10, 600, 450, 150, 32.3, -14.2, 150)          cs2 = vs.coords.affineCoordsys(0, "2", 10, 600, 450, 150, 32.3, -14.2, 150)
99          vs.map.put(self.mask, cs2)          vs.map.put(self.mask, cs2)
100          vs.map.put(self.iq, cs1, cs2)          vs.map.put(self.iq, cs1, cs2)

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