Exemple #1
0
// load given background
void Graphics::loadBG(int which)
{
	closeBG();

	switch (which)
	{
	case MOUNTAINS:
		bg = new Texture(0, 0, 0, 0);
		bg->txLoadF(rDir + bgPrefix + bgIDs[which] + rExt);
		manageBG();
		break;
	}
}
Exemple #2
0
// load given background
void Graphics::loadBG(int which)
{
	closeBG();

	// switch (which)
	// {
	// case MOUNTAINS:
		bg = new Texture(0, 0, 0, 0);
		bg->txLoadF(rDir + bgPrefix + bgIDs[which] + rExt);
		// manageBG();
		createBGObjects();
	// 	break;
	// }
}