24 IResource(std::shared_ptr<ResourceInitData> initData);
61 std::shared_ptr<ResourceInitData> mInitData;
62 bool mIsDirty =
false;
Non-templated base interface for all resources managed by the ResourceManager.
Definition Resource.h:15
bool IsDirty()
Returns true if the resource has been marked dirty.
virtual void * GetRawPointer()=0
Returns a type-erased raw pointer to the underlying resource data.
IResource(std::shared_ptr< ResourceInitData > initData)
Constructs an IResource with the given initialization data.
std::shared_ptr< ResourceInitData > GetInitData()
Returns the initialization data used to load this resource.
virtual size_t GetPointerSize()=0
Returns the size (in bytes) of the type pointed to by GetRawPointer().
static const std::string gAltAssetPrefix
Path prefix that identifies an "alt asset" override.
Definition Resource.h:18
void Dirty()
Marks the resource as dirty.
Typed resource base class that provides a strongly-typed pointer accessor.
Definition Resource.h:73
virtual T * GetPointer()=0
Returns a typed pointer to the resource payload.
void * GetRawPointer() override
Returns a type-erased raw pointer to the underlying resource data.
Definition Resource.h:83
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14