Berserk
|
Base class for any engine resource object. More...
#include <Resource.hpp>
Public Member Functions | |
BRK_API | ~Resource () override=default |
virtual const StringName & | GetResourceType () const =0 |
BRK_API void | SetName (StringName name) |
BRK_API void | SetPath (String path) |
BRK_API void | SetUUID (UUID uuid) |
BRK_API const StringName & | GetName () const |
BRK_API const String & | GetPath () const |
BRK_API const UUID & | GetUUID () const |
![]() | |
virtual | ~RefCnt () |
bool | IsUnique () const |
std::int32_t | GetRefs () const |
std::int32_t | AddRef () const |
std::int32_t | RelRef () const |
Additional Inherited Members | |
![]() | |
virtual void | Destroy () const |
Base class for any engine resource object.
|
overridedefault |
|
inline |
|
pure virtual |
Implemented in ResTexture, ResShader, ResMesh, and ResMaterial.
BRK_NS_BEGIN void Resource::SetName | ( | StringName | name | ) |
void Resource::SetPath | ( | String | path | ) |
void Resource::SetUUID | ( | UUID | uuid | ) |