11 class gFBDC: public gDC
15 static gFBDC *instance;
16 void exec(gOpcode *opcode);
17 unsigned char ramp[256], rampalpha[256]; // RGB ramp 0..255
18 int brightness, gamma, alpha;
21 gSurface surface, surface_back;
22 int m_enable_double_buffering;
29 void setResolution(int xres, int yres);
31 void reloadSettings();
32 void setAlpha(int alpha);
33 void setBrightness(int brightness);
34 void setGamma(int gamma);
36 int getAlpha() { return alpha; }
37 int getBrightness() { return brightness; }
38 int getGamma() { return gamma; }
40 int haveDoubleBuffering() { return m_enable_double_buffering; }
46 static int getInstance(ePtr<gFBDC> &ptr) { if (!instance) return -1; ptr = instance; return 0; }
47 int islocked() { return fb->islocked(); }
50 SWIG_TEMPLATE_TYPEDEF(ePtr<gFBDC>, gFBDC);
51 SWIG_EXTEND(ePtr<gFBDC>,
52 static ePtr<gFBDC> getInstance()
54 extern ePtr<gFBDC> NewgFBDCPtr(void);