DevIL Documentation Previous | IL | Next

 

ilSetString

 

ilSetString gives DevIL users the option to set strings in certain file formats that have fields for strings, making DevIL highly customizable. Choose one of the acceptable parameters for Mode and specify any string you want. If the string is too long, it will be truncated when writing to the file.

 

ILvoid ilSetString(
  char * String, ILenum Mode );


Parameters

 
String
String to use for setting a string field of a specified image format.
Mode
Specifies the string to be set.


Modes

 
IL_PNG_AUTHNAME_STRING, IL_PNG_DESCRIPTION_STRING, IL_PNG_TITLE_STRING, IL_TGA_AUTHCOMMENT_STRING, IL_TGA_AUTHNAME_STRING, IL_TGA_ID_STRING, IL_TIF_AUTHNAME_STRING, IL_TIF_DESCRIPTION_STRING, IL_TIF_DOCUMENTNAME_STRING, IL_TIF_HOSTCOMPUTER_STRING,

Errors

 
IL_INVALID_ENUM
Mode was an invalid enum.
IL_INVALID_PARAM
String was NULL.

See Also

 
ilGetBoolean, ilGetBooleanv, ilGetInteger, ilGetIntegerv,