00001
#ifndef WINDOW_SDL_H
00002
#define WINDOW_SDL_H
00003
00004
#include "window.h"
00005
#include "../lib/gtl/include/gtl.h"
00006
#include "../lib/sdl/include/SDL.h"
00007
00008 class CWindowSDL :
public CWindow
00009 {
00010
static CWindowSDL* m_pInstance;
00011
00012
private:
00013 SDL_Surface* m_pSurface;
00014
00015
void _Resize (
unsigned short unWidth,
unsigned short unHeight);
00016
00017
CWindowSDL ();
00018 ~
CWindowSDL ();
00019
00020
public:
00021
static CWindowSDL*
Instance ();
00022
static void Kill ();
00023
static bool IsCreate ();
00024
00025
virtual void Swap ();
00026
virtual bool Create (
const char* szName,
unsigned short unWidth,
unsigned short unHeight,
unsigned char ucColor,
bool bFullscreen);
00027 };
00028
00029
#endif //WINDOW_SDL_H
00030