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

Function iSetImage0

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

Initializes the image stack's first entry (default image) -- ONLY CALL ONCE!

Source from the content-addressed store, hash-verified

673
674// Initializes the image stack's first entry (default image) -- ONLY CALL ONCE!
675void iSetImage0()
676{
677 if (ImageStack == NULL)
678 if (!iEnlargeStack())
679 return;
680
681 LastUsed = 1;
682 CurName = 0;
683 ParentImage = IL_TRUE;
684 if (!ImageStack[0])
685 ImageStack[0] = ilNewImage(1, 1, 1, 1, 1);
686 iCurImage = ImageStack[0];
687 ilDefaultImage();
688
689 return;
690}
691
692
693ILAPI void ILAPIENTRY iBindImageTemp()

Callers 1

ILAPIENTRY ilInitFunction · 0.85

Calls 1

iEnlargeStackFunction · 0.85

Tested by

no test coverage detected