00001 #ifndef __LOGGER__
00002 #define __LOGGER__
00003
00004 #include <QWidget>
00005 #include <QTextEdit>
00006
00007 #include <gl/glut.h>
00008
00013 class Logger
00014 {
00015 public:
00016 static QTextEdit *instantiateLogger(QWidget *parent);
00017
00018 static void log(const QString &string);
00019
00020
00021
00022 static void log(double number);
00023
00024 static void log(int number);
00025
00026 static void log(double first, double second, double third);
00027
00028 static void logGLErrors(const char *reason);
00029
00030 private:
00031 static QTextEdit *loggerTextArea;
00032
00033 static bool loggerInstantiated;
00034
00035 static QString storage;
00036 };
00037
00038 #endif