summaryrefslogtreecommitdiff
path: root/components/sdlutil/imagetosurface.hpp
blob: ad0457433cf22144752313c5569ab964dc03ae95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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