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 |
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 |
|
|