Oficina Framework  1.3
Games Framework
OficinaFramework::EngineCore Class Reference

The main core of the engine, which handles initialization and game loop automatically. More...

#include <EngineCore.hpp>

Static Public Member Functions

static void Initialize (int argc, char **argv, std::list< std::string > *confv)
 Initializes the engine itself. More...
 
static void Initialize (int argc, char **argv)
 Initializes the engine itself. More...
 
static int DoGameLoop ()
 
static void Dispose ()
 Disposes all data on all systems. More...
 

Detailed Description

The main core of the engine, which handles initialization and game loop automatically.

Todo:
  • Add listeners system for user-based modules.

Member Function Documentation

◆ Dispose()

static void OficinaFramework::EngineCore::Dispose ( )
static

Disposes all data on all systems.

◆ DoGameLoop()

static int OficinaFramework::EngineCore::DoGameLoop ( )
static

Executes the main game loop.

Returns
Game loop results, when game ends.

◆ Initialize() [1/2]

static void OficinaFramework::EngineCore::Initialize ( int  argc,
char **  argv,
std::list< std::string > *  confv 
)
static

Initializes the engine itself.

Parameters
argcNumber of arguments from main.
argvArguments from main.
confvList of engine-specific string arguments. See GameArgs Available Options for details.
Warning
confv is deleted after this procedure.

◆ Initialize() [2/2]

static void OficinaFramework::EngineCore::Initialize ( int  argc,
char **  argv 
)
static

Initializes the engine itself.

Parameters
argcNumber of arguments from main.
argvArguments from main.

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