![]() |
Plasma Engine
2.0
|
Base class for GAL resources, stores a creation description of the object and also allows for reference counting. More...
#include <Resource.h>
Public Member Functions | |
PL_ALWAYS_INLINE | plGALResource (const CreationDescription &description) |
PL_ALWAYS_INLINE const CreationDescription & | GetDescription () const |
![]() | |
void | SetDebugName (const char *szName) const |
virtual const plGALResourceBase * | GetParentResource () const |
![]() | |
virtual | ~plRefCounted ()=default |
Adds a virtual destructor. | |
![]() | |
plRefCountingImpl ()=default | |
Constructor. | |
plRefCountingImpl (const plRefCountingImpl &rhs) | |
void | operator= (const plRefCountingImpl &rhs) |
plInt32 | AddRef () const |
Increments the reference counter. Returns the new reference count. | |
plInt32 | ReleaseRef () const |
Decrements the reference counter. Returns the new reference count. | |
bool | IsReferenced () const |
Returns true if the reference count is greater than 0, false otherwise. | |
plInt32 | GetRefCount () const |
Returns the current reference count. | |
Protected Attributes | |
const CreationDescription | m_Description |
Additional Inherited Members | |
![]() | |
virtual void | SetDebugNamePlatform (const char *szName) const =0 |
Base class for GAL resources, stores a creation description of the object and also allows for reference counting.