deepstone

diff src/test.c @ 25:5ff8ce78059a

first pass at converting the rasterizer to fixed point
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 22 Sep 2013 02:21:30 +0300
parents 00d84ab1ef26
children 11d14f688485
line diff
     1.1 --- a/src/test.c	Sat Sep 21 20:18:28 2013 +0300
     1.2 +++ b/src/test.c	Sun Sep 22 02:21:30 2013 +0300
     1.3 @@ -270,6 +270,14 @@
     1.4  		}
     1.5  		break;
     1.6  
     1.7 +	case 'z':
     1.8 +		if(mgl_isenabled(MGL_DEPTH_TEST)) {
     1.9 +			mgl_disable(MGL_DEPTH_TEST);
    1.10 +		} else {
    1.11 +			mgl_enable(MGL_DEPTH_TEST);
    1.12 +		}
    1.13 +		break;
    1.14 +
    1.15  	case ' ':
    1.16  		auto_rotate = !auto_rotate;
    1.17  		break;