ONLY call at startup.
| 610 | |
| 611 | // ONLY call at startup. |
| 612 | void 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. |
nothing calls this directly
no test coverage detected