stbi_DDS_aug.h 777 B

12345678910111213141516171819202122
  1. /*
  2. adding DDS loading support to stbi
  3. */
  4. #ifndef HEADER_STB_IMAGE_DDS_AUGMENTATION
  5. #define HEADER_STB_IMAGE_DDS_AUGMENTATION
  6. // is it a DDS file?
  7. extern int stbi_dds_test_memory (stbi_uc const *buffer, int len);
  8. extern stbi_uc *stbi_dds_load (char *filename, int *x, int *y, int *comp, int req_comp);
  9. extern stbi_uc *stbi_dds_load_from_memory (stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp);
  10. #ifndef STBI_NO_STDIO
  11. extern int stbi_dds_test_file (FILE *f);
  12. extern stbi_uc *stbi_dds_load_from_file (FILE *f, int *x, int *y, int *comp, int req_comp);
  13. #endif
  14. //
  15. //
  16. //// end header file /////////////////////////////////////////////////////
  17. #endif // HEADER_STB_IMAGE_DDS_AUGMENTATION