CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::TApplication< T > Class Template Reference

A template class that helps initializing an application. More...

#include <CeresEngine/Application.hpp>

Public Member Functions

template<typename... Args>
 TApplication (Args &&... args)
 Creates a new application instance.
 
 ~TApplication ()
 A method called to perform the application for shutdown.
 
int run ()
 A method called to perform the application for start-up.
 

Private Attributes

T mApplication
 The application instance.
 

Detailed Description

template<typename T>
class CeresEngine::TApplication< T >

A template class that helps initializing an application.

Constructor & Destructor Documentation

◆ TApplication()

template<typename T >
template<typename... Args>
CeresEngine::TApplication< T >::TApplication ( Args &&...  args)
inlineexplicit

Creates a new application instance.

Parameters
argumentsThe command line arguments.

◆ ~TApplication()

template<typename T >
CeresEngine::TApplication< T >::~TApplication ( )
inline

A method called to perform the application for shutdown.

Member Function Documentation

◆ run()

template<typename T >
int CeresEngine::TApplication< T >::run ( )
inline

A method called to perform the application for start-up.

Runs the engine main loop.

This method will normally not return until the user has left the game (by triggering exitAction) or closed the application window.

Returns
The return code

Member Data Documentation

◆ mApplication

template<typename T >
T CeresEngine::TApplication< T >::mApplication
private

The application instance.


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