![]() |
Kale
|
#include <ChildResource.hpp>
Public Member Functions | |
virtual void | freeResources (bool remove=true) |
Protected Member Functions | |
ChildResource () | |
ChildResource (Parent &parent) | |
virtual void | init (Parent &parent) |
~ChildResource () | |
Protected Attributes | |
Parent * | parentPtr = nullptr |
Friends | |
class | ParentResource< Parent > |
Represents a single child resource, all child resources must inherit from this class
Forward declaration of child resource
Definition at line 33 of file ChildResource.hpp.
|
inlineprotected |
Creates an uninitialized resource, if this constructor is used then the setup method MUST be called if the derived object is ever created
Definition at line 40 of file ChildResource.hpp.
|
inlineprotected |
Adds a child resource to the list of child resources to be managed
parent | The parent resource managing this resource |
Definition at line 48 of file ChildResource.hpp.
|
inlineprotected |
Removes the child resource from the list of child resources to be managed
Definition at line 65 of file ChildResource.hpp.
|
inlinevirtual |
Frees resources if not already freed
remove | Whether or not to remove this from the list |
Reimplemented in Kale::Vulkan::FrameBuffer, Kale::Vulkan::DeviceMemory, Kale::Vulkan::GraphicsPipeline, Kale::Vulkan::Renderer, Kale::Vulkan::Shader, and Kale::Vulkan::SwapChain.
Definition at line 82 of file ChildResource.hpp.
|
inlineprotectedvirtual |
Adds a child resource to the list of child resources to be managed
parent | The parent resource managing this resource |
Reimplemented in Kale::Vulkan::SwapChain.
Definition at line 56 of file ChildResource.hpp.
|
friend |
Definition at line 72 of file ChildResource.hpp.
|
protected |
The pointer to the parent
Definition at line 72 of file ChildResource.hpp.