mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 07:56:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			418 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			418 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef OPENMW_COMPONENTS_SDLUTIL_IMAGETOSURFACE_H
 | 
						|
#define OPENMW_COMPONENTS_SDLUTIL_IMAGETOSURFACE_H
 | 
						|
 | 
						|
#include <memory>
 | 
						|
 | 
						|
struct SDL_Surface;
 | 
						|
 | 
						|
namespace osg
 | 
						|
{
 | 
						|
    class Image;
 | 
						|
}
 | 
						|
 | 
						|
namespace SDLUtil
 | 
						|
{
 | 
						|
    typedef std::unique_ptr<SDL_Surface, void (*)(SDL_Surface*)> SurfaceUniquePtr;
 | 
						|
 | 
						|
    /// Convert an osg::Image to an SDL_Surface.
 | 
						|
    SurfaceUniquePtr imageToSurface(osg::Image* image, bool flip = false);
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |