if(!Mainmenuitems[7]) {
ifstream test(ConvertFileName((":Data:Textures:"+accountactive->getCurrentCampaign()+":World.png").c_str()));
if(test.good()) {
- LoadTexture((":Data:Textures:"+accountactive->getCurrentCampaign()+":World.png").c_str(),&Mainmenuitems[7],0,0);
+ LoadTextureData((":Data:Textures:"+accountactive->getCurrentCampaign()+":World.png").c_str(),&Mainmenuitems[7],0,0);
} else {
- LoadTexture(":Data:Textures:World.png",&Mainmenuitems[7],0,0);
+ LoadTextureData(":Data:Textures:World.png",&Mainmenuitems[7],0,0);
}
}
ifstream ipstream(ConvertFileName((":Data:Campaigns:"+accountactive->getCurrentCampaign()+".txt").c_str()));
}
}
-void Game::DrawMenu()
-{
+void Game::DrawMenu() {
int i,j;
static float lastcheck;
}
-void Game::LoadTexture(const char *fileName, GLuint *textureid,int mipmap, bool hasalpha){
+void Game::LoadTexture(const char *fileName, GLuint *textureid,int mipmap, bool hasalpha) {
textures.push_back(TextureInfo(fileName,textureid,mipmap,hasalpha));
textures.back().load();
}
-void Game::LoadTextureSave(const char *fileName, GLuint *textureid,int mipmap,GLubyte *array, int *skinsize){
+void Game::LoadTextureSave(const char *fileName, GLuint *textureid,int mipmap,GLubyte *array, int *skinsize) {
textures.push_back(TextureInfo(fileName,textureid,mipmap,array,skinsize));
textures.back().load();
}