glviewvol

diff src/main.cc @ 8:fb6d93471352

main thing done
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 30 Dec 2014 20:03:32 +0200
parents 71b479ffb9f7
children 73edd1b7c2da
line diff
     1.1 --- a/src/main.cc	Tue Dec 30 17:28:38 2014 +0200
     1.2 +++ b/src/main.cc	Tue Dec 30 20:03:32 2014 +0200
     1.3 @@ -95,6 +95,17 @@
     1.4  static void key_down(unsigned char key, int x, int y)
     1.5  {
     1.6  	mod = glutGetModifiers();
     1.7 +
     1.8 +	switch(key) {
     1.9 +	case 'i':
    1.10 +		{
    1.11 +			static bool fullrate;
    1.12 +			fullrate = !fullrate;
    1.13 +			glutIdleFunc(fullrate ? glutPostRedisplay : 0);
    1.14 +		}
    1.15 +		break;
    1.16 +	}
    1.17 +
    1.18  	ev_keyboard(key, 1, x, y);
    1.19  }
    1.20