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

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

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

revision 1.15 by jvk, Mon Oct 7 14:22:25 2002 UTC revision 1.16 by jvk, Mon Oct 7 16:29:29 2002 UTC
# Line 34  def getCachedTexture(args): Line 34  def getCachedTexture(args):
34    
35      bintime = get_file_ctime(binfile)      bintime = get_file_ctime(binfile)
36      srctime = get_file_ctime(srcfile)      srctime = get_file_ctime(srcfile)
37      print binfile,bintime,srcfile,srctime  
38      if srctime > bintime:      if srctime > bintime:
39          os.system("make -C gfx/libtexture " + name + ".bin")          os.system("make -C gfx/libtexture " + name + ".bin")
40          bintime = get_file_ctime(binfile)          bintime = get_file_ctime(binfile)
41                    
42      key = str(args)      key = str(args)
43      if texcache.has_key(key) and texcache[(key,"ctime")] == srctime:      if texcache.has_key(key) and texcache[(key,"ctime")] == srctime:
44          print "Returning cached texture"          #print "Returning cached texture"
45          return texcache[key]          return texcache[key]
46    
47      tex = GL.createTexture()      tex = GL.createTexture()

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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