#include "gpixmap.h"
#include "grc.h"
+class gFBDC;
+
+SWIG_IGNORE(gFBDC);
class gFBDC: public gDC
{
+#ifndef SWIG
fbClass *fb;
static gFBDC *instance;
void exec(gOpcode *opcode);
int brightness, gamma, alpha;
void calcRamp();
void setPalette();
- gSurface surface;
+ gSurface surface, surface_back;
+ int m_enable_double_buffering;
+ int m_xres, m_yres;
+#else
+ gFBDC();
+ virtual ~gFBDC();
+#endif
public:
+ void setResolution(int xres, int yres);
+#ifndef SWIG
void reloadSettings();
void setAlpha(int alpha);
void setBrightness(int brightness);
void setGamma(int gamma);
-
+
int getAlpha() { return alpha; }
int getBrightness() { return brightness; }
int getGamma() { return gamma; }
-
+
+ int haveDoubleBuffering() { return m_enable_double_buffering; }
+
void saveSettings();
-
+
gFBDC();
virtual ~gFBDC();
static int getInstance(ePtr<gFBDC> &ptr) { if (!instance) return -1; ptr = instance; return 0; }
int islocked() { return fb->islocked(); }
+#endif
};
-
+SWIG_TEMPLATE_TYPEDEF(ePtr<gFBDC>, gFBDC);
+SWIG_EXTEND(ePtr<gFBDC>,
+ static ePtr<gFBDC> getInstance()
+ {
+ extern ePtr<gFBDC> NewgFBDCPtr(void);
+ return NewgFBDCPtr();
+ }
+);
#endif