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

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

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

revision 1.36 by tjl, Wed Oct 2 10:32:04 2002 UTC revision 1.37 by tjl, Wed Oct 2 12:20:22 2002 UTC
# Line 245  class XuPDFBuoy: Line 245  class XuPDFBuoy:
245      def hit(self, coords, point3):      def hit(self, coords, point3):
246          return self.view.hitClip(coords, point3, self.cliprect)          return self.view.hitClip(coords, point3, self.cliprect)
247    
248    selectPaper = Paper()
249    selectPaper.setNPasses(1)
250    pas = selectPaper.getPass(0)
251    pas.setSetupcode("""
252        PushAttrib ENABLE_BIT COLOR_BUFFER_BIT
253        Disable TEXTURE_2D
254        Disable DEPTH_TEST
255        Disable STENCIL_TEST
256        Color 1 1 1
257        Enable BLEND
258        BlendFunc ONE_MINUS_DST_COLOR ZERO
259    """)
260    pas.setTeardowncode("""
261        PopAttrib
262    """)
263    selectPaperQuad = GLRen.createPaperQuad(selectPaper, -1,-1,1,1, 1)
264    
265    
266  class XuPDFScene_PDFContext:  class XuPDFScene_PDFContext:
267      def __init__(self):      def __init__(self):
268          self.mag = [(screensize[1]*1.5,20)]          self.mag = [(screensize[1]*1.5,20)]
# Line 286  class XuPDFScene_PDFContext: Line 304  class XuPDFScene_PDFContext:
304              checkGlobalCoords()              checkGlobalCoords()
305              print "Mouse ",globalx, globaly              print "Mouse ",globalx, globaly
306              AbstractUpdateManager.chg()              AbstractUpdateManager.chg()
307            else:
308                print "Unused mouse: ",ev
309      def scene(self, vs):      def scene(self, vs):
310          bg(vs)          bg(vs)
311          bf = effects.NadirCircleFloater_NoAnchor(vs, (self.ctrx, self.ctry), self.rad,          bf = effects.NadirCircleFloater_NoAnchor(vs, (self.ctrx, self.ctry), self.rad,

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

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