TextResource.h 399 B

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