MCPcopy Create free account
hub / github.com/DentonW/DevIL / ILAPIENTRY ilSetData

Function ILAPIENTRY ilSetData

DevIL/src-IL/src/il_devil.cpp:250–258  ·  view source on GitHub ↗

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 */

Source from the content-addressed store, hash-verified

248 \return Boolean value of failure or success
249*/
250ILboolean 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.

Callers

nothing calls this directly

Calls 2

ilSetErrorFunction · 0.85
ilTexSubImage_Function · 0.85

Tested by

no test coverage detected