/[gzz]/gzz/gfx/libutil/nvcode.py
ViewVC logotype

Diff of /gzz/gfx/libutil/nvcode.py

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

revision 1.1 by tjl, Tue Sep 10 18:53:37 2002 UTC revision 1.2 by jvk, Wed Oct 9 14:07:27 2002 UTC
# Line 15  def combinercode(c): Line 15  def combinercode(c):
15                  replace(" F ", " VARIABLE_F_NV ").                  replace(" F ", " VARIABLE_F_NV ").
16                  replace(" G ", " VARIABLE_G_NV ")                  replace(" G ", " VARIABLE_G_NV ")
17                  )                  )
18    
19    # return the NV_register_combiner scale that matches x best
20    def combinerscale(x):
21        if x < .75: return "SCALE_BY_ONE_HALF_NV"
22        elif x < 1.5: return "NONE"
23        elif x < 3: return "SCALE_BY_TWO_NV"
24        return "SCALE_BY_FOUR_NV"

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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