vengine  0.0.1
3D graphics engine
Loading...
Searching...
No Matches
ven::Engine Class Reference

Class for engine. More...

#include <Engine.hpp>

+ Collaboration diagram for ven::Engine:

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< DescriptorPoolm_globalPool
 
std::vector< std::unique_ptr< DescriptorPool > > m_framePools
 

Detailed Description

Class for engine.

Definition at line 23 of file Engine.hpp.

Constructor & Destructor Documentation

◆ Engine() [1/3]

◆ ~Engine()

ven::Engine::~Engine ( )
inline

Definition at line 28 of file Engine.hpp.

References ven::Gui::cleanup().

+ Here is the call graph for this function:

◆ Engine() [2/3]

ven::Engine::Engine ( const Engine & )
delete

◆ Engine() [3/3]

ven::Engine::Engine ( Engine && )
delete

Member Function Documentation

◆ loadObjects()

void ven::Engine::loadObjects ( )
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=() [1/2]

Engine ven::Engine::operator= ( const Engine & )
delete

◆ operator=() [2/2]

Engine ven::Engine::operator= ( Engine && )
delete

◆ run()

void ven::Engine::run ( )

Member Data Documentation

◆ m_camera

Camera ven::Engine::m_camera
private

Definition at line 44 of file Engine.hpp.

◆ m_device

Device ven::Engine::m_device {m_window}
private

Definition at line 46 of file Engine.hpp.

Referenced by Engine().

◆ m_framePools

std::vector<std::unique_ptr<DescriptorPool> > ven::Engine::m_framePools
private

Definition at line 50 of file Engine.hpp.

Referenced by Engine().

◆ m_globalPool

std::unique_ptr<DescriptorPool> ven::Engine::m_globalPool
private

Definition at line 49 of file Engine.hpp.

Referenced by Engine().

◆ m_gui

Gui ven::Engine::m_gui
private

Definition at line 45 of file Engine.hpp.

Referenced by Engine().

◆ m_renderer

Renderer ven::Engine::m_renderer {m_window, m_device}
private

Definition at line 48 of file Engine.hpp.

Referenced by Engine().

◆ m_sceneManager

SceneManager ven::Engine::m_sceneManager {m_device}
private

Definition at line 47 of file Engine.hpp.

◆ m_state

ENGINE_STATE ven::Engine::m_state {EXIT}
private

Definition at line 41 of file Engine.hpp.

◆ m_window

Window ven::Engine::m_window
private

Definition at line 43 of file Engine.hpp.

Referenced by Engine().


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