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

Function ILAPIENTRY ilInit

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

ONLY call at startup.

Source from the content-addressed store, hash-verified

610
611// ONLY call at startup.
612void ILAPIENTRY ilInit()
613{
614 // if it is already initialized skip initialization
615 if (IsInit == IL_TRUE )
616 return;
617
618 //ilSetMemory(NULL, NULL); Now useless 3/4/2006 (due to modification in il_alloc.c)
619 ilSetError(IL_NO_ERROR);
620 ilDefaultStates(); // Set states to their defaults.
621 // Sets default file-reading callbacks.
622 ilResetRead();
623 ilResetWrite();
624#if (!defined(_WIN32_WCE)) && (!defined(IL_STATIC_LIB))
625 atexit(ilRemoveRegisteredInternal);
626#endif
627 //_WIN32_WCE
628 //ilShutDown();
629 iSetImage0(); // Beware! Clears all existing textures!
630 iBindImageTemp(); // Go ahead and create the temporary image.
631 IsInit = IL_TRUE;
632 return;
633}
634
635
636// Frees any extra memory in the stack.

Callers

nothing calls this directly

Calls 4

ilSetErrorFunction · 0.85
ilDefaultStatesFunction · 0.85
iSetImage0Function · 0.85
iBindImageTempFunction · 0.85

Tested by

no test coverage detected