clray

diff src/clray.cc @ 50:d3c46803242e

- added button to stop the timing messages
author John Tsiombikas
date Tue, 31 Aug 2010 02:54:37 +0100
parents 1ae68d46cfda
children 55b30d8b6805
line diff
     1.1 --- a/src/clray.cc	Tue Aug 31 01:28:20 2010 +0100
     1.2 +++ b/src/clray.cc	Tue Aug 31 02:54:37 2010 +0100
     1.3 @@ -36,11 +36,11 @@
     1.4  static bool dbg_glrender = false;
     1.5  static bool dbg_show_kdtree = false;
     1.6  static bool dbg_show_obj = true;
     1.7 +bool dbg_frame_time = true;
     1.8  
     1.9  static Scene scn;
    1.10  static unsigned int tex;
    1.11  
    1.12 -
    1.13  int main(int argc, char **argv)
    1.14  {
    1.15  	glutInitWindowSize(800, 600);
    1.16 @@ -318,6 +318,10 @@
    1.17  		capture("shot%03d.ppm");
    1.18  		break;
    1.19  
    1.20 +	case 't':
    1.21 +		dbg_frame_time = !dbg_frame_time;
    1.22 +		break;
    1.23 +
    1.24  	default:
    1.25  		break;
    1.26  	}