rayfract

diff src/gui.cc @ 6:8a9aa21b32cf

added spaceball support through GLUT
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 18 Jun 2011 01:04:25 +0300
parents 48e0e7d33d9e
children 1496aae2e7d4
line diff
     1.1 --- a/src/gui.cc	Sat May 28 22:31:07 2011 +0300
     1.2 +++ b/src/gui.cc	Sat Jun 18 01:04:25 2011 +0300
     1.3 @@ -37,7 +37,9 @@
     1.4  	}
     1.5  
     1.6  	imtk_begin();
     1.7 -	imtk_layout_start(10, 10, 10, IMTK_HORIZONTAL);
     1.8 +	imtk_layout_start(10, 10);
     1.9 +	imtk_layout_spacing(10);
    1.10 +	imtk_layout_dir(IMTK_HORIZONTAL);
    1.11  
    1.12  	imtk_label("seed x", IMTK_AUTO, IMTK_AUTO);
    1.13  	seed.x = imtk_slider(IMUID, seed.x, -1.0, 1.0, IMTK_AUTO, IMTK_AUTO);
    1.14 @@ -56,6 +58,7 @@
    1.15  	imtk_layout_newline();
    1.16  
    1.17  	imtk_label("iterations", IMTK_AUTO, IMTK_AUTO);
    1.18 +	fiter = (float)iter;
    1.19  	fiter = imtk_slider(IMUID, fiter, 0, 32, IMTK_AUTO, IMTK_AUTO);
    1.20  	iter = round(fiter);
    1.21  	imtk_layout_newline();
    1.22 @@ -63,7 +66,7 @@
    1.23  	imtk_label("max error", IMTK_AUTO, IMTK_AUTO);
    1.24  	err_thres = imtk_slider(IMUID, err_thres, 0, 0.075, IMTK_AUTO, IMTK_AUTO);
    1.25  
    1.26 -	imtk_layout_start(280, 10, 10, IMTK_HORIZONTAL);
    1.27 +	imtk_layout_start(280, 10);
    1.28  	imtk_label("reflectivity", IMTK_AUTO, IMTK_AUTO);
    1.29  	reflectivity = imtk_slider(IMUID, reflectivity, 0, 1.0, IMTK_AUTO, IMTK_AUTO);
    1.30  	imtk_layout_newline();