deepstone
diff src/test.c @ 28:11d14f688485
added clipping
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 22 Sep 2013 06:38:08 +0300 |
parents | 5ff8ce78059a |
children |
line diff
1.1 --- a/src/test.c Sun Sep 22 02:47:46 2013 +0300 1.2 +++ b/src/test.c Sun Sep 22 06:38:08 2013 +0300 1.3 @@ -286,6 +286,14 @@ 1.4 prim = (prim + 1) % NUM_PRIMS; 1.5 break; 1.6 1.7 + case 'c': 1.8 + if(mgl_isenabled(MGL_CULL_FACE)) { 1.9 + mgl_disable(MGL_CULL_FACE); 1.10 + } else { 1.11 + mgl_enable(MGL_CULL_FACE); 1.12 + } 1.13 + break; 1.14 + 1.15 default: 1.16 break; 1.17 }