00001 #ifndef _DEBUG_H_
00002 #define _DEBUG_H_
00003
00004 #include <nds.h>
00005 #include "gadgetstyle.h"
00006 #include "woopsistring.h"
00007
00008 #define DEBUG_ACTIVE true
00009
00010 namespace WoopsiUI {
00011
00012 class AmigaScreen;
00013 class AmigaWindow;
00014 class Gadget;
00015 class Woopsi;
00016 class MonoFont;
00017 class ScrollingTextBox;
00018
00027 class Debug {
00028
00029 public:
00033 static void busyWait();
00034
00041 static void printf(const char *format, ...);
00042
00043 private:
00044 static Debug* _debug;
00045 AmigaScreen* _screen;
00046 AmigaWindow* _window;
00047 ScrollingTextBox* _textBox;
00048 GadgetStyle* _style;
00053 Debug();
00054
00058 ~Debug();
00059
00064 static void createDebug();
00065
00069 void createGUI();
00070
00075 void output(const char* msg);
00076 };
00077 }
00078
00079 #endif