mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-03 02:56:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			654 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			654 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef OENGINE_OGRE_IMAGEROTATE_HPP
 | 
						|
#define OENGINE_OGRE_IMAGEROTATE_HPP
 | 
						|
 | 
						|
#include <string>
 | 
						|
 | 
						|
namespace OEngine
 | 
						|
{
 | 
						|
namespace Render
 | 
						|
{
 | 
						|
 | 
						|
    /// Rotate an image by certain degrees and save as file, uses the GPU
 | 
						|
    /// Make sure Ogre Root is initialised before calling
 | 
						|
    class ImageRotate
 | 
						|
    {
 | 
						|
    public:
 | 
						|
        /**
 | 
						|
         * @param source image (file name - has to exist in an resource group)
 | 
						|
         * @param name of the destination texture to save to (in memory)
 | 
						|
         * @param angle in degrees to turn
 | 
						|
         */
 | 
						|
        static void rotate(const std::string& sourceImage, const std::string& destImage, const float angle);
 | 
						|
    };
 | 
						|
 | 
						|
}
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |