/[libvob]/libvob/vob/paper/textures.py
ViewVC logotype

Diff of /libvob/vob/paper/textures.py

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

revision 1.1 by tjl, Thu Apr 10 14:00:19 2003 UTC revision 1.2 by mudyc, Fri May 2 00:06:30 2003 UTC
# Line 37  import org.nongnu.libvob.gl Line 37  import org.nongnu.libvob.gl
37  import java  import java
38  from math import exp  from math import exp
39    
40    dbg = 0
41    
42  texture_format = "RGBA"  texture_format = "RGBA"
43  texture_components = 4  texture_components = 4
44    
# Line 67  class NamedTexture: Line 69  class NamedTexture:
69    
70      def getTexId(self):      def getTexId(self):
71          if not hasattr(self, "texture"):          if not hasattr(self, "texture"):
72              print "Generating texture: ", self.name, self.args              if dbg:
73                    print "Generating texture: ", self.name, self.args
74              self.texture = getCachedTexture(self.args)              self.texture = getCachedTexture(self.args)
75              # XXX: FIXME: 1D/3D textures!!!              # XXX: FIXME: 1D/3D textures!!!
76              target = "TEXTURE_2D"              target = "TEXTURE_2D"
# Line 425  class Textures: Line 428  class Textures:
428              text_comps, text_form = 4, 'RGBA'              text_comps, text_form = 4, 'RGBA'
429                            
430          self.textures = init(text_comps, text_form)          self.textures = init(text_comps, text_form)
431          print "Textures created: components: %d, format: %s" % (text_comps, text_form)          if dbg:
432                print "Textures created: components: %d, format: %s" % (text_comps, text_form)
433    
434                    
435      def getPaperTexture(self, type, gen):      def getPaperTexture(self, type, gen):

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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