DevIL Documentation Home | Previous | Next

ilutSDLSurfaceLoadImage

The ilutSDLSurfaceLoadImage function loads an image to a SDL surface.


SDL_Surface ilutSDLSurfaceLoadImage(
  char *FileName
);

Parameters

FileName
Name of the image file to load.

Remarks

ilutSDLSurfaceLoadImage loads an image directly to a SDL_Surface, skipping the use of DevIL image names.

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.
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.

See Also

ilGenImages, ilBindImage, ilutConvertToSDLSurface, ilLoadImage