BeatTheStreet/src/button.cpp
//void function that changes the texture of the button.
void function that changes the texture of the button.
void function that changes the texture of the button .
void button::changetexture(sf::String imgdir)
{
	if (!tButtonTexture.loadFromFile(imgdir))EXIT_FAILURE;
	sButtonSprite.setTexture(tButtonTexture);
}
void button :: changetexture ( sf :: String imgdir ) { if ( ! tButtonTexture . loadFromFile ( imgdir ) ) EXIT_FAILURE ; sButtonSprite . setTexture ( tButtonTexture ) ; }
void function that changes the texture of the button.
void function that changes the texture of the button .
//load texture dorm imgdir //set texture