/[gzz]/gzz/gzz/view/xubuoy.py
ViewVC logotype

Diff of /gzz/gzz/view/xubuoy.py

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

revision 1.38 by humppake, Wed Dec 11 22:25:40 2002 UTC revision 1.39 by tjl, Thu Dec 12 18:41:48 2002 UTC
# Line 58  filters = [""" Line 58  filters = ["""
58      TexParameter TEXTURE_2D TEXTURE_MAX_ANISOTROPY_EXT 10      TexParameter TEXTURE_2D TEXTURE_MAX_ANISOTROPY_EXT 10
59  """,  """,
60  """  """
61        TexParameter TEXTURE_2D TEXTURE_MIN_FILTER LINEAR_MIPMAP_LINEAR
62        TexParameter TEXTURE_2D TEXTURE_MAG_FILTER NEAREST
63        TexParameter TEXTURE_2D TEXTURE_MAX_ANISOTROPY_EXT 1
64    """,
65    """
66      TexParameter TEXTURE_2D TEXTURE_MIN_FILTER LINEAR_MIPMAP_NEAREST      TexParameter TEXTURE_2D TEXTURE_MIN_FILTER LINEAR_MIPMAP_NEAREST
67      TexParameter TEXTURE_2D TEXTURE_MAG_FILTER NEAREST      TexParameter TEXTURE_2D TEXTURE_MAG_FILTER NEAREST
68      TexParameter TEXTURE_2D TEXTURE_MAX_ANISOTROPY_EXT 1      TexParameter TEXTURE_2D TEXTURE_MAX_ANISOTROPY_EXT 1
# Line 74  def getCellPDFView(cell): Line 79  def getCellPDFView(cell):
79  def background(rgb):  def background(rgb):
80      return gzz.vob.vobs.SolidBgVob(java.awt.Color(float(rgb[0]), float(rgb[1]), float(rgb[2])))      return gzz.vob.vobs.SolidBgVob(java.awt.Color(float(rgb[0]), float(rgb[1]), float(rgb[2])))
81    
82    showFPS = 0
83    
84  fps_text = GLRen.createHorizText2(getFont(), "FOO", 1, 1, 1, 1)  fps_text = GLRen.createHorizText2(getFont(), "FOO", 1, 1, 1, 1)
85  GL.setDebugVar("JNI.fps", 1)  GL.setDebugVar("JNI.fps", 1)
86  # Show the intended screen size  # Show the intended screen size
87  def bg(vs):  def bg(vs, color):
88        vs.map.put(background(color))
89      if 0:      if 0:
90          vs.map.put(GLCache.getCallList("""          vs.map.put(GLCache.getCallList("""
91              Disable TEXTURE_2D              Disable TEXTURE_2D
# Line 91  def bg(vs): Line 99  def bg(vs):
99              End              End
100              Enable TEXTURE_2D              Enable TEXTURE_2D
101          """ % { "w": screensize[0], "h": screensize[1] } ) )          """ % { "w": screensize[0], "h": screensize[1] } ) )
102          #fps = vs.coords.ortho(0, 10, 10, 20, 30.5, 30.5)      if showFPS:
103          #vs.matcher.add(fps, "FPS")          fps = vs.coords.ortho(0, 10, 10, 20, 30.5, 30.5)
104          #vs.map.put(fps_text, fps, 0)          vs.matcher.add(fps, "FPS")
105            vs.map.put(fps_text, fps, 0)
106            
107  style = gzz.client.GraphicsAPI.getInstance().getTextStyle("SansSerif", java.awt.Font.PLAIN, 10)  style = gzz.client.GraphicsAPI.getInstance().getTextStyle("SansSerif", java.awt.Font.PLAIN, 10)
108  contview = gzz.view.LinebrokenCellContentView(style)  contview = gzz.view.LinebrokenCellContentView(style)
# Line 201  class XuPDFBuoy: Line 210  class XuPDFBuoy:
210    
211          if nadircs != None:          if nadircs != None:
212              cs1_nad = vs.coords.nadirOrigin(cs1, nadircs)              cs1_nad = vs.coords.nadirOrigin(cs1, nadircs)
213              vs.matcher.addSub(cs1, cs1_nad, "N")              vs.matcher.add(cs1, cs1_nad, "N")
214              cs1 = cs1_nad              cs1 = cs1_nad
215    
216          if hasattr(self, 'pctr'):          if hasattr(self, 'pctr'):
# Line 442  class XuPDFScene_PDFContext: Line 451  class XuPDFScene_PDFContext:
451              self.showtessel = not self.showtessel              self.showtessel = not self.showtessel
452              AbstractUpdateManager.setNoAnimation()              AbstractUpdateManager.setNoAnimation()
453              AbstractUpdateManager.chg()              AbstractUpdateManager.chg()
454            elif key == 'T':
455                global showFPS
456                showFPS = 1 - showFPS
457                AbstractUpdateManager.chg()
458          elif key == 's':          elif key == 's':
459              # select some rect at random              # select some rect at random
460              # for testing w/o mouse :-)              # for testing w/o mouse :-)
# Line 593  class XuPDFScene_PDFContext: Line 606  class XuPDFScene_PDFContext:
606              AbstractUpdateManager.chg()              AbstractUpdateManager.chg()
607    
608      def scene(self, vs):      def scene(self, vs):
609          vs.map.put(background(self.bgcolor))          bg(vs,self.bgcolor)
610    
611          swidth = vs.size.width          swidth = vs.size.width
612          sheight = vs.size.height          sheight = vs.size.height
# Line 626  class XuPDFScene_PDFContext: Line 639  class XuPDFScene_PDFContext:
639          vs.matcher.add(cs1, self.cursor.getId())          vs.matcher.add(cs1, self.cursor.getId())
640    
641          cs1_nad = vs.coords.nadirOrigin(cs1, nadircs)          cs1_nad = vs.coords.nadirOrigin(cs1, nadircs)
642          vs.matcher.addSub(cs1, cs1_nad, "N")          vs.matcher.add(cs1, cs1_nad, "N")
643          cs1 = cs1_nad          cs1 = cs1_nad
644    
645          mf = self.modes[0].movefocus          mf = self.modes[0].movefocus

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

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