1 #ifndef __lib_gdi_sdl_h
2 #define __lib_gdi_sdl_h
4 #include <lib/base/thread.h>
5 #include <lib/gdi/gmaindc.h>
9 class gSDLDC: public gMainDC, public eThread, public Object
12 SDL_Surface *m_screen;
13 void exec(const gOpcode *opcode);
17 eFixedMessagePump<SDL_Event> m_pump;
18 void keyEvent(const SDL_Event &event);
19 void pumpEvent(const SDL_Event &event);
20 virtual void thread();
28 void pushEvent(enum event code, void *data1 = 0, void *data2 = 0);
29 void evSetVideoMode(unsigned long xres, unsigned long yres);
33 void setResolution(int xres, int yres);
36 int islocked() { return 0; }