/[gzz]/gzz/gfx/libpaper/papermill.py
ViewVC logotype

Diff of /gzz/gfx/libpaper/papermill.py

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

revision 1.60 by mudyc, Mon Nov 11 20:27:50 2002 UTC revision 1.61 by jvk, Wed Nov 13 22:48:56 2002 UTC
# Line 58  else: Line 58  else:
58      print "NEED FIX - DOES _NOT_ WORK : Using OpenGL 1.1 texenv and blending"      print "NEED FIX - DOES _NOT_ WORK : Using OpenGL 1.1 texenv and blending"
59      from gfx.libpaper.texcomb_GL1_1 import *      from gfx.libpaper.texcomb_GL1_1 import *
60    
   
61  # Check whether anisotropic filtering is supported  # Check whether anisotropic filtering is supported
62  if GL.hasExtension("GL_EXT_texture_filter_anisotropic"):  if GL.hasExtension("GL_EXT_texture_filter_anisotropic"):
63      maxaniso = 2.0      maxaniso = 2.0
# Line 145  class ThePaperMill(PaperMill): Line 144  class ThePaperMill(PaperMill):
144      def getOptimizedPaper(self, seed, w, passmask = [1, 1, 1, 1, 1, 1, 1]):      def getOptimizedPaper(self, seed, w, passmask = [1, 1, 1, 1, 1, 1, 1]):
145          pap = self.getPaper(seed, passmask)          pap = self.getPaper(seed, passmask)
146    
147            if not GL.hasExtension("GL_SGIS_generate_mipmap"):
148                print "Warning: not returning optimized paper because"
149                print "GL_SGIS_generate_mipmap extension is required but not available"
150                return pap
151    
152          # Now, we render a region.          # Now, we render a region.
153          v = pap.repeat._getSTVectors()          v = pap.repeat._getSTVectors()
154    

Legend:
Removed from v.1.60  
changed lines
  Added in v.1.61

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