void mostra_text(char cadena[], float x, float y) {
	int tmp, len = strlen(cadena);
	float count;
	x -= len*SEPARACIO/2.0f;		//Per centrar el text a les coordenades
	
	for(tmp=0; tmp < len; tmp++) {
		if (tmp >= 1) {
			switch(cadena[tmp-1]) {
				case 'i': count -= SEPARACIO/2.0f; break;
				case 'r': count -= SEPARACIO/2.0f; break;
				case 'e': count -= SEPARACIO/4.0f; break;
				case 'm': count += SEPARACIO/3.0f; break;
			}
		}
		glRasterPos2f( x + tmp*SEPARACIO + count, y );
		glutBitmapCharacter(GLUT_BITMAP_HELVETICA_10,(int)cadena[tmp]);
	}
}
