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

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

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

revision 1.3 by tjl, Tue Sep 10 12:22:24 2002 UTC revision 1.4 by tjl, Tue Sep 10 18:53:19 2002 UTC
# Line 28  class StencilScene: Line 28  class StencilScene:
28          # First pass: increment stencil          # First pass: increment stencil
29          putnoc(vs, getDListNocoords("""          putnoc(vs, getDListNocoords("""
30              PushAttrib ENABLE_BIT STENCIL_BUFFER_BIT COLOR_BUFFER_BIT              PushAttrib ENABLE_BIT STENCIL_BUFFER_BIT COLOR_BUFFER_BIT
31              Enable STENCIL_TEST              Disable STENCIL_TEST
32              StencilFunc ALWAYS 1 255              StencilFunc ALWAYS 1 255
33              StencilOp REPLACE REPLACE REPLACE              StencilOp KEEP KEEP KEEP
34              StencilMask 255              StencilMask 255
35              Enable DEPTH_TEST              Enable DEPTH_TEST
36          """))          """))
# Line 108  class StencilScene: Line 108  class StencilScene:
108              def run(self):              def run(self):
109                  vs.map.put(coloredQuad((0,0,1)), dcs)                  vs.map.put(coloredQuad((0,0,1)), dcs)
110    
111          # self.drawStenciled(vs, mask, cont)          self.drawStenciled(vs, mask().run, cont().run)
112          Stencil.drawStenciled(vs, mask(), None, None, cont(), 0)          # Stencil.drawStenciled(vs, mask(), None, None, cont(), 0)
113                    
114  currentScene = StencilScene()  currentScene = StencilScene()

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