conworlds

diff src/main.cc @ 7:bd8202d6d28d

some progress...
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 22 Aug 2014 16:55:16 +0300
parents 3c36bc28c6c2
children c2eecf764daa
line diff
     1.1 --- a/src/main.cc	Thu Aug 21 01:08:03 2014 +0300
     1.2 +++ b/src/main.cc	Fri Aug 22 16:55:16 2014 +0300
     1.3 @@ -50,6 +50,12 @@
     1.4  	if(!game_init()) {
     1.5  		return false;
     1.6  	}
     1.7 +
     1.8 +	int win_xsz = vr_get_opti(VR_OPT_DISPLAY_WIDTH);
     1.9 +	int win_ysz = vr_get_opti(VR_OPT_DISPLAY_HEIGHT);
    1.10 +	if(win_xsz && win_ysz) {
    1.11 +		glutReshapeWindow(win_xsz, win_ysz);
    1.12 +	}
    1.13  	return true;
    1.14  }
    1.15  
    1.16 @@ -63,7 +69,7 @@
    1.17  	unsigned int msec = glutGet(GLUT_ELAPSED_TIME);
    1.18  
    1.19  	game_update(msec);
    1.20 -	game_render(0);
    1.21 +	game_render();
    1.22  
    1.23  	if(!vr_swap_buffers()) {
    1.24  		glutSwapBuffers();