tavli

diff src/game.cc @ 5:e48b40a3c82a

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 25 Jun 2015 20:43:34 +0300
parents 3fcd7b4d631f
children a0d30f6f20d4
line diff
     1.1 --- a/src/game.cc	Thu Jun 25 05:58:35 2015 +0300
     1.2 +++ b/src/game.cc	Thu Jun 25 20:43:34 2015 +0300
     1.3 @@ -9,7 +9,7 @@
     1.4  
     1.5  static Board board;
     1.6  
     1.7 -static float cam_theta, cam_phi = 25, cam_dist = 6;
     1.8 +static float cam_theta, cam_phi = 25, cam_dist = 3;
     1.9  static bool bnstate[8];
    1.10  static int prev_x, prev_y;
    1.11  
    1.12 @@ -22,6 +22,10 @@
    1.13  	glEnable(GL_LIGHTING);
    1.14  	glEnable(GL_LIGHT0);
    1.15  
    1.16 +	if(GLEW_ARB_multisample) {
    1.17 +		glEnable(GL_MULTISAMPLE);
    1.18 +	}
    1.19 +
    1.20  	if(!board.init()) {
    1.21  		return false;
    1.22  	}
    1.23 @@ -51,15 +55,6 @@
    1.24  	draw_backdrop();
    1.25  
    1.26  	board.draw();
    1.27 -
    1.28 -	/*
    1.29 -	glBegin(GL_QUADS);
    1.30 -	glNormal3f(0, 1, 0);
    1.31 -	glVertex3f(-1, 0, 1);
    1.32 -	glVertex3f(1, 0, 1);
    1.33 -	glVertex3f(1, 0, -1);
    1.34 -	glVertex3f(-1, 0, -1);
    1.35 -	glEnd();*/
    1.36  }
    1.37  
    1.38  static void draw_backdrop()
    1.39 @@ -96,7 +91,7 @@
    1.40  {
    1.41  	glMatrixMode(GL_PROJECTION);
    1.42  	glLoadIdentity();
    1.43 -	gluPerspective(50, (float)x / (float)y, 0.2, 200.0);
    1.44 +	gluPerspective(45, (float)x / (float)y, 0.2, 200.0);
    1.45  
    1.46  	glViewport(0, 0, x, y);
    1.47  }