DevIL Documentation Home | Previous | Next

ilutConvertToSDLSurface

The ilutConvertToSDLSurface function returns an SDL-compatible version of the currently bound image.


SDL_Surface *ilutConvertToSDLSurface(
  unsigned int flags
);

Parameters

flags
Flags to be used with SDL_CreateRGBSurface. Please refer to the SDL documentation for more information.

Remarks

ilutConvertToSDLSurface creates a SDL_Surface copy of the currently bound image, for direct use in SDL.

Error Codes

ILUT_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.
ILUT_OUT_OF_MEMORY - Could not allocate enough memory for the new bitmap.

See Also

ilGenImages, ilBindImage