clray
diff src/clray.cc @ 15:754faf15ba36
burp
author | John Tsiombikas |
---|---|
date | Sun, 08 Aug 2010 09:51:45 +0100 |
parents | 407935b73af3 |
children | 4b1604f9798a |
line diff
1.1 --- a/src/clray.cc Sat Aug 07 03:36:36 2010 +0100 1.2 +++ b/src/clray.cc Sun Aug 08 09:51:45 2010 +0100 1.3 @@ -26,6 +26,7 @@ 1.4 static float cam_dist = 10.0; 1.5 1.6 static bool dbg_glrender = true; 1.7 +static int dbg_dbg = 8; 1.8 1.9 static Scene scn; 1.10 1.11 @@ -172,6 +173,18 @@ 1.12 glutPostRedisplay(); 1.13 break; 1.14 1.15 + case '=': 1.16 + dbg_set_dbg(++dbg_dbg); 1.17 + need_update = true; 1.18 + glutPostRedisplay(); 1.19 + break; 1.20 + 1.21 + case '-': 1.22 + dbg_set_dbg(--dbg_dbg); 1.23 + need_update = true; 1.24 + glutPostRedisplay(); 1.25 + break; 1.26 + 1.27 default: 1.28 break; 1.29 }