#include <Engine.hpp>
Public Member Functions | |
Engine (uint32_t=DEFAULT_WIDTH, uint32_t=DEFAULT_HEIGHT, const std::string &title=DEFAULT_TITLE.data()) | |
~Engine ()=default | |
Engine (const Engine &)=delete | |
Engine | operator= (const Engine &)=delete |
Window & | getWindow () |
void | mainLoop () |
Private Member Functions | |
void | loadObjects () |
void | createInstance () |
void | createSurface () |
Private Attributes | |
Window | m_window |
Device | m_device {m_window} |
Renderer | m_renderer {m_window, m_device} |
std::unique_ptr< DescriptorPool > | m_globalPool |
Object::Map | m_objects |
VkInstance | m_instance {nullptr} |
VkSurfaceKHR | m_surface {nullptr} |
Definition at line 20 of file Engine.hpp.
|
explicit |
Definition at line 59 of file engine.cpp.
References ven::DescriptorPool::Builder::addPoolSize(), ven::DescriptorPool::Builder::build(), createInstance(), createSurface(), loadObjects(), m_device, m_globalPool, ven::SwapChain::MAX_FRAMES_IN_FLIGHT, and ven::DescriptorPool::Builder::setMaxSets().
|
default |
|
delete |
|
private |
Definition at line 133 of file engine.cpp.
Referenced by Engine().
|
inlineprivate |
Definition at line 49 of file Engine.hpp.
References ven::Window::getGLFWindow(), m_instance, m_surface, and m_window.
Referenced by Engine().
|
inline |
Definition at line 30 of file Engine.hpp.
References m_window.
|
private |
Definition at line 16 of file engine.cpp.
References ven::Object::color, ven::Model::createModelFromFile(), ven::Object::createObject(), ven::Object::getId(), m_device, m_objects, ven::Object::makePointLight(), ven::Object::model, ven::Transform3DComponent::scale, ven::Object::transform3D, and ven::Transform3DComponent::translation.
Referenced by Engine().
void ven::Engine::mainLoop | ( | ) |
Definition at line 67 of file engine.cpp.
References ven::DescriptorSetLayout::Builder::addBinding(), ven::DescriptorSetLayout::Builder::build(), ven::DescriptorWriter::build(), ven::Object::createObject(), ven::Renderer::endSwapChainRenderPass(), ven::SwapChain::MAX_FRAMES_IN_FLIGHT, ven::PointLightSystem::render(), ven::RenderSystem::renderObjects(), ven::Transform3DComponent::rotation, ven::Object::transform3D, ven::Transform3DComponent::translation, ven::PointLightSystem::update(), and ven::DescriptorWriter::writeBuffer().
Referenced by main().
Definition at line 39 of file Engine.hpp.
Referenced by Engine(), and loadObjects().
|
private |
Definition at line 42 of file Engine.hpp.
Referenced by Engine().
|
private |
Definition at line 45 of file Engine.hpp.
Referenced by createSurface().
|
private |
Definition at line 43 of file Engine.hpp.
Referenced by loadObjects().
Definition at line 40 of file Engine.hpp.
|
private |
Definition at line 46 of file Engine.hpp.
Referenced by createSurface().
|
private |
Definition at line 38 of file Engine.hpp.
Referenced by createSurface(), and getWindow().