summaryrefslogtreecommitdiff
path: root/src/classes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes.h')
-rw-r--r--src/classes.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/classes.h b/src/classes.h
new file mode 100644
index 0000000..4809afb
--- /dev/null
+++ b/src/classes.h
@@ -0,0 +1,64 @@
+#define DIRECT_ENABLE_DEBUG
+
+
+#include <iostream>
+#include <vector>
+
+using namespace std;
+
+
+/*
+ * ++DFB
+ */
+#include <++dfb.h>
+
+
+
+/*
+ * Direct
+ */
+extern "C" {
+#include <stdarg.h>
+
+#include <direct/clock.h>
+#include <direct/debug.h>
+#include <direct/memcpy.h>
+#include <direct/messages.h>
+#include <direct/thread.h>
+#include <direct/util.h>
+
+#include <gfx/convert.h>
+}
+
+
+/*
+ * Win32
+ */
+#ifdef __WIN32__
+#define CreateWindow CreateWindowWin32
+#include <windows.h>
+#include <wingdi.h>
+#include <winuser.h>
+#include "videodriver.h"
+#undef CreateWindow
+
+#else
+
+/*
+ * X11
+ */
+extern "C" {
+#include <X11/Xlib.h> /* fundamentals X datas structures */
+#include <X11/Xutil.h> /* datas definitions for various functions */
+#include <X11/keysym.h> /* for a perfect use of keyboard events */
+#include <X11/Xatom.h>
+#include <X11/cursorfont.h>
+
+#include <X11/extensions/XShm.h>
+#include <X11/extensions/Xdamage.h>
+#include <sys/ipc.h>
+#include <sys/shm.h>
+}
+
+#endif
+