DevIL Documentation | Home | Previous | Next |
The ilutSDLSurfaceLoadImage function loads an image to a SDL surface.
SDL_Surface ilutSDLSurfaceLoadImage(
char *FileName
);
ilutSDLSurfaceLoadImage loads an image directly to a SDL_Surface, skipping the use of DevIL image names.
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.
IL_COULD_NOT_OPEN_FILE - The file pointed to by FileName could not be opened. Either the file does not exist or is in use by another process.
ilGenImages, ilBindImage, ilutConvertToSDLSurface, ilLoadImage