oculus1

diff src/main.cc @ 29:9a973ef0e2a3

fixed the performance issue under MacOSX by replacing glutSolidTeapot (which uses glEvalMesh) with my own teapot generator.
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 27 Oct 2013 06:31:18 +0200
parents cedf581048c7
children
line diff
     1.1 --- a/src/main.cc	Sat Oct 26 04:24:16 2013 +0300
     1.2 +++ b/src/main.cc	Sun Oct 27 06:31:18 2013 +0200
     1.3 @@ -6,6 +6,7 @@
     1.4  #include "vr.h"
     1.5  #include "camera.h"
     1.6  #include "sdr.h"
     1.7 +#include "teapot.h"
     1.8  
     1.9  #ifdef __APPLE__
    1.10  #include <OpenGL/OpenGL.h>
    1.11 @@ -330,7 +331,8 @@
    1.12  	if(!tealist) {
    1.13  		tealist = glGenLists(1);
    1.14  		glNewList(tealist, GL_COMPILE);
    1.15 -		glutSolidTeapot(1.0);
    1.16 +		//glutSolidTeapot(1.0);
    1.17 +		bezier_teapot(1.0);
    1.18  		glEndList();
    1.19  	}
    1.20  
    1.21 @@ -341,6 +343,7 @@
    1.22  
    1.23  	glFrontFace(GL_CW);
    1.24  	glCallList(tealist);
    1.25 +	//bezier_teapot(1.0);
    1.26  	glFrontFace(GL_CCW);
    1.27  
    1.28  	glPopMatrix();