Sleeping Wombat GUI
0.100
swGUI
|
Wrapper for low level resources and high level assets. More...
#include <ResourcePtr.h>
Public Member Functions | |
ResourcePtr () | |
ResourcePtr (ResourceType *ptr) | |
~ResourcePtr () | |
ResourcePtr (const ResourcePtr &other) | |
ResourcePtr (ResourcePtr &&other) | |
void | operator= (ResourceType *ptr) |
void | operator= (const ResourcePtr< ResourceType > &ptr) |
operator void * () const | |
ResourceType * | operator* () |
ResourceType * | operator-> () |
const ResourceType * | operator* () const |
const ResourceType * | operator-> () const |
void | ReleaseResource () |
void | AssignPointer (ResourceType *ptr) |
ResourceType * | Ptr () const |
Private Attributes | |
ResourceType * | m_resource |
Wrapper for low level resources and high level assets.
This class automatically increments and decrements resources and assets reference counter. Notice that it's not equivalent of std::shared_ptr. When references counter reaches 0, resource won't be released. AssetsManager is the only one owner of resource and it's responsibility is, to destroy resource when it's needed. Even when there's no Actor in engine that uses it, resource can still remain for future use.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |