1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-05 15:55:45 +00:00
OpenMW/components/sdlutil/imagetosurface.hpp
2015-05-13 15:03:21 +02:00

21 lines
365 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);
}
#endif