aboutsummaryrefslogtreecommitdiff
path: root/lib/gdi/sdl.h
blob: 20ff04fa827ecc6853f3ee3bd32dde3fd56ce832 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef __lib_gdi_sdl_h
#define __lib_gdi_sdl_h

#include "fb.h"
#include "gpixmap.h"
#include "grc.h"

#include <SDL.h>

class gSDLDC: public gDC
{
	SDL_Surface *m_screen;
	static gSDLDC *m_instance;
	void exec(gOpcode *opcode);

	void setPalette();
	gSurface m_surface;
public:
	
	gSDLDC();
	virtual ~gSDLDC();
	static int getInstance(ePtr<gSDLDC> &ptr) { if (!m_instance) return -1; ptr = m_instance; return 0; }
	int islocked() { return 0; }
};


#endif