My Project
Loading...
Searching...
No Matches
Engine::CoreEngine Class Reference

Core class of the engine. Responsible for initializing systems, running the main loop, and shutting down the engine properly. More...

#include <CoreEngine.hpp>

Public Member Functions

 CoreEngine ()=default
 Default constructor.
void init (Engine::Application &app)
 Initializes the engine systems.
void run ()
 Runs the main engine loop. Handles update logic, rendering, and input processing.
void shutdown ()
 Shuts down the engine and releases resources.
bool isRunning () const
 Checks whether the engine is currently running.
InputManagergetInputManager ()
 Returns the input manager.
TimeManagergetTimeManager ()
 Returns the time manager.
LoggerManagergetLoggerManager ()
 Returns the logger manager.
AssetManagergetAssetManager ()
 Returns the asset manager.
std::shared_ptr< Scene > & getScene ()
 Returns the active scene.
EditorCameragetCamera ()
 Returns the editor camera.
float getDeltaTime () const
 Returns the delta time between frames.
void SetScene (std::shared_ptr< Scene > scene)
 Sets the active scene of the engine.
void SetDeltaTime (float delta)
 Sets the delta time between frames.

Detailed Description

Core class of the engine. Responsible for initializing systems, running the main loop, and shutting down the engine properly.

Constructor & Destructor Documentation

◆ CoreEngine()

Engine::CoreEngine::CoreEngine ( )
default

Default constructor.

Member Function Documentation

◆ getAssetManager()

AssetManager & Engine::CoreEngine::getAssetManager ( )
inline

Returns the asset manager.

◆ getCamera()

EditorCamera & Engine::CoreEngine::getCamera ( )
inline

Returns the editor camera.

◆ getDeltaTime()

float Engine::CoreEngine::getDeltaTime ( ) const
inline

Returns the delta time between frames.

◆ getInputManager()

InputManager & Engine::CoreEngine::getInputManager ( )
inline

Returns the input manager.

◆ getLoggerManager()

LoggerManager & Engine::CoreEngine::getLoggerManager ( )
inline

Returns the logger manager.

◆ getScene()

std::shared_ptr< Scene > & Engine::CoreEngine::getScene ( )
inline

Returns the active scene.

◆ getTimeManager()

TimeManager & Engine::CoreEngine::getTimeManager ( )
inline

Returns the time manager.

◆ init()

void Engine::CoreEngine::init ( Engine::Application & app)

Initializes the engine systems.

Parameters
appReference to the application instance

◆ isRunning()

bool Engine::CoreEngine::isRunning ( ) const
inline

Checks whether the engine is currently running.

Returns
True if the engine loop is active

◆ run()

void Engine::CoreEngine::run ( )

Runs the main engine loop. Handles update logic, rendering, and input processing.

◆ SetDeltaTime()

void Engine::CoreEngine::SetDeltaTime ( float delta)
inline

Sets the delta time between frames.

Parameters
deltaFrame delta time

◆ SetScene()

void Engine::CoreEngine::SetScene ( std::shared_ptr< Scene > scene)
inline

Sets the active scene of the engine.

Parameters
sceneScene to activate

◆ shutdown()

void Engine::CoreEngine::shutdown ( )

Shuts down the engine and releases resources.


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