Kale
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Member Functions | List of all members
Kale::Vulkan::Renderer Class Reference

#include <Renderer.hpp>

+ Inheritance diagram for Kale::Vulkan::Renderer:

Public Member Functions

 Renderer ()
 
void init ()
 
void freeResources (bool remove=true) override
 
- Public Member Functions inherited from Kale::Vulkan::ParentResource< Renderer >
virtual ~ParentResource ()
 
void freeChildren ()
 

Public Attributes

vk::UniqueRenderPass renderPass
 

Private Member Functions

void createRenderPass ()
 

Additional Inherited Members

- Protected Member Functions inherited from Kale::Vulkan::ChildResource< SwapChain >
 ChildResource ()
 
 ChildResource (SwapChain &parent)
 
virtual void init (SwapChain &parent)
 
 ~ChildResource ()
 
- Protected Attributes inherited from Kale::Vulkan::ParentResource< Renderer >
std::list< ChildResource< Renderer > * > resources
 
- Protected Attributes inherited from Kale::Vulkan::ChildResource< SwapChain >
SwapChainparentPtr
 

Detailed Description

The main renderer class for the game, each scene uses this internally.

Definition at line 33 of file Renderer.hpp.

Constructor & Destructor Documentation

◆ Renderer()

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.

Member Function Documentation

◆ createRenderPass()

void Renderer::createRenderPass ( )
private

Creates the render pass

Definition at line 44 of file Renderer.cpp.

◆ freeResources()

void Renderer::freeResources ( bool remove = true)
overridevirtual

Frees resources if not already freed

Reimplemented from Kale::Vulkan::ChildResource< SwapChain >.

Definition at line 62 of file Renderer.cpp.

◆ init()

void Renderer::init ( )

Initializes the object

Definition at line 36 of file Renderer.cpp.

Member Data Documentation

◆ renderPass

vk::UniqueRenderPass Kale::Vulkan::Renderer::renderPass

The main render pass for this renderer

Definition at line 59 of file Renderer.hpp.


The documentation for this class was generated from the following files: