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() |
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 |