19 |
version = GL.getGLString("VERSION") |
version = GL.getGLString("VERSION") |
20 |
print "GL strings: '%s' '%s' '%s'"%( |
print "GL strings: '%s' '%s' '%s'"%( |
21 |
vendor,renderer,version) |
vendor,renderer,version) |
|
extensions = GL.getGLString("EXTENSIONS").split() |
|
22 |
# The backend files to load |
# The backend files to load |
23 |
files = [ |
files = [ |
24 |
"textures.py", |
"textures.py", |
32 |
# |
# |
33 |
|
|
34 |
# Check which texture operations to use. |
# Check which texture operations to use. |
35 |
if "GL_NV_texture_shader" in extensions: |
if GL.hasExtension("GL_NV_texture_shader"): |
36 |
# We can use the general texture shaders. |
# We can use the general texture shaders. |
37 |
# XXX Should check separately for texture_shader2, |
# XXX Should check separately for texture_shader2, |
38 |
# otherwise it'll be SLOW. |
# otherwise it'll be SLOW. |
44 |
|
|
45 |
|
|
46 |
# Check which combiners to use. |
# Check which combiners to use. |
47 |
if "GL_NV_register_combiners" in extensions: |
if GL.hasExtension("GL_NV_register_combiners"): |
48 |
# We have at least a NV10, possibly better. |
# We have at least a NV10, possibly better. |
49 |
# Check the number of general combiners to be sure. |
# Check the number of general combiners to be sure. |
50 |
maxcomb = GL.getGLFloat("MAX_GENERAL_COMBINERS_NV")[0] |
maxcomb = GL.getGLFloat("MAX_GENERAL_COMBINERS_NV")[0] |