DevIL Documentation | Home | Previous | Next |
The ilutConvertToSDLSurface function returns an SDL-compatible version of the currently bound image.
SDL_Surface *ilutConvertToSDLSurface(
unsigned int flags
);
ilutConvertToSDLSurface creates a SDL_Surface copy of the currently bound image, for direct use in SDL.
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.