2008-12-18 10:30:20 +00:00
|
|
|
#ifndef _SDLWINDOW_H
|
|
|
|
#define _SDLWINDOW_H
|
|
|
|
|
|
|
|
#include "GLWindow.h"
|
2008-12-19 11:46:52 +00:00
|
|
|
#if defined HAVE_SDL && HAVE_SDL
|
2008-12-18 10:30:20 +00:00
|
|
|
#include <SDL.h>
|
|
|
|
|
|
|
|
class SDLWindow : public GLWindow
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void SwapBuffers();
|
|
|
|
virtual void SetWindowText(const char *text);
|
|
|
|
virtual bool PeekMessages();
|
|
|
|
virtual void Update();
|
|
|
|
virtual bool MakeCurrent();
|
2008-12-20 23:13:39 +00:00
|
|
|
|
|
|
|
static bool valid() { return true; }
|
2008-12-18 10:30:20 +00:00
|
|
|
~SDLWindow();
|
2009-01-06 20:54:47 +00:00
|
|
|
SDLWindow();
|
2008-12-18 10:30:20 +00:00
|
|
|
|
|
|
|
};
|
2008-12-19 11:46:52 +00:00
|
|
|
#else
|
|
|
|
class SDLWindow : public GLWindow
|
|
|
|
{
|
|
|
|
public:
|
2009-01-06 20:54:47 +00:00
|
|
|
SDLWindow() {}
|
2008-12-19 11:46:52 +00:00
|
|
|
};
|
|
|
|
#endif
|
2008-12-18 10:30:20 +00:00
|
|
|
#endif
|