mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 10:26:41 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			382 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			382 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef OPENMW_COMPONENTS_SDLUTIL_IMAGETOSURFACE_H
 | |
| #define OPENMW_COMPONENTS_SDLUTIL_IMAGETOSURFACE_H
 | |
| 
 | |
| struct SDL_Surface;
 | |
| 
 | |
| namespace osg
 | |
| {
 | |
|     class Image;
 | |
| }
 | |
| 
 | |
| namespace SDLUtil
 | |
| {
 | |
| 
 | |
|     /// Convert an osg::Image to an SDL_Surface.
 | |
|     /// @note The returned surface must be freed using SDL_FreeSurface.
 | |
|     SDL_Surface* imageToSurface(osg::Image* image, bool flip=false);
 | |
| 
 | |
| }
 | |
| 
 | |
| #endif
 |