Whenever I wanted to test the type of a MovableObject, I would compare it to the factory's public static FACTORY_TYPE_NAME, like this:
Code: Select all
if (mo->getMovableType() == Ogre::EntityFactory::FACTORY_TYPE_NAME)
I just updated to Ogre 14 and it seems that all the MovableObjectFactory classes have been moved into a new header file "OgreBuiltinMovableFactories.h" which is in the /src directory instead of the /include directory. I interpret that to mean that it is not meant to be included by users of the library. Should users of the library hard-code the type names into our code? Or is there a different header for us to include?
Also, as far as I found, that header file is only included by "OgreStableHeaders.h", (which is also in /src instead of /include). Neither of those files show up in the project generated by CMake. That seems to make it very difficult to find for anybody working on the code of OGRE itself. Is this intentional or an oversight?