Catos Engine (Source) 0.0.1
Lightweight Game engine
Loading...
Searching...
No Matches
catos::App Class Reference

Main class that holds all information. More...

#include <application.h>

Public Member Functions

 App (AppCreationInfo *creationInfo)
 Initializes the Application (Also registers all "known" class to the registry)
 
 ~App ()
 
bool is_alive ()
 Returns if the app is still running.
 
template<typename A >
void bind (const void *instance)
 Used to bind an instance to an type.
 
template<typename A >
A * get ()
 Returns the registered instance.
 
AppCreationInfogetAppInfo ()
 Returns a pointer to the info with what the application is made.
 

Detailed Description

Main class that holds all information.

Constructor & Destructor Documentation

◆ App()

catos::App::App ( AppCreationInfo * creationInfo)

Initializes the Application (Also registers all "known" class to the registry)

◆ ~App()

catos::App::~App ( )

Member Function Documentation

◆ bind()

template<typename A >
void catos::App::bind ( const void * instance)
inline

Used to bind an instance to an type.

◆ get()

template<typename A >
A * catos::App::get ( )
inline

Returns the registered instance.

◆ getAppInfo()

catos::AppCreationInfo * catos::App::getAppInfo ( )

Returns a pointer to the info with what the application is made.

◆ is_alive()

bool catos::App::is_alive ( )

Returns if the app is still running.


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