diff data/model/SDLWidget.h @ 132:e236ce53a2e7

(none)
author benoitrigolleau
date Thu, 08 Nov 2007 14:42:12 +0000
parents
children 2d883a374b79
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/data/model/SDLWidget.h	Thu Nov 08 14:42:12 2007 +0000
@@ -0,0 +1,32 @@
+#ifndef _SDL_WIDGET_H
+#define _SDL_WIDGET_H
+#include <QWidget>
+#include <QShowEvent>
+#include <QTimer>
+
+#ifdef WIN32
+#include <SDL.h>
+#endif
+#ifdef __unix__
+#include <SDL/SDL.h>
+#endif
+#undef main
+
+class SDLWidget : public QWidget
+{
+	Q_OBJECT
+
+public:
+	SDLWidget();
+	virtual ~SDLWidget();
+
+protected:
+
+	bool windowInitialized;
+	SDL_Surface *screen;
+
+	virtual void showEvent(QShowEvent *e);
+};
+
+
+#endif