Returns a constant string detailing aspects about this library.
| 106 | |
| 107 | //! Returns a constant string detailing aspects about this library. |
| 108 | ILconst_string ILAPIENTRY ilGetString(ILenum StringName) |
| 109 | { |
| 110 | switch (StringName) |
| 111 | { |
| 112 | case IL_VENDOR: |
| 113 | return (ILconst_string)_ilVendor; |
| 114 | case IL_VERSION_NUM: //changed 2003-08-30: IL_VERSION changes //switch define ;-) |
| 115 | return (ILconst_string)_ilVersion; |
| 116 | case IL_LOAD_EXT: |
| 117 | return (ILconst_string)_ilLoadExt; |
| 118 | case IL_SAVE_EXT: |
| 119 | return (ILconst_string)_ilSaveExt; |
| 120 | case IL_TGA_ID_STRING: |
| 121 | return (ILconst_string)ilStates[ilCurrentPos].ilTgaId; |
| 122 | case IL_TGA_AUTHNAME_STRING: |
| 123 | return (ILconst_string)ilStates[ilCurrentPos].ilTgaAuthName; |
| 124 | case IL_TGA_AUTHCOMMENT_STRING: |
| 125 | return (ILconst_string)ilStates[ilCurrentPos].ilTgaAuthComment; |
| 126 | case IL_PNG_AUTHNAME_STRING: |
| 127 | return (ILconst_string)ilStates[ilCurrentPos].ilPngAuthName; |
| 128 | case IL_PNG_TITLE_STRING: |
| 129 | return (ILconst_string)ilStates[ilCurrentPos].ilPngTitle; |
| 130 | case IL_PNG_DESCRIPTION_STRING: |
| 131 | return (ILconst_string)ilStates[ilCurrentPos].ilPngDescription; |
| 132 | //2003-08-31: added tif strings |
| 133 | case IL_TIF_DESCRIPTION_STRING: |
| 134 | return (ILconst_string)ilStates[ilCurrentPos].ilTifDescription; |
| 135 | case IL_TIF_HOSTCOMPUTER_STRING: |
| 136 | return (ILconst_string)ilStates[ilCurrentPos].ilTifHostComputer; |
| 137 | case IL_TIF_DOCUMENTNAME_STRING: |
| 138 | return (ILconst_string)ilStates[ilCurrentPos].ilTifDocumentName; |
| 139 | case IL_TIF_AUTHNAME_STRING: |
| 140 | return (ILconst_string)ilStates[ilCurrentPos].ilTifAuthName; |
| 141 | case IL_CHEAD_HEADER_STRING: |
| 142 | return (ILconst_string)ilStates[ilCurrentPos].ilCHeader; |
| 143 | default: |
| 144 | ilSetError(IL_INVALID_ENUM); |
| 145 | break; |
| 146 | } |
| 147 | return NULL; |
| 148 | } |
| 149 | |
| 150 | |
| 151 | // Clips a string to a certain length and returns a new string. |
nothing calls this directly
no test coverage detected