diff options
-rw-r--r-- | DevIL/src-IL/include/il_stack.h | 15 | ||||
-rw-r--r-- | DevIL/src-IL/src/il_stack.c | 14 |
2 files changed, 16 insertions, 13 deletions
diff --git a/DevIL/src-IL/include/il_stack.h b/DevIL/src-IL/include/il_stack.h index 5e4a214f..c5fb0f3f 100644 --- a/DevIL/src-IL/include/il_stack.h +++ b/DevIL/src-IL/include/il_stack.h @@ -26,18 +26,7 @@ typedef struct iFree } iFree; -// Internal functions -ILboolean iEnlargeStack(void); -void iFreeMem(void); - -// Globals for il_stack.c -ILuint StackSize = 0; -ILuint LastUsed = 0; -ILuint CurName = 0; -ILimage **ImageStack = NULL; -iFree *FreeNames = NULL; -ILboolean OnExit = IL_FALSE; -ILboolean ParentImage = IL_TRUE; - +// the currently-bound image +extern ILuint CurName; #endif//IMAGESTACK_H diff --git a/DevIL/src-IL/src/il_stack.c b/DevIL/src-IL/src/il_stack.c index 3d36c81e..b10fd149 100644 --- a/DevIL/src-IL/src/il_stack.c +++ b/DevIL/src-IL/src/il_stack.c @@ -17,6 +17,20 @@ #include "il_internal.h" #include "il_stack.h" +ILuint CurName = 0; + +// Internal functions +static ILboolean iEnlargeStack(); + + +static ILuint StackSize = 0; +static ILuint LastUsed = 0; +static ILimage **ImageStack = NULL; +static iFree *FreeNames = NULL; +static ILboolean OnExit = IL_FALSE; +static ILboolean ParentImage = IL_TRUE; + + //! Creates Num images and puts their index in Images - similar to glGenTextures(). void ILAPIENTRY ilGenImages(ILsizei Num, ILuint *Images) { |