24 |
# Some code to make it easier to deal with NVidia |
# Some code to make it easier to deal with NVidia |
25 |
# OpenGL extensions |
# OpenGL extensions |
26 |
|
|
27 |
|
dbg = 0 |
28 |
|
|
29 |
def combinercode(c): |
def combinercode(c): |
30 |
return (c.replace("CI0", "CombinerInputNV COMBINER0_NV"). |
return (c.replace("CI0", "CombinerInputNV COMBINER0_NV"). |
31 |
replace("CI1", "CombinerInputNV COMBINER1_NV"). |
replace("CI1", "CombinerInputNV COMBINER1_NV"). |
904 |
fp = fpcodes[fpcode] |
fp = fpcodes[fpcode] |
905 |
else: |
else: |
906 |
fp = GL.createProgram(fpcode) |
fp = GL.createProgram(fpcode) |
907 |
print "Creating fragment program %s" % fp.getProgId() |
if dbg: |
908 |
|
print "Creating fragment program %s" % fp.getProgId() |
909 |
fpcodes[fpcode] = fp |
fpcodes[fpcode] = fp |
910 |
|
|
911 |
return """ |
return """ |