From 6c8446cddb37df732fc9e5fc21f98e31968ce634 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 1 Feb 2008 19:34:47 +0000 Subject: interface cleanup --- src/core/core.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/core/core.h') diff --git a/src/core/core.h b/src/core/core.h index 09c7209..745fd86 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -7,20 +7,18 @@ #ifndef __INCLUDED_CORE_H__ #define __INCLUDED_CORE_H__ +#include "core/gameinterface.h" +#include "core/applicationinterface.h" + /// core contains the basic functionality of the engine namespace core { - /// initialize the core - void init(); - - /// shutdown the core - void shutdown(); + inline GameInterface *game() { return GameInterface::instance(); } - /// run one frame - void frame(float sec); + inline ApplicationInterface *application() { return ApplicationInterface::instance(); } + }; -#include "core/game.h" #endif // __INCLUDED_CORE_H__ -- cgit v1.2.3