00001 #ifndef _DEBUG_H_
00002 #define _DEBUG_H_
00003
00004 #include <nds.h>
00005
00006 #define DEBUG_ACTIVE true
00007
00008 namespace WoopsiUI {
00009
00010 class AmigaScreen;
00011 class AmigaWindow;
00012 class Gadget;
00013 class Woopsi;
00014 class MonoFont;
00015 class ScrollingTextBox;
00016
00025 class Debug {
00026
00027 public:
00031 static void busyWait();
00032
00039 static void printf(const char *format, ...);
00040
00041 private:
00042 static Debug* _debug;
00043 AmigaScreen* _screen;
00044 AmigaWindow* _window;
00045 ScrollingTextBox* _textBox;
00046 MonoFont* _font;
00051 Debug();
00052
00056 ~Debug();
00057
00062 static void createDebug();
00063
00067 void createGUI();
00068
00073 void output(const char* msg);
00074 };
00075 }
00076
00077 #endif