MCPcopy Create free account
hub / github.com/DentonW/DevIL / ilReplaceCurImage

Function ilReplaceCurImage

DevIL/src-IL/src/il_stack.cpp:539–549  ·  view source on GitHub ↗

Completely replaces the current image and the version in the image stack.

Source from the content-addressed store, hash-verified

537
538// Completely replaces the current image and the version in the image stack.
539ILAPI void ILAPIENTRY ilReplaceCurImage(ILimage *Image)
540{
541 if (iCurImage) {
542 ilActiveImage(0);
543 ilCloseImage(iCurImage);
544 }
545 ImageStack[ilGetCurName()] = Image;
546 iCurImage = Image;
547 ParentImage = IL_TRUE;
548 return;
549}
550
551
552// Like realloc but sets new memory to 0.

Callers

nothing calls this directly

Calls 2

ilCloseImageFunction · 0.85
ilGetCurNameFunction · 0.85

Tested by

no test coverage detected