view 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 source
#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