17#include "aeongames/Resource.hpp"
18#include "aeongames/ResourceCache.hpp"
19#include "aeongames/AeonEngine.hpp"
20#include "aeongames/CRC.hpp"
26 static std::atomic<std::size_t> consecutive{};
44 return mConsecutiveId;
DLL void LoadFromFile(const std::string &aFilename)
Load the resource from a file on disk.
DLL void LoadFromId(uint32_t aId)
Load the resource identified by a numeric id.
virtual void LoadFromMemory(const void *aBuffer, size_t aBufferSize)=0
Load the resource from a raw memory buffer.
DLL size_t GetConsecutiveId() const
Get the Consecutive Id for the resource object.
<- This is here just for the literals
DLL size_t GetResourceSize(uint32_t crc)
uint32_t crc32i(const char *message, size_t size, uint32_t previous_crc)
Compute the CRC32 of a given message, continuing from a previous CRC value.
DLL size_t GetNextConsecutiveId()
Returns the next available consecutive resource identifier.
DLL void LoadResource(uint32_t crc, void *buffer, size_t buffer_size)