Image.h 474 B

12345678910111213141516171819202122232425
  1. #ifndef CORE_IMAGE_H
  2. #define CORE_IMAGE_H
  3. #include <core/Types.h>
  4. typedef struct {
  5. u8* data;
  6. int width;
  7. int height;
  8. int channels;
  9. } CoreImage8;
  10. typedef struct {
  11. u16* data;
  12. int width;
  13. int height;
  14. int channels;
  15. } CoreImage16;
  16. bool coreInitImage8(CoreImage8* image, const char* path);
  17. void coreDestroyImage8(CoreImage8* image);
  18. bool coreInitImage16(CoreImage16* image, const char* path);
  19. void coreDestroyImage16(CoreImage16* image);
  20. #endif