il_register.h 950 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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_register.h
  8. //
  9. // Description: Allows the caller to specify user-defined callback functions
  10. // to open files DevIL does not support, to parse files
  11. // differently, or anything else a person can think up.
  12. //
  13. //-----------------------------------------------------------------------------
  14. #ifndef REGISTER_H
  15. #define REGISTER_H
  16. #include "il_internal.h"
  17. typedef struct iFormatL
  18. {
  19. ILstring Ext;
  20. IL_LOADPROC Load;
  21. struct iFormatL *Next;
  22. } iFormatL;
  23. typedef struct iFormatS
  24. {
  25. ILstring Ext;
  26. IL_SAVEPROC Save;
  27. struct iFormatS *Next;
  28. } iFormatS;
  29. #define I_LOAD_FUNC 0
  30. #define I_SAVE_FUNC 1
  31. ILboolean iRegisterLoad(ILconst_string FileName);
  32. ILboolean iRegisterSave(ILconst_string FileName);
  33. #endif//REGISTER_H