Trying to upgrade the following code from 1.10 to 1.11. Ran into three problems.
1. Ogre manual calls for SharedPtr::operator unspecified_bool_type() instead.
Code: Select all
Ogre::MeshPtr &mesh;
if (mesh.isNull())
{
// do stuff
}
//is the following correct?
if (!mesh)
{
// do stuff
}
Code: Select all
m_ptrMaterial = Ogre::MaterialManager::getSingleton().getByName(mat, rg).staticCast<Ogre::Material>();
Code: Select all
Mesh::SubMeshIterator subMeshIterator = mesh->getSubMeshIterator();
while (subMeshIterator.hasMoreElements()) {
SubMesh *subMesh = subMeshIterator.getNext();
Building Paged Geometry I got these issues: https://github.com/OGRECave/ogre-caelum/issues/1. paroj posted: "you must use the install location/ install ogre first". How do I do this on windows?