dos3d

changeset 18:777be77b6432

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 30 Nov 2011 00:06:28 +0200
parents 1e9f0b3616fa
children c10f62b2bd56
files src/test.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/src/test.c	Wed Nov 30 00:04:16 2011 +0200
     1.2 +++ b/src/test.c	Wed Nov 30 00:06:28 2011 +0200
     1.3 @@ -187,14 +187,14 @@
     1.4  
     1.5  	mgl_matrix_mode(MGL_MODELVIEW);
     1.6  	mgl_load_identity();
     1.7 +	mgl_translate(0, 0, -cam_zoom);
     1.8  	if(auto_rotate) {
     1.9 +		mgl_rotate(angle * 0.5, 1, 0, 0);
    1.10  		mgl_rotate(angle, 0, 0, 1);
    1.11 -		mgl_rotate(angle * 0.5, 1, 0, 0);
    1.12  	} else {
    1.13 +		mgl_rotate(cam_phi, 1, 0, 0);
    1.14  		mgl_rotate(cam_theta, 0, 1, 0);
    1.15 -		mgl_rotate(cam_phi, 1, 0, 0);
    1.16  	}
    1.17 -	mgl_translate(0, 0, -cam_zoom);
    1.18  
    1.19  	switch(prim) {
    1.20  	case TORUS: