tavli

diff src/game.cc @ 6:a0d30f6f20d4

- texture coordinate generation in class Mesh - wood texture
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 26 Jun 2015 04:22:06 +0300
parents e48b40a3c82a
children 464c45a0bc24
line diff
     1.1 --- a/src/game.cc	Thu Jun 25 20:43:34 2015 +0300
     1.2 +++ b/src/game.cc	Fri Jun 26 04:22:06 2015 +0300
     1.3 @@ -52,8 +52,10 @@
     1.4  	glRotatef(cam_phi, 1, 0, 0);
     1.5  	glRotatef(cam_theta, 0, 1, 0);
     1.6  
     1.7 +	float ldir[] = {-1, 2, 1, 0};
     1.8 +	glLightfv(GL_LIGHT0, GL_POSITION, ldir);
     1.9 +
    1.10  	draw_backdrop();
    1.11 -
    1.12  	board.draw();
    1.13  }
    1.14