Class for engine. More...
#include <Engine.hpp>
Public Member Functions | |
Engine (const Config &config) | |
~Engine () | |
Engine (const Engine &)=delete | |
Engine | operator= (const Engine &)=delete |
Engine (Engine &&)=delete | |
Engine | operator= (Engine &&)=delete |
void | run () |
Private Member Functions | |
void | loadObjects () |
Private Attributes | |
ENGINE_STATE | m_state {EXIT} |
Window | m_window |
Camera | m_camera |
Gui | m_gui |
Device | m_device {m_window} |
SceneManager | m_sceneManager {m_device} |
Renderer | m_renderer {m_window, m_device} |
std::unique_ptr< DescriptorPool > | m_globalPool |
std::vector< std::unique_ptr< DescriptorPool > > | m_framePools |
Class for engine.
Definition at line 23 of file Engine.hpp.
|
explicit |
Definition at line 13 of file engine.cpp.
References ven::DescriptorPool::Builder::addPoolSize(), ven::DescriptorPool::Builder::build(), ven::EDITOR, ven::Window::getGLFWindow(), ven::Device::getInstance(), ven::Renderer::getSwapChainRenderPass(), ven::Gui::init(), loadObjects(), m_device, m_framePools, m_globalPool, m_gui, m_renderer, m_window, ven::MAX_FRAMES_IN_FLIGHT, ven::DescriptorPool::Builder::setMaxSets(), and ven::DescriptorPool::Builder::setPoolFlags().
|
inline |
Definition at line 28 of file Engine.hpp.
References ven::Gui::cleanup().
|
delete |
|
delete |
|
private |
Definition at line 28 of file engine.cpp.
References ven::Colors::BLUE_4, ven::ObjectFactory::create(), ven::Colors::CYAN_4, ven::Colors::GREEN_4, ven::ModelFactory::loadAll(), ven::Logger::logExecutionTime(), ven::Colors::MAGENTA_4, ven::Colors::RED_4, and ven::Colors::YELLOW_4.
Referenced by Engine().
void ven::Engine::run | ( | ) |
Definition at line 86 of file engine.cpp.
References ven::DescriptorWriter::build(), ven::EXIT, ven::FrameInfo::frameIndex, ven::Clock::getDeltaTime(), ven::HIDDEN, ven::MAX_FRAMES_IN_FLIGHT, ven::ObjectRenderSystem::render(), ven::PointLightRenderSystem::render(), ven::Clock::update(), and ven::DescriptorWriter::writeBuffer().
Referenced by main().
|
private |
Definition at line 44 of file Engine.hpp.
Definition at line 46 of file Engine.hpp.
Referenced by Engine().
|
private |
Definition at line 50 of file Engine.hpp.
Referenced by Engine().
|
private |
Definition at line 49 of file Engine.hpp.
Referenced by Engine().
|
private |
Definition at line 45 of file Engine.hpp.
Referenced by Engine().
Definition at line 48 of file Engine.hpp.
Referenced by Engine().
|
private |
Definition at line 47 of file Engine.hpp.
|
private |
Definition at line 41 of file Engine.hpp.
|
private |
Definition at line 43 of file Engine.hpp.
Referenced by Engine().