/[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.5 by jvk, Fri Jan 24 14:53:02 2003 UTC revision 1.6 by jvk, Fri Jan 24 15:41:16 2003 UTC
# Line 59  TXB p, c, texture[0], 2D; Line 59  TXB p, c, texture[0], 2D;
59    
60  MOV result.color, p;  MOV result.color, p;
61  END  END
62    """),
63    
64    GL.createProgram(
65    """!!ARBfp1.0
66    
67    # Sharpen the texture value
68    
69    TEMP p;
70    
71    # Read the pixel and its neighbours
72    TXB p, fragment.texcoord[0], texture[0], 2D;
73    
74    MUL p.y, p.x, p.x;
75    MUL p.z, p.x, p.y;
76    MUL p.x, -2, p.z;
77    MAD p.x, 3, p.y, p.x;
78    
79    MOV result.color, p.x;
80    END
81  """)  """)
82  ]  ]
83    
# Line 66  dump(fp[0].getProgId()) Line 85  dump(fp[0].getProgId())
85    
86  class Scene:  class Scene:
87      def __init__(self):      def __init__(self):
88            self.prognum_dummylist = [ 0 for x in fp ]
89          self.key = KeyPresses(self,          self.key = KeyPresses(self,
90              SlideLin("x", 0, 30, "x coord", "Left", "Right"),              SlideLin("x", 0, 30, "x coord", "Left", "Right"),
91              SlideLin("y", 0, 30, "x coord", "Up", "Down"),              SlideLin("y", 0, 30, "x coord", "Up", "Down"),
# Line 73  class Scene: Line 93  class Scene:
93              SlideLin("yg", 0, 30, "x coord", "i", ","),              SlideLin("yg", 0, 30, "x coord", "i", ","),
94              SlideLog("ps", 800, "paper scale", "<", ">"),              SlideLog("ps", 800, "paper scale", "<", ">"),
95              SlideLin("ang", 0,  5, "angle", "Prior", "Next"),              SlideLin("ang", 0,  5, "angle", "Prior", "Next"),
96              Toggle("prognum", 0, "prog type", "t"),              ListIndex("prognum", "prognum_dummylist", 0, "prog type", "T", "t"),
97              Toggle("texfilt", 1, "texture filtering", "f"),              Toggle("texfilt", 1, "texture filtering", "f"),
98          )          )
99    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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