/[gzz]/gzz/gfx/demo/opengl/fragprog.py
ViewVC logotype

Diff of /gzz/gfx/demo/opengl/fragprog.py

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

revision 1.2 by jvk, Fri Jan 24 12:01:22 2003 UTC revision 1.3 by tjl, Fri Jan 24 12:08:48 2003 UTC
# Line 1  Line 1 
1    from gfx.util.demokeys import *
2    from gfx.util.misc import *
3    
4  if globals().has_key("fp"):  if globals().has_key("fp"):
5          fp.deleteObject()          fp.deleteObject()
6    
# Line 19  fp = GL.createProgram("""!!ARBfp1.0 Line 22  fp = GL.createProgram("""!!ARBfp1.0
22    
23  class Scene:  class Scene:
24      def __init__(self):      def __init__(self):
25          self.x = 512          self.key = KeyPresses(self,
26          self.y = 384              SlideLin("x", 512, 30, "x coord", "Left", "Right"),
27                SlideLin("y", 384, 30, "x coord", "Up", "Down"),
28            )
29    
30      def scene(self, vs):      def scene(self, vs):
31          putnoc(vs, background((.5,.5,.5)))          putnoc(vs, background((.5,.5,.5)))
# Line 42  class Scene: Line 47  class Scene:
47          Disable FRAGMENT_PROGRAM_ARB          Disable FRAGMENT_PROGRAM_ARB
48          """ % fp.getProgId()), cs1)          """ % fp.getProgId()), cs1)
49    
     def key(self,k):  
         pass  
50    
51  currentScene = Scene()  currentScene = Scene()

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

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