clray

diff src/clray.cc @ 58:3d13924b22e6

implementing polygon split
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 12 Sep 2010 00:19:04 +0100
parents 14c8ebe8f122
children
line diff
     1.1 --- a/src/clray.cc	Sat Sep 11 03:01:20 2010 +0100
     1.2 +++ b/src/clray.cc	Sun Sep 12 00:19:04 2010 +0100
     1.3 @@ -203,6 +203,11 @@
     1.4  				if(!render()) {
     1.5  					exit(1);
     1.6  				}
     1.7 +
     1.8 +				if(dbg_frame_time) {
     1.9 +					const RenderStats *rstat = get_render_stats();
    1.10 +					printf("render time (msec): %lu\n", rstat->render_time);
    1.11 +				}
    1.12  			}
    1.13  			need_update = false;
    1.14  		}
    1.15 @@ -242,10 +247,7 @@
    1.16  {
    1.17  	glViewport(0, 0, x, y);
    1.18  
    1.19 -	/* reallocate the framebuffer */
    1.20 -	/*delete [] fb;
    1.21 -	fb = new float[x * y * 4];
    1.22 -	set_framebuffer(fb, x, y);*/
    1.23 +	/* TODO reallocate the framebuffer to fit the window */
    1.24  }
    1.25  
    1.26  void idle()