OpenMW
components/ogreinit/ogreplugin.hpp
Go to the documentation of this file.
00001 #ifndef COMPONENTS_FILES_OGREPLUGIN_H
00002 #define COMPONENTS_FILES_OGREPLUGIN_H
00003 
00004 #include <string>
00005 
00006 #include <boost/filesystem.hpp>
00007 #include <boost/version.hpp>
00008 
00009 namespace Ogre {
00010         class Root;
00011 }
00012 
00013 #if (BOOST_VERSION <= 104500)
00014 namespace boost {
00015 namespace filesystem {
00016 inline path absolute(const path& p, const path& base=current_path()) {
00017         // call obsolete version of this function on older boost
00018         return complete(p, base);
00019 }
00020 }
00021 }
00022 #endif /* (BOOST_VERSION <= 104300) */
00023 
00027 namespace Files {
00028 
00038 bool loadOgrePlugin(const std::string &pluginDir, std::string pluginName, Ogre::Root &ogreRoot);
00039 
00040 }
00041 
00042 #endif /* COMPONENTS_FILES_OGREPLUGIN_H */