![]() |
Divide Framework 0.1
A free and open-source 3D Framework under heavy development
|
#include <Resource.h>
Public Member Functions | |
CachedResource (const ResourceDescriptorBase &descriptor, std::string_view typeName) | |
virtual bool | load (PlatformContext &context) |
Loading and unloading interface. | |
virtual bool | postLoad () |
virtual bool | unload () |
void | setState (ResourceState currentState) final |
![]() | |
Resource (std::string_view resourceName, std::string_view typeName) | |
ResourceState | getState () const noexcept |
PROPERTY_R (Str< 32 >, typeName) | |
PROPERTY_R (Str< 256 >, resourceName) | |
![]() | |
GUIDWrapper () noexcept | |
GUIDWrapper (const GUIDWrapper &old) noexcept | |
GUIDWrapper (GUIDWrapper &&old) noexcept | |
virtual | ~GUIDWrapper ()=default |
FORCE_INLINE I64 | getGUID () const noexcept |
GUIDWrapper & | operator= (const GUIDWrapper &old)=delete |
GUIDWrapper & | operator= (GUIDWrapper &&other)=delete |
Protected Member Functions | |
PROPERTY_RW (ResourcePath, assetLocation) | |
PROPERTY_RW (Str< 256 >, assetName) | |
PROPERTY_R (size_t, descriptorHash) | |
virtual void | setState (ResourceState currentState) |
Protected Attributes | |
Mutex | _callbackLock {} |
![]() | |
std::atomic< ResourceState > | _resourceState |
![]() | |
const I64 | _guid |
Friends | |
class | ResourceCache |
struct | ResourceLoader |
Additional Inherited Members | |
![]() | |
static I64 | generateGUID () noexcept |
Definition at line 89 of file Resource.h.
|
explicit |
Definition at line 47 of file Resource.cpp.
|
virtual |
Loading and unloading interface.
Reimplemented in Divide::Material, Divide::SceneNode, Divide::ShaderProgram, and Divide::Texture.
Definition at line 55 of file Resource.cpp.
|
virtual |
Reimplemented in Divide::SceneNode, Divide::glTexture, Divide::ShaderProgram, and Divide::Texture.
Definition at line 60 of file Resource.cpp.
|
protected |
|
protected |
|
protected |
|
finalvirtual |
Reimplemented from Divide::Resource.
Definition at line 70 of file Resource.cpp.
|
virtual |
Reimplemented in Divide::AudioDescriptor, Divide::Material, Divide::SceneNode, Divide::glShaderProgram, Divide::glTexture, Divide::vkShaderProgram, Divide::vkTexture, and Divide::ShaderProgram.
Definition at line 65 of file Resource.cpp.
|
friend |
Definition at line 91 of file Resource.h.
|
friend |
Definition at line 92 of file Resource.h.
|
mutableprotected |
Definition at line 105 of file Resource.h.