DevIL Documentation Home | Previous | Next

ilGetData

The ilGetData function returns a pointer to the current image's data.


ILubyte *ilGetData(
  ILvoid
);

Parameters

None

Remarks

ilGetData returns an unsigned byte pointer to the current bound image's data to allow direct access and modification to the contents of the image.

Error Codes

IL_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.

See Also

ilGenImages, ilBindImage, ilGetPalette, ilCopyPixels