2015-05-13 13:03:21 +00:00
|
|
|
#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.
|
2015-05-13 16:56:14 +00:00
|
|
|
SDL_Surface* imageToSurface(osg::Image* image, bool flip=false);
|
2015-05-13 13:03:21 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|