summaryrefslogtreecommitdiffstats
path: root/Smoke/renderer_gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'Smoke/renderer_gl.c')
-rw-r--r--Smoke/renderer_gl.c66
1 files changed, 33 insertions, 33 deletions
diff --git a/Smoke/renderer_gl.c b/Smoke/renderer_gl.c
index 1e2e27c..84f15d6 100644
--- a/Smoke/renderer_gl.c
+++ b/Smoke/renderer_gl.c
@@ -375,7 +375,7 @@ static void render_glyph(GLUquadricObj *qobj, float x_value, float y_value, floa
x0 = wn + (fftw_real)i * wn;
y0 = hn + (fftw_real)j * hn;
- z0 = 100.0f;
+ z0 = 16.0f;
x1 = x0 + (vec_scale * x_value)/4;
y1 = y0 + (vec_scale * y_value)/4;
@@ -606,115 +606,115 @@ static void render_isolines(void)
{
case 1:
x0 = 0;
- y0 = percentage(v3, v0, threshold, 0) * hn;
- x1 = percentage(v1, v0, threshold, 0) * wn;
+ y0 = percentage(v3, v0, threshold) * hn;
+ x1 = percentage(v1, v0, threshold) * wn;
y1 = hn;
break;
case 2:
- x0 = percentage(v1, v0, threshold, 0) * wn;
+ x0 = percentage(v1, v0, threshold) * wn;
y0 = hn;
x1 = wn;
- y1 = percentage(v2, v1, threshold, 0) * hn;
+ y1 = percentage(v2, v1, threshold) * hn;
break;
case 3:
x0 = 0;
- y0 = percentage(v3, v0, threshold, 0) * hn;
+ y0 = percentage(v3, v0, threshold) * hn;
x1 = wn;
- y1 = percentage(v2, v1, threshold, 0) * hn;
+ y1 = percentage(v2, v1, threshold) * hn;
break;
case 4:
- x0 = percentage(v3, v2, threshold, 0) * wn;
+ x0 = percentage(v3, v2, threshold) * wn;
y0 = 0;
x1 = wn;
- y1 = percentage(v2, v1, threshold, 0) * hn;
+ y1 = percentage(v2, v1, threshold) * hn;
break;
case 5:
x0 = 0;
- y0 = percentage(v3, v0, threshold, 0) * hn;
- x1 = percentage(v1, v0, threshold, 0) * wn;
+ y0 = percentage(v3, v0, threshold) * hn;
+ x1 = percentage(v1, v0, threshold) * wn;
y1 = hn;
glVertex3i(x_offset + x0, y_offset + y0, 5.0f);
glVertex3i(x_offset + x1, y_offset + y1, 5.0f);
- x0 = percentage(v3, v2, threshold, 0) * wn;
+ x0 = percentage(v3, v2, threshold) * wn;
y0 = 0;
x1 = wn;
- y1 = percentage(v2, v1, threshold, 0) * hn;
+ y1 = percentage(v2, v1, threshold) * hn;
break;
case 6:
- x0 = percentage(v3, v2, threshold, 0) * wn;
+ x0 = percentage(v3, v2, threshold) * wn;
y0 = 0;
- x1 = percentage(v1, v0, threshold, 0) * wn;
+ x1 = percentage(v1, v0, threshold) * wn;
y1 = hn;
break;
case 7:
- x0 = percentage(v3, v2, threshold, 0) * wn;
+ x0 = percentage(v3, v2, threshold) * wn;
y0 = 0;
x1 = 0;
- y1 = percentage(v3, v0, threshold, 0) * hn;
+ y1 = percentage(v3, v0, threshold) * hn;
break;
case 8:
- x0 = percentage(v3, v2, threshold, 0) * wn;
+ x0 = percentage(v3, v2, threshold) * wn;
y0 = 0;
x1 = 0;
- y1 = percentage(v3, v0, threshold, 0) * hn;
+ y1 = percentage(v3, v0, threshold) * hn;
break;
case 9:
- x0 = percentage(v3, v2, threshold, 0) * wn;
+ x0 = percentage(v3, v2, threshold) * wn;
y0 = 0;
- x1 = percentage(v1, v0, threshold, 0) * wn;
+ x1 = percentage(v1, v0, threshold) * wn;
y1 = hn;
break;
case 10:
x0 = 0;
- y0 = percentage(v3, v0, threshold, 0) * hn;
- x1 = percentage(v1, v0, threshold, 0) * wn;
+ y0 = percentage(v3, v0, threshold) * hn;
+ x1 = percentage(v1, v0, threshold) * wn;
y1 = hn;
glVertex3i(x_offset + x0, y_offset + y0, 5.0f);
glVertex3i(x_offset + x1, y_offset + y1, 5.0f);
- x0 = percentage(v3, v2, threshold, 0) * wn;
+ x0 = percentage(v3, v2, threshold) * wn;
y0 = 0;
x1 = wn;
- y1 = percentage(v2, v1, threshold, 0) * hn;
+ y1 = percentage(v2, v1, threshold) * hn;
break;
case 11:
- x0 = percentage(v3, v2, threshold, 0) * wn;
+ x0 = percentage(v3, v2, threshold) * wn;
y0 = 0;
x1 = wn;
- y1 = percentage(v2, v1, threshold, 0) * hn;
+ y1 = percentage(v2, v1, threshold) * hn;
break;
case 12:
x0 = 0;
- y0 = percentage(v3, v0, threshold, 0) * hn;
+ y0 = percentage(v3, v0, threshold) * hn;
x1 = wn;
- y1 = percentage(v2, v1, threshold, 0) * hn;
+ y1 = percentage(v2, v1, threshold) * hn;
break;
case 13:
- x0 = percentage(v1, v0, threshold, 0) * wn;
+ x0 = percentage(v1, v0, threshold) * wn;
y0 = hn;
x1 = wn;
- y1 = percentage(v2, v1, threshold, 0) * hn;
+ y1 = percentage(v2, v1, threshold) * hn;
break;
case 14:
x0 = 0;
- y0 = percentage(v3, v0, threshold, 0) * hn;
- x1 = percentage(v1, v0, threshold, 0) * wn;
+ y0 = percentage(v3, v0, threshold) * hn;
+ x1 = percentage(v1, v0, threshold) * wn;
y1 = hn;
break;