mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 06:26:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			64 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			64 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| /**
 | |
|  *  Open Morrowind - an opensource Elder Scrolls III: Morrowind
 | |
|  *  engine implementation.
 | |
|  *
 | |
|  *  Copyright (C) 2011 Open Morrowind Team
 | |
|  *
 | |
|  *  This program is free software: you can redistribute it and/or modify
 | |
|  *  it under the terms of the GNU General Public License as published by
 | |
|  *  the Free Software Foundation, either version 3 of the License, or
 | |
|  *  (at your option) any later version.
 | |
|  *
 | |
|  *  This program is distributed in the hope that it will be useful,
 | |
|  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 | |
|  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | |
|  *  GNU General Public License for more details.
 | |
|  *
 | |
|  *  You should have received a copy of the GNU General Public License
 | |
|  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | |
|  */
 | |
| 
 | |
| /** \file components/files/ogreplugin.hpp */
 | |
| 
 | |
| #ifndef COMPONENTS_FILES_OGREPLUGIN_H
 | |
| #define COMPONENTS_FILES_OGREPLUGIN_H
 | |
| 
 | |
| #include <string>
 | |
| 
 | |
| #include <boost/filesystem.hpp>
 | |
| #include <boost/version.hpp>
 | |
| 
 | |
| namespace Ogre {
 | |
| 	class Root;
 | |
| }
 | |
| 
 | |
| #if (BOOST_VERSION <= 104500)
 | |
| namespace boost {
 | |
| namespace filesystem {
 | |
| inline path absolute(const path& p, const path& base=current_path()) {
 | |
| 	// call obsolete version of this function on older boost
 | |
| 	return complete(p, base);
 | |
| }
 | |
| }
 | |
| }
 | |
| #endif /* (BOOST_VERSION <= 104300) */
 | |
| 
 | |
| /**
 | |
|  * \namespace Files
 | |
|  */
 | |
| namespace Files {
 | |
| 
 | |
| /**
 | |
|  * \brief Loads Ogre plugin with given name.
 | |
|  *
 | |
|  * \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);
 | |
| 
 | |
| }
 | |
| 
 | |
| #endif /* COMPONENTS_FILES_OGREPLUGIN_H */
 |