![]() |
Kale
|
#include <Renderer.hpp>
Public Member Functions | |
Renderer () | |
void | init () |
void | freeResources (bool remove=true) override |
![]() | |
virtual | ~ParentResource () |
void | freeChildren () |
Public Attributes | |
vk::UniqueRenderPass | renderPass |
Private Member Functions | |
void | createRenderPass () |
Additional Inherited Members | |
![]() | |
ChildResource () | |
ChildResource (SwapChain &parent) | |
virtual void | init (SwapChain &parent) |
~ChildResource () | |
![]() | |
std::list< ChildResource< Renderer > * > | resources |
![]() | |
SwapChain * | parentPtr |
The main renderer class for the game, each scene uses this internally.
Definition at line 33 of file Renderer.hpp.
Renderer::Renderer | ( | ) |
Creates an uninstantiated renderer
Creates a new renderer given the device to create it from
Definition at line 29 of file Renderer.cpp.
|
private |
Creates the render pass
Definition at line 44 of file Renderer.cpp.
|
overridevirtual |
Frees resources if not already freed
Reimplemented from Kale::Vulkan::ChildResource< SwapChain >.
Definition at line 62 of file Renderer.cpp.
void Renderer::init | ( | ) |
Initializes the object
Definition at line 36 of file Renderer.cpp.
vk::UniqueRenderPass Kale::Vulkan::Renderer::renderPass |
The main render pass for this renderer
Definition at line 59 of file Renderer.hpp.