Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::SdlResourceBase Class Referenceabstract

A convenient ISdlResource with some core requirements implemented. This class does not provide static/dynamic category information. The work is left for derived classes. See ISdlResource for more implementation requirements. More...

#include <SdlResourceBase.h>

Inheritance diagram for ph::SdlResourceBase:
ph::ISdlResource 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 > ph::CoreSdlResource ph::TSdlResourceBase< TYPE_CATEGORY >

Public Member Functions

ESdlTypeCategory getDynamicCategory () const override=0
 
SdlResourceId getId () const override
 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.
 
- Public Member Functions inherited from ph::ISdlResource
 ISdlResource (const ISdlResource &other)=default
 
 ISdlResource (ISdlResource &&other)=default
 
virtual ~ISdlResource ()=default
 
ISdlResourceoperator= (const ISdlResource &rhs)=default
 
ISdlResourceoperator= (ISdlResource &&rhs)=default
 
virtual const SdlClassgetDynamicSdlClass () const
 Get runtime SDL class of the resource.
 
virtual bool isInlinable () const
 

Protected Member Functions

 SdlResourceBase ()
 
 SdlResourceBase (const SdlResourceBase &other)
 
 SdlResourceBase (SdlResourceBase &&other)=default
 
SdlResourceBaseoperator= (const SdlResourceBase &rhs)
 
SdlResourceBaseoperator= (SdlResourceBase &&rhs)=default
 
- Protected Member Functions inherited from ph::ISdlResource
 ISdlResource ()=default
 

Detailed Description

A convenient ISdlResource with some core requirements implemented. This class does not provide static/dynamic category information. The work is left for derived classes. See ISdlResource for more implementation requirements.

Constructor & Destructor Documentation

◆ SdlResourceBase() [1/3]

ph::SdlResourceBase::SdlResourceBase ( )
inlineprotected

◆ SdlResourceBase() [2/3]

ph::SdlResourceBase::SdlResourceBase ( const SdlResourceBase & other)
inlineprotected

◆ SdlResourceBase() [3/3]

ph::SdlResourceBase::SdlResourceBase ( SdlResourceBase && other)
protecteddefault

Member Function Documentation

◆ getDynamicCategory()

◆ getId()

SdlResourceId ph::SdlResourceBase::getId ( ) const
inlineoverridevirtual

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.

Implements ph::ISdlResource.

◆ operator=() [1/2]

SdlResourceBase & ph::SdlResourceBase::operator= ( const SdlResourceBase & rhs)
inlineprotected

◆ operator=() [2/2]

SdlResourceBase & ph::SdlResourceBase::operator= ( SdlResourceBase && rhs)
protecteddefault

The documentation for this class was generated from the following file: