/[fenfire]/fenfire/org/fenfire/spanimages/gl/papermakers.py
ViewVC logotype

Diff of /fenfire/org/fenfire/spanimages/gl/papermakers.py

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

revision 1.4 by tjl, Thu Jun 26 08:53:54 2003 UTC revision 1.5 by tjl, Mon Jul 14 14:12:21 2003 UTC
# Line 15  anisofilter = """ Line 15  anisofilter = """
15  #   TexParameter TEXTURE_2D TEXTURE_MAX_ANISOTROPY_EXT 10  #   TexParameter TEXTURE_2D TEXTURE_MAX_ANISOTROPY_EXT 10
16  """  """
17    
18  def white(w = None, paperMill = None, filter = anisofilter):  def getPaperMill(paperMill, paperOffset):
19        if paperMill:
20            return paperMill
21        return PaperMill.getInstance()
22    
23    def white(w = None, paperMill = None, paperOffset = 0,
24                filter = anisofilter):
25      return PlainPaperMaker(1, """      return PlainPaperMaker(1, """
26          TexEnv TEXTURE_ENV TEXTURE_ENV_MODE REPLACE          TexEnv TEXTURE_ENV TEXTURE_ENV_MODE REPLACE
27         Enable TEXTURE_2D         Enable TEXTURE_2D
# Line 23  def white(w = None, paperMill = None, fi Line 29  def white(w = None, paperMill = None, fi
29      """ + filter, """      """ + filter, """
30      """, None)      """, None)
31    
32  def fancyBlend(w, paperMill = None, filter = anisofilter):  def fancyBlend(w, paperMill = None, paperOffset = 0,
33                filter = anisofilter):
34      if paperMill == None:      if paperMill == None:
35          paperMill = PaperMill.getInstance()          paperMill = PaperMill.getInstance()
36      return PlainPaperMaker(1,      return PlainPaperMaker(1,
# Line 93  class HaloPaperMaker_2tex(PlainPaperMake Line 100  class HaloPaperMaker_2tex(PlainPaperMake
100          return p          return p
101    
102    
103  def fancyHalo(w, paperMill = None):  def fancyHalo(w, paperMill = None, paperOffset = 0):
104      if not GL.hasExtension("GL_NV_register_combiners"):      if not GL.hasExtension("GL_NV_register_combiners"):
105          print "fancy Halo for text not possible without GL_NV_register_combiners"          print "fancy Halo for text not possible without GL_NV_register_combiners"
106          print "Punting to standard blend"          print "Punting to standard blend"
# Line 135  if GL.hasExtension("GL_ARB_fragment_prog Line 142  if GL.hasExtension("GL_ARB_fragment_prog
142      END      END
143      """)      """)
144    
145  def fancyBlur(w, paperMill = None):  def fancyBlur(w, paperMill = None, paperOffset = 0):
146      if not blurProgram:      if not blurProgram:
147          print "Fancy blurring is not possible without GL_ARB_fragment_program."          print "Fancy blurring is not possible without GL_ARB_fragment_program."
148          print "Punting to Fancy halo"          print "Punting to Fancy halo"

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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