/[gzz]/gzz/gfx/libpaper/papermill.py
ViewVC logotype

Diff of /gzz/gfx/libpaper/papermill.py

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

revision 1.28 by tjl, Mon Sep 23 08:37:04 2002 UTC revision 1.29 by tjl, Mon Sep 23 14:39:25 2002 UTC
# Line 19  def initialize(): Line 19  def initialize():
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",
# Line 33  def initialize(): Line 32  def initialize():
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.
# Line 45  def initialize(): Line 44  def initialize():
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]

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

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