Image.h 434 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. } Image8;
  10. typedef struct {
  11. u16* data;
  12. int width;
  13. int height;
  14. int channels;
  15. } Image16;
  16. bool initImage8(Image8* image, const char* path);
  17. void destroyImage8(Image8* image);
  18. bool initImage16(Image16* image, const char* path);
  19. void destroyImage16(Image16* image);
  20. #endif