Clutter Engine 0.0.1
Loading...
Searching...
No Matches
clt::CEngine Class Reference

The main engine class responsible for initializing and managing the game engine components. More...

#include <CEngine.h>

Public Member Functions

 CEngine ()=default
 Default constructor.
 
 ~CEngine ()=default
 Default destructor.
 
void Init (const std::string &path, std::vector< Level * > pLevels)
 Initializes the engine with the specified parameters.
 
void Update ()
 Updates the engine state.
 
void Close ()
 Closes the engine and releases all resources.
 
RendererGLGetRenderer () const
 Gets the renderer instance.
 
bool isEditorMode () const
 Checks if the engine is running in editor mode.
 
LevelManagerGetLevelManager () const
 Gets the level manager instance.
 

Detailed Description

The main engine class responsible for initializing and managing the game engine components.

Member Function Documentation

◆ GetLevelManager()

LevelManager * clt::CEngine::GetLevelManager ( ) const
inline

Gets the level manager instance.

Returns
A pointer to the level manager instance.

◆ GetRenderer()

RendererGL * clt::CEngine::GetRenderer ( ) const
inline

Gets the renderer instance.

Returns
A pointer to the renderer instance.

◆ Init()

void CEngine::Init ( const std::string & path,
std::vector< Level * > pLevels )

Initializes the engine with the specified parameters.

Parameters
pathThe path to the configuration or resource directory.
pLevelsThe levels to be managed by the level manager.

◆ isEditorMode()

bool clt::CEngine::isEditorMode ( ) const
inline

Checks if the engine is running in editor mode.

Returns
True if editor mode is enabled, false otherwise.

◆ Update()

void CEngine::Update ( )

Updates the engine state.

This function should be called every frame to update all engine subsystems.


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