TextResource.h 353 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include "Types.h"
  3. #include "Resource.h"
  4. namespace crown
  5. {
  6. class ResourceArchive;
  7. class Allocator;
  8. class TextResource
  9. {
  10. public:
  11. static void* load(Allocator& allocator, ResourceArchive& archive, ResourceId id);
  12. static void unload(Allocator& allocator, void* resource);
  13. uint32_t length;
  14. char* data;
  15. };
  16. } // namespace crown