You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
907 B
C++
43 lines
907 B
C++
13 years ago
|
#ifndef COMPONENTS_FILES_OGREPLUGIN_H
|
||
|
#define COMPONENTS_FILES_OGREPLUGIN_H
|
||
|
|
||
|
#include <string>
|
||
|
|
||
13 years ago
|
#include <boost/filesystem.hpp>
|
||
|
#include <boost/version.hpp>
|
||
|
|
||
13 years ago
|
namespace Ogre {
|
||
|
class Root;
|
||
|
}
|
||
|
|
||
13 years ago
|
#if (BOOST_VERSION <= 104500)
|
||
13 years ago
|
namespace boost {
|
||
|
namespace filesystem {
|
||
13 years ago
|
inline path absolute(const path& p, const path& base=current_path()) {
|
||
13 years ago
|
// call obsolete version of this function on older boost
|
||
|
return complete(p, base);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
#endif /* (BOOST_VERSION <= 104300) */
|
||
|
|
||
13 years ago
|
/**
|
||
|
* \namespace Files
|
||
|
*/
|
||
|
namespace Files {
|
||
|
|
||
|
/**
|
||
|
* \brief Loads Ogre plugin with given name.
|
||
13 years ago
|
*
|
||
13 years ago
|
* \param pluginDir absolute path to plugins
|
||
|
* \param pluginName plugin name, for example "RenderSystem_GL"
|
||
|
* \param ogreRoot Ogre::Root instance
|
||
|
*
|
||
|
* \return whether plugin was located or not
|
||
|
*/
|
||
|
bool loadOgrePlugin(const std::string &pluginDir, std::string pluginName, Ogre::Root &ogreRoot);
|
||
|
|
||
|
}
|
||
|
|
||
13 years ago
|
#endif /* COMPONENTS_FILES_OGREPLUGIN_H */
|