// 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; } }
// 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; // } }