NXEngine v1.0.0.5
[NXEngine.git] / graphics / safemode.h
blob12e4b338ffc2692e1cb312216a87074c6a687d67
2 #ifndef _SAFEMODE_H
3 #define _SAFEMODE_H
5 enum // special Y positioning arguments for moveto
7 SM_UPPER_THIRD = -1,
8 SM_CENTER = -2,
9 SM_LOWER_THIRD = -3,
10 SM_NONE = -4,
11 SM_MIDUPPER_Y = -5
14 namespace safemode
16 bool init();
17 void close();
19 void moveto(int y);
20 bool print(const char *fmt, ...);
21 void clear();
23 void status(const char *fmt, ...);
24 void clearstatus();
26 int run_until_key(bool delay=true);
29 #endif