6#include "ResourceBase.h"
7#include "ResourceHandle.h"
9#include "ResourceFlags.h"
10#include "ResourceStore.h"
22 bool shouldAutoReload()
const {
return (
loadFlags & ResourceLoadFlags::AutoReload) != 0; }
51 ResourceProtocol protocol = ResourceProtocol::None;
ResourceFlags
Flags for describing resource attributes.
ResourceLoadFlags
Flags for describing how to load a resource.
@ None
No flags specified,.
@ NoDefaultName
No default name.
@ ForceSynchronous
Force loading the resource synchronously.
Contains all Cogs related functionality.
Resource handle base class handling reference counting of resources derived from ResourceBase.
static const ResourceHandleBase NoHandle
Provided as shorthand for empty resource handles.
std::string resourcePath
Resource path. Used to locate resource.
std::string resourceName
Desired resource name. If no name is given, a default name will be chosen.
ResourceId resourceId
Unique resource identifier. Must be unique among resources of the same kind.
ResourceFlags resourceFlags
Desired resource flags. Flags will be validated and, if possible, applied to the loaded resource.
ResourceHandleBase handle
Handle to resource structure for holding actual resource data.
std::vector< uint8_t > resourceData
Resource load data.
ResourceLoadFlags loadFlags
Desired loading flags. Used to specify how the resource will be loaded.