PixelLightAPI
.
|
#include <ResourceHandler.h>
Public Member Functions | |
PLSOUND_API | ResourceHandler () |
Constructor. | |
PLSOUND_API | ResourceHandler (const ResourceHandler &cSource) |
Copy constructor. | |
virtual PLSOUND_API | ~ResourceHandler () |
Destructor. | |
PLSOUND_API ResourceHandler & | operator= (const ResourceHandler &cSource) |
Copy operator. | |
PLSOUND_API Resource * | GetResource () const |
Returns the resource handlers resource. | |
PLSOUND_API void | SetResource (Resource *pResource=nullptr) |
Sets the resource handlers resource. | |
virtual PLSOUND_API void | OnLost () |
Is called when the resource was lost. |
Resource handler.
PLSOUND_API PLSound::ResourceHandler::ResourceHandler | ( | ) |
Constructor.
PLSOUND_API PLSound::ResourceHandler::ResourceHandler | ( | const ResourceHandler & | cSource | ) |
Copy constructor.
[in] | cSource | Source to copy from |
virtual PLSOUND_API PLSound::ResourceHandler::~ResourceHandler | ( | ) | [virtual] |
Destructor.
PLSOUND_API ResourceHandler& PLSound::ResourceHandler::operator= | ( | const ResourceHandler & | cSource | ) |
PLSOUND_API Resource* PLSound::ResourceHandler::GetResource | ( | ) | const |
Returns the resource handlers resource.
PLSOUND_API void PLSound::ResourceHandler::SetResource | ( | Resource * | pResource = nullptr | ) |
Sets the resource handlers resource.
[in] | pResource | Resource to set, can be a null pointer |
virtual PLSOUND_API void PLSound::ResourceHandler::OnLost | ( | ) | [virtual] |
Is called when the resource was lost.
|