1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-03 17:37:18 +00:00
OpenMW/components/sdlutil/imagetosurface.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
418 B
C++
Raw Normal View History

2015-05-13 13:03:21 +00:00
#ifndef OPENMW_COMPONENTS_SDLUTIL_IMAGETOSURFACE_H
#define OPENMW_COMPONENTS_SDLUTIL_IMAGETOSURFACE_H
#include <memory>
2015-05-13 13:03:21 +00:00
struct SDL_Surface;
namespace osg
{
class Image;
}
namespace SDLUtil
{
typedef std::unique_ptr<SDL_Surface, void (*)(SDL_Surface*)> SurfaceUniquePtr;
2015-05-13 13:03:21 +00:00
/// Convert an osg::Image to an SDL_Surface.
SurfaceUniquePtr imageToSurface(osg::Image* image, bool flip = false);
2015-05-13 13:03:21 +00:00
}
#endif