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

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

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

revision 1.3 by jvk, Fri Jan 24 13:53:04 2003 UTC revision 1.4 by tjl, Fri Jan 24 13:54:47 2003 UTC
# Line 50  class Scene: Line 50  class Scene:
50          self.key = KeyPresses(self,          self.key = KeyPresses(self,
51              SlideLin("x", 0, 30, "x coord", "Left", "Right"),              SlideLin("x", 0, 30, "x coord", "Left", "Right"),
52              SlideLin("y", 0, 30, "x coord", "Up", "Down"),              SlideLin("y", 0, 30, "x coord", "Up", "Down"),
53                SlideLin("xg", 0, 30, "x coord", "j", "l"),
54                SlideLin("yg", 0, 30, "x coord", "i", ","),
55          )          )
56    
57      def scene(self, vs):      def scene(self, vs):
58          putnoc(vs, background((.5,.5,.5)))          putnoc(vs, background((.5,.5,.5)))
59    
60          cs1 = vs.coords.affineCoordsys(0, 0, self.x, self.y,          csg = vs.coords.affineCoordsys(0, 0, self.xg, self.yg,
61              1000, 0, 0, 1000)              1000, 0, 0, 1000)
62          vs.matcher.add(cs1, "1")          vs.matcher.add(cs1, "1")
63            vs.map.put(getDList("""
         vs.map.put(getDList("""  
         BindProgramARB FRAGMENT_PROGRAM_ARB %s  
         Enable FRAGMENT_PROGRAM_ARB  
64    
65          ActiveTexture TEXTURE0          ActiveTexture TEXTURE0
66          TexGen S TEXTURE_GEN_MODE OBJECT_LINEAR          TexGen S TEXTURE_GEN_MODE OBJECT_LINEAR
# Line 105  class Scene: Line 104  class Scene:
104    
105          ActiveTexture TEXTURE0          ActiveTexture TEXTURE0
106    
107          MultiTexCoord TEXTURE5 2 -1 0 0          """), csg)
108    
109            cs1 = vs.coords.affineCoordsys(0, 0, self.x, self.y,
110                1000, 0, 0, 1000)
111            vs.matcher.add(cs1, "1")
112    
113            vs.map.put(getDList("""
114            BindProgramARB FRAGMENT_PROGRAM_ARB %s
115            Enable FRAGMENT_PROGRAM_ARB
116                    
117          BindTexture TEXTURE_2D %s          BindTexture TEXTURE_2D %s
118          TexParameter TEXTURE_2D TEXTURE_MIN_FILTER LINEAR_MIPMAP_LINEAR          TexParameter TEXTURE_2D TEXTURE_MIN_FILTER LINEAR_MIPMAP_LINEAR
# Line 114  class Scene: Line 121  class Scene:
121          Enable TEXTURE_2D          Enable TEXTURE_2D
122          Color 1 1 1          Color 1 1 1
123          Begin QUAD_STRIP          Begin QUAD_STRIP
124            MultiTexCoord TEXTURE5 2 -1 0 0
125          Vertex 0 0          Vertex 0 0
126          Vertex 0 1          Vertex 0 1
127            MultiTexCoord TEXTURE5 1 0 0 0
128          Vertex 1 0          Vertex 1 0
129          Vertex 1 1          Vertex 1 1
130          End          End
# Line 126  class Scene: Line 135  class Scene:
135  currentScene = Scene()  currentScene = Scene()
136    
137    
138    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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