il_icns.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //-----------------------------------------------------------------------------
  2. //
  3. // ImageLib Sources
  4. // Copyright (C) 2000-2008 by Denton Woods
  5. // Last modified: 08/23/2008
  6. //
  7. // Filename: src-IL/include/il_icns.h
  8. //
  9. // Description: Reads from a Mac OS X icon (.icns) file.
  10. //
  11. //-----------------------------------------------------------------------------
  12. #ifndef ICNS_H
  13. #define ICNS_H
  14. #include "il_internal.h"
  15. #ifdef _WIN32
  16. #pragma pack(push, icns_struct, 1)
  17. #endif
  18. typedef struct ICNSHEAD
  19. {
  20. char Head[4]; // Must be 'ICNS'
  21. ILint Size; // Total size of the file (including header)
  22. } IL_PACKSTRUCT ICNSHEAD;
  23. typedef struct ICNSDATA
  24. {
  25. char ID[4]; // Identifier ('it32', 'il32', etc.)
  26. ILint Size; // Total size of the entry (including identifier)
  27. } IL_PACKSTRUCT ICNSDATA;
  28. #ifdef _WIN32
  29. #pragma pack(pop, icns_struct)
  30. #endif
  31. ILboolean iIsValidIcns();
  32. ILboolean iLoadIcnsInternal();
  33. ILboolean iIcnsReadData(ILboolean *BaseCreated, ILboolean IsAlpha, ILint Width, ICNSDATA *Entry, ILimage **Image);
  34. #endif//ICNS_H