tavli

diff src/board.cc @ 23:3e6430028d54

slot highlghting
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 08 Jul 2015 02:31:36 +0300
parents c2a2069a49ec
children 0aadb519b5ee
line diff
     1.1 --- a/src/board.cc	Tue Jul 07 21:56:37 2015 +0300
     1.2 +++ b/src/board.cc	Wed Jul 08 02:31:36 2015 +0300
     1.3 @@ -268,7 +268,7 @@
     1.4  
     1.5  		glBegin(GL_TRIANGLES);
     1.6  		//glColor3fv(pal[idx % (sizeof pal / sizeof *pal)]);
     1.7 -		glColor4f(1, 1, 1, 0.4);
     1.8 +		glColor4f(1, 1, 1, 0.5);
     1.9  		glTexCoord2f(0, 0);
    1.10  		glVertex3f(slotbb[idx].tri0.v[0].x, slotbb[idx].tri0.v[0].y, slotbb[idx].tri0.v[0].z);
    1.11  		glTexCoord2f(1, 0);
    1.12 @@ -572,6 +572,9 @@
    1.13  	}
    1.14  	img_highlight.texture();
    1.15  
    1.16 +	float kern[] = {1,   5,   11,  18,  22,  18,  11,  5,   1};
    1.17 +	convolve_horiz_image(&img_highlight, kern, sizeof kern / sizeof *kern);
    1.18 +	convolve_vert_image(&img_highlight, kern, sizeof kern / sizeof *kern);
    1.19  
    1.20  	// ---- generic wood texture ----
    1.21  	img_wood.create(256, 256);