UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
engine.h File Reference
#include <ugdk/action.h>
#include <ugdk/debug.h>
#include <ugdk/system.h>
#include <ugdk/system/configuration.h>
#include <functional>
#include <list>
#include <memory>
Include dependency graph for engine.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ugdk
 
 ugdk::system
 

Macros

#define GET_OWNERSHIP(T)   T
 

Typedefs

typedef std::function
< std::unique_ptr
< action::Scene >)> 
ugdk::system::SceneFactory
 

Functions

const std::list
< std::shared_ptr< const
debug::SectionData > > & 
ugdk::system::profile_data_list ()
 
const Configuration & ugdk::system::CurrentConfiguration ()
 Returns the current configuration. More...
 
EventHandler & ugdk::system::GlobalEventHandler ()
 Returns the global EventHandler. More...
 
EventHandler & ugdk::system::GetCurrentSceneEventHandler ()
 Returns the EventHandler for the current scene. More...
 
Engine Management
bool ugdk::system::Initialize (const Configuration &configuration)
 Initializes the engine. Returns true if sucessful, false otherwise. More...
 
bool ugdk::system::Initialize ()
 Initializes the engine. Calls the other Initialize method with all default arguments. More...
 
void ugdk::system::Run ()
 Starts running the engine. More...
 
void ugdk::system::Suspend ()
 Stops the main loop. More...
 
void ugdk::system::Release ()
 Releases all the resouces allocated by the engine. More...
 
Scene Management
void ugdk::system::PushSceneFactory (const std::function< std::unique_ptr< action::Scene >()> &scene_factory)
 Queues a scene to be added just before the start of the next frame. More...
 
void ugdk::system::PushScene (GET_OWNERSHIP(std::unique_ptr< action::Scene >) scene)
 Queues a scene to be added just before the start of the next frame. More...
 
action::Scene & ugdk::system::CurrentScene ()
 Returns the currently focused scene. More...
 
const std::list
< std::unique_ptr
< action::Scene > > & 
ugdk::system::scene_list ()
 Returns the scene list. More...
 
Internal
void ugdk::system::RegisterSDLHandler (const SDLEventHandler *)
 
void ugdk::system::DeregisterSDLHandler (const SDLEventHandler *)
 

Macro Definition Documentation

#define GET_OWNERSHIP (   T)    T