Image.cppm 434 B

123456789101112131415161718192021222324
  1. export module Core.Image;
  2. export import Core.List;
  3. export import Core.Types;
  4. export namespace Core {
  5. struct Image8 {
  6. List<u8> data{};
  7. int width = 0;
  8. int height = 0;
  9. int channels = 0;
  10. bool read(const char* path);
  11. };
  12. struct Image16 {
  13. List<u16> data{};
  14. int width = 0;
  15. int height = 0;
  16. int channels = 0;
  17. bool read(const char* path);
  18. };
  19. }