il_stack.h 871 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //-----------------------------------------------------------------------------
  2. //
  3. // ImageLib Sources
  4. // Copyright (C) 2000-2002 by Denton Woods
  5. // Last modified: 05/25/2001 <--Y2K Compliant! =]
  6. //
  7. // Filename: src-IL/include/il_stack.h
  8. //
  9. // Description: The main image stack
  10. //
  11. //-----------------------------------------------------------------------------
  12. #ifndef IMAGESTACK_H
  13. #define IMAGESTACK_H
  14. #include "il_internal.h"
  15. // Just a guess...seems large enough
  16. #define I_STACK_INCREMENT 1024
  17. typedef struct iFree
  18. {
  19. ILuint Name;
  20. void *Next;
  21. } iFree;
  22. // Internal functions
  23. ILboolean iEnlargeStack(void);
  24. void iFreeMem(void);
  25. // Globals for il_stack.c
  26. ILuint StackSize = 0;
  27. ILuint LastUsed = 0;
  28. ILuint CurName = 0;
  29. ILimage **ImageStack = NULL;
  30. iFree *FreeNames = NULL;
  31. ILboolean OnExit = IL_FALSE;
  32. ILboolean ParentImage = IL_TRUE;
  33. #endif//IMAGESTACK_H