Photon Engine 2.0.0-beta
A physically based renderer.
|
Interface for all SDL resource. More...
#include <ISdlResource.h>
Public Member Functions | |
ISdlResource (const ISdlResource &other)=default | |
ISdlResource (ISdlResource &&other)=default | |
virtual | ~ISdlResource ()=default |
ISdlResource & | operator= (const ISdlResource &rhs)=default |
ISdlResource & | operator= (ISdlResource &&rhs)=default |
virtual ESdlTypeCategory | getDynamicCategory () const =0 |
virtual SdlResourceId | getId () const =0 |
Get the unique ID of this resource. The returned ID is guaranteed to be unique in the current process. Newly created resource cannot have an ID that has been used by a previous resource, even if the previous resource has ended its life cycle. See SdlResourceId.h for some utilities. | |
virtual const SdlClass * | getDynamicSdlClass () const |
Get runtime SDL class of the resource. | |
virtual bool | isInlinable () const |
Protected Member Functions | |
ISdlResource ()=default | |
Interface for all SDL resource.
A SDL resource is data that can be managed by SDL and actor system.
Note that in addition to the pure virtual methods, implementation should add a static ESdlTypeCategory
field named CATEGORY
and assign a proper category to it. This will facilitate static resource category inspection and is required for some introspection classes. However, these normally will not need to be done since the helper base classes for each category already did it.
|
inlineprotecteddefault |
|
inlinedefault |
|
inlinedefault |
|
inlinevirtualdefault |
|
pure virtual |
Implemented in ph::CoreSdlResource, ph::Observer, ph::SampleSource, ph::SdlResourceBase, ph::TSdlResourceBase< TYPE_CATEGORY >, ph::TSdlResourceBase< ESdlTypeCategory::Ref_Actor >, ph::TSdlResourceBase< ESdlTypeCategory::Ref_Geometry >, ph::TSdlResourceBase< ESdlTypeCategory::Ref_Image >, ph::TSdlResourceBase< ESdlTypeCategory::Ref_Material >, ph::TSdlResourceBase< ESdlTypeCategory::Ref_Motion >, ph::TSdlResourceBase< ESdlTypeCategory::Ref_Object >, ph::TSdlResourceBase< ESdlTypeCategory::Ref_Option >, and ph::Visualizer.
|
inlinevirtual |
Get runtime SDL class of the resource.
PH_DEFINE_SDL_CLASS()
is not implemented by the resource class.
|
pure virtual |
Get the unique ID of this resource. The returned ID is guaranteed to be unique in the current process. Newly created resource cannot have an ID that has been used by a previous resource, even if the previous resource has ended its life cycle. See SdlResourceId.h
for some utilities.
Implemented in ph::SdlResourceBase.
|
inlinevirtual |
|
inlinedefault |
|
inlinedefault |