/[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.11 by tjl, Sat Jan 25 11:02:07 2003 UTC revision 1.12 by tjl, Sun Jan 26 21:25:58 2003 UTC
# Line 101  SWZ result.color, p,x,y,z,1; Line 101  SWZ result.color, p,x,y,z,1;
101    
102  END  END
103  """),  """),
104    GL.createProgram(
105    """!!ARBfp1.0
106    
107    TEMP p, bp;
108    MAD p, fragment.texcoord[5].w, fragment.texcoord[5].w, fragment.texcoord[0];
109    TEX result.color, p, texture[0], 2D;
110    
111    END
112    """),
113  ]  ]
114    
115  dump(fp[0].getProgId())  dump(fp[0].getProgId())
# Line 120  class Scene: Line 129  class Scene:
129          )          )
130    
131      def scene(self, vs):      def scene(self, vs):
132          putnoc(vs, background((.5,.5,.5)))          putnoc(vs, background((.5,.8,.5)))
133    
134          rot = vs.rotateCS(0, "r", self.ang)          rot = vs.rotateCS(0, "r", self.ang)
135          d = 1. / self.ps          d = 1. / self.ps
# Line 177  class Scene: Line 186  class Scene:
186          """ % locals()), csg)          """ % locals()), csg)
187    
188          cs1 = vs.affineCS(rot, "1", 0, self.x, self.y,          cs1 = vs.affineCS(rot, "1", 0, self.x, self.y,
189              80, 0, 0, 80)              600, 0, 0, 600)
190    
191          if self.texfilt:          if self.texfilt:
192                  minfilt = "LINEAR_MIPMAP_LINEAR"                  minfilt = "LINEAR_MIPMAP_LINEAR"

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

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