Class Engine¶
Defined in File engine.hpp
Class Documentation¶
-
class
legion::core
::
Engine
¶ Main top level engine abstraction. This class allows you to setup the engine with all the necessary modules and settings. This class also contains all the sub managers of the core systems. legion::core::Module legion::core::ecs::EcsRegistry legion::core::scenes::SceneManager legion::core::scheduling::Scheduler.
Public Functions
-
inline
Engine
(int argc, char **argv)¶
-
inline
~Engine
()¶
-
template<class
ModuleType
, class ...Args
>
inline voidreportModule
(Args&&... args)¶ reports an engine module
- Template Parameters
ModuleType
: the module you want to report
- Parameters
s
: a signal that you want to pass arguments to the constructor of the Moduleargs
: the arguments you want to pass legion::core::Module
-
inline void
init
()¶ Calls init on all reported modules and thus engine internals.
- Note
Needs to be called manually if LEGION_ENTRY was not used.
- Parameters
argc
: argc of mainargv
: argv of main legion::core::Module
-
inline void
run
()¶ Runs engine loop.
-
inline std::vector<char*> &
getCliArgs
()¶
-
inline