[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gfx/demo fontfilter.py
From: |
Janne V. Kujala |
Subject: |
[Gzz-commits] gzz/gfx/demo fontfilter.py |
Date: |
Wed, 29 Jan 2003 07:59:25 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Janne V. Kujala <address@hidden> 03/01/29 07:59:25
Modified files:
gfx/demo : fontfilter.py
Log message:
allow enabling/disabling of halo or text by setting the corresponding
scale to 0
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/demo/fontfilter.py.diff?tr1=1.8&tr2=1.9&r1=text&r2=text
Patches:
Index: gzz/gfx/demo/fontfilter.py
diff -u gzz/gfx/demo/fontfilter.py:1.8 gzz/gfx/demo/fontfilter.py:1.9
--- gzz/gfx/demo/fontfilter.py:1.8 Wed Jan 29 07:42:21 2003
+++ gzz/gfx/demo/fontfilter.py Wed Jan 29 07:59:25 2003
@@ -19,7 +19,7 @@
self.tex2 = GL.hasExtension("GL_NV_register_combiners2")
- self.textscales = [ 2, 4 ]
+ self.textscales = [ 2, 4, 0 ]
self.key = KeyPresses(self,
SlideLin("x", 0, 30, "x coord", "Left", "Right"),
SlideLin("y", 0, 30, "x coord", "Up", "Down"),
@@ -145,6 +145,8 @@
b = -(1 - 2 * (1 - self.halo_low)) * s
textscale = self.textscales[self.tscaleind]
+ foo = ""
+ if textscale == 0: foo = "(0)#"
if self.tex2:
halotex = "TEX2"
@@ -157,7 +159,7 @@
CONST1 = %(b)s %(b)s %(b)s 0
SPARE0 = ((1-2*%(halotex)s) * CONST0 + CONST1) * %(scale)s
- SPARE0.a = (CONST0.a * (1-TEX0.b) + (.5 - CONST0.a) * (1-TEX1.b)) *
%(textscale)s
+ SPARE0.a = %(foo)s(CONST0.a * (1-TEX0.b) + (.5 - CONST0.a) *
(1-TEX1.b)) * %(textscale)s
SPARE1.a = (1 - SPARE0.b) * (1-SPARE0.a)
- [Gzz-commits] gzz/gfx/demo fontfilter.py, Janne V. Kujala, 2003/01/28
- [Gzz-commits] gzz/gfx/demo fontfilter.py, Janne V. Kujala, 2003/01/29
- [Gzz-commits] gzz/gfx/demo fontfilter.py, Janne V. Kujala, 2003/01/29
- [Gzz-commits] gzz/gfx/demo fontfilter.py, Janne V. Kujala, 2003/01/29
- [Gzz-commits] gzz/gfx/demo fontfilter.py, Janne V. Kujala, 2003/01/29
- [Gzz-commits] gzz/gfx/demo fontfilter.py, Janne V. Kujala, 2003/01/29
- [Gzz-commits] gzz/gfx/demo fontfilter.py, Janne V. Kujala, 2003/01/29
- [Gzz-commits] gzz/gfx/demo fontfilter.py, Janne V. Kujala, 2003/01/29
- [Gzz-commits] gzz/gfx/demo fontfilter.py,
Janne V. Kujala <=
- [Gzz-commits] gzz/gfx/demo fontfilter.py, Janne V. Kujala, 2003/01/29
- [Gzz-commits] gzz/gfx/demo fontfilter.py, Janne V. Kujala, 2003/01/29
- [Gzz-commits] gzz/gfx/demo fontfilter.py, Janne V. Kujala, 2003/01/29