[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gfx/libutil effects.py
From: |
Matti Katila |
Subject: |
[Gzz-commits] gzz/gfx/libutil effects.py |
Date: |
Fri, 10 Jan 2003 07:38:44 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Matti Katila <address@hidden> 03/01/10 07:38:44
Modified files:
gfx/libutil : effects.py
Log message:
pp changes
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libutil/effects.py.diff?tr1=1.27&tr2=1.28&r1=text&r2=text
Patches:
Index: gzz/gfx/libutil/effects.py
diff -u gzz/gfx/libutil/effects.py:1.27 gzz/gfx/libutil/effects.py:1.28
--- gzz/gfx/libutil/effects.py:1.27 Fri Dec 13 07:16:06 2002
+++ gzz/gfx/libutil/effects.py Fri Jan 10 07:38:44 2003
@@ -34,9 +34,17 @@
combiners = "Enable"
def __init__(self, x0, y0, x1, y1, border, ripple,
- contentColor=java.awt.Color.white,
- frameColor=java.awt.Color.black,
+ typeInt=0,
+ contentColor=java.awt.Color.white,
+ frameColor=java.awt.Color.black,
type = "square"):
+
+ if typeInt == 1:
+ type = 'square'
+ elif typeInt == 2:
+ type = 'ellipse'
+
+
print "Texture id:", self.tex.getTexId()
def code(color):
@@ -88,7 +96,7 @@
def code2(color):
return parseCombiner("""
- PushAttrib ENABLE_BIT TEXTURE_BIT
+ PushAttrib ENABLE_BIT TEXTURE_BIT COLOR_BUFFER_BIT
CombinerParameterNV CONSTANT_COLOR0_NV %(color)s 1
Enable REGISTER_COMBINERS_NV
@@ -140,18 +148,18 @@
SHIFTS8 = 256;
self._content = GLRen.createIrregularEdge(
- 0, texscale, 2.0, 128, 0,
- -.5 * ripple_scale * texscale,
- .5 * ripple_scale * texscale,
+ 8, texscale, 2.0, 128, 0,
+ -1 * ripple_scale * texscale,
+ 0 * ripple_scale * texscale,
0, "1 1 1 1 0 0 0 0", "", 3, 0,
SLICE_1D + Y_SECCOLOR + INSIDE,
code2(contentColor),
1.0)
self._frame = GLRen.createIrregularEdge(
- 0, texscale, 2.0, 128, 0,
- -.5 * ripple_scale * texscale,
- .5 * ripple_scale * texscale,
+ 8, texscale, 2.0, 128, 0,
+ -1 * ripple_scale * texscale,
+ 0 * ripple_scale * texscale,
0, "1 1 1 1 0 0 0 0", "", 3, 0,
SLICE_1D + Y_SECCOLOR + DOTVEC_COLOR + INTERP_DOTVEC,
code2(frameColor),
- [Gzz-commits] gzz/gfx/libutil effects.py,
Matti Katila <=