diff options
author | ancarola <raffaele.ancarola@epfl.ch> | 2019-01-23 19:43:09 +0100 |
---|---|---|
committer | ancarola <raffaele.ancarola@epfl.ch> | 2019-01-23 19:43:09 +0100 |
commit | 40a2e6ae3d17e271f9eaa07a53d934fc5d5457db (patch) | |
tree | 0da332dbff1d621306d5bfc4d1e54fccb795a206 /engine/include/flatland.h | |
parent | Task debugging (diff) | |
download | flatland-40a2e6ae3d17e271f9eaa07a53d934fc5d5457db.tar.gz flatland-40a2e6ae3d17e271f9eaa07a53d934fc5d5457db.zip |
Labelled, signal
Diffstat (limited to '')
-rw-r--r-- | engine/include/flatland.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/engine/include/flatland.h b/engine/include/flatland.h index 27d2d12..c5f3eb5 100644 --- a/engine/include/flatland.h +++ b/engine/include/flatland.h @@ -1,6 +1,8 @@ #ifndef __FLATLAND_H__ #define __FLATLAND_H__ +namespace flat { + class FlatWindow; typedef void (*gameloop)(float); @@ -38,11 +40,21 @@ struct flat_status int init_flatland(FlatWindow*, gameloop, const flat_status&, float fps = 60); void quit_flatland(); -/* Core channel */ +namespace core { + + class job; + class task; + class channel; +} + +/* Engine channels */ -class SignalChannel; +channel& core_chan(); +channel& error_chan(); -SignalChannel * getCoreChannel(); +/* Main job access */ + +job& game_job(); /* Window and status accessors */ @@ -58,4 +70,6 @@ void load_flatland_status(const flat_status&); extern float flatland_dt; +} + #endif |