/[gzz]/gzz/gfx/libutil/effects.py
ViewVC logotype

Diff of /gzz/gfx/libutil/effects.py

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

revision 1.20 by tjl, Sat Nov 2 13:17:06 2002 UTC revision 1.21 by tjl, Sat Nov 2 18:30:18 2002 UTC
# Line 1  Line 1 
1  from gzz.gfx.gl import GL, GLRen, GLSpans, Paper, GLCache  from gzz.gfx.gl import GL, GLRen, GLSpans, Paper, GLCache,IrregularFrame
2  from gzz.vob.buoy import Buoy3Floater, Buoy4Floater  from gzz.vob.buoy import Buoy3Floater, Buoy4Floater
3  import math  import math
4    
5    
6  class IrreguFrame:  class IrreguFrame(IrregularFrame):
7      dicefactor = 0.8      dicefactor = 0.8
8    
9      tex = GL.createTexture()      tex = GL.createTexture()
# Line 65  class IrreguFrame: Line 65  class IrreguFrame:
65                  self.combiners)                  self.combiners)
66    
67    
68          self.content = GLRen.createIrregularQuad(x0, y0, x1, y1, border, ripple, 0, code, self.dicefactor)          self._content = GLRen.createIrregularQuad(x0, y0, x1, y1, border, ripple, 0, code, self.dicefactor)
69          self.frame = GLRen.createIrregularQuad(x0, y0, x1, y1, border, ripple, 1, code, self.dicefactor)          self._frame = GLRen.createIrregularQuad(x0, y0, x1, y1, border, ripple, 1, code, self.dicefactor)
70    
71        def getContent(self): return self._content
72        def getFrame(self): return self._frame
73        def getBlank(self): return self._frame

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

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