diff options
Diffstat (limited to 'Smoke/renderer_gl.c')
-rw-r--r-- | Smoke/renderer_gl.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Smoke/renderer_gl.c b/Smoke/renderer_gl.c index 613307f..698bcf1 100644 --- a/Smoke/renderer_gl.c +++ b/Smoke/renderer_gl.c @@ -70,7 +70,6 @@ void renderer_load_raw_texture(char *filename) bitmap = fopen(filename, "rb"); if (bitmap > 0) { unsigned int filesize; - GLsizei width, height; unsigned char *imagedata; fseek(bitmap, 0, SEEK_END); @@ -767,6 +766,12 @@ static void render_streamlines(void) float scale = 10.0f; GLUquadricObj *qobj = gluNewQuadric(); struct color4f color; + int slices; + float radius; + + + slices = streamlines_get_slices(); + radius = streamlines_get_radius(); gluQuadricDrawStyle(qobj, GLU_FILL); gluQuadricNormals(qobj, GLU_FLAT); @@ -823,14 +828,14 @@ static void render_streamlines(void) case STREAMLINES_SORT_TUBES: glPushMatrix(); glTranslatef(p.x, p.y, j * cell_x); - gluCylinder(qobj, 8.0, 8.0, 16.0, 6, 6); + gluCylinder(qobj, radius, radius, 16.0f, slices, 1); glPopMatrix(); break; case STREAMLINES_SORT_SPHERES: glPushMatrix(); glTranslatef(p.x, p.y, j * cell_x); - gluSphere(qobj, 8.0f, 6, 6); + gluSphere(qobj, radius, slices, slices); glPopMatrix(); break; } |