Uploads Data of the same size to replace the current image's data. ! \param Data New image data to update the currently bound image \exception IL_ILLEGAL_OPERATION No currently bound image \exception IL_INVALID_PARAM Data was NULL. \return Boolean value of failure or success */
| 248 | \return Boolean value of failure or success |
| 249 | */ |
| 250 | ILboolean ILAPIENTRY ilSetData(void *Data) |
| 251 | { |
| 252 | if (iCurImage == NULL) { |
| 253 | ilSetError(IL_ILLEGAL_OPERATION); |
| 254 | return IL_FALSE; |
| 255 | } |
| 256 | |
| 257 | return ilTexSubImage_(iCurImage, Data); |
| 258 | } |
| 259 | |
| 260 | |
| 261 | // Internal version of ilTexSubImage. |
nothing calls this directly
no test coverage detected