Hello,
i´ve got a question. Is it possible to delete a model, which was loaded with smgr->addAnimatedMeshSceneNode?
Regards Efrint
deleting a model?
the class, i created for the models looks like this:
but the model doesn´t disappear if i use the Delete() Function...
Code: Select all
class Model
{
public:
bool LoadModel(const char* Path)
{
model = smgr->getMesh(Path);
Name = smgr->addAnimatedMeshSceneNode (model);
if(Name == 0)
{
return true;
}
return false;
}
void Delete()
{
model=NULL;
Name=NULL;
}
protected:
scene::IAnimatedMesh* model;
scene:: ISceneNode* Name;
};-
Guest