You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
365 B
C++
21 lines
365 B
C++
10 years ago
|
#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
|