mirror of
https://github.com/glest/glest-source.git
synced 2025-09-28 08:29:00 +02:00
Start to abstract model
This commit is contained in:
@@ -40,8 +40,8 @@ ModelManager::~ModelManager(){
|
||||
end();
|
||||
}
|
||||
|
||||
Model *ModelManager::newModel(){
|
||||
Model *model= GraphicsInterface::getInstance().getFactory()->newModel();
|
||||
Model *ModelManager::newModel(const string &path,bool deletePixMapAfterLoad,std::map<string,vector<pair<string, string> > > *loadedFileList, string *sourceLoader){
|
||||
Model *model= GraphicsInterface::getInstance().getFactory()->newModel(path,deletePixMapAfterLoad,loadedFileList,sourceLoader);
|
||||
model->setTextureManager(textureManager);
|
||||
models.push_back(model);
|
||||
return model;
|
||||
|
Reference in New Issue
Block a user