add openGL based framebuffer implementation for testing on PC

this is based on Carsten Juttner's previous work, but without
any video decoding.
This commit is contained in:
Stefan Seyfried
2012-10-08 15:57:19 +02:00
parent a96376ff23
commit e0c80399d6
6 changed files with 702 additions and 2 deletions

View File

@@ -53,6 +53,13 @@ typedef struct fb_var_screeninfo t_fb_var_screeninfo;
#define FADE_STEP 5
#define FADE_RESET 0xFFFF
#if HAVE_GENERIC_HARDWARE
#define USE_OPENGL 1
#endif
#ifdef USE_OPENGL
class GLThreadObj;
#endif
/** Ausfuehrung als Singleton */
class CFrameBuffer
{
@@ -121,6 +128,10 @@ class CFrameBuffer
void blitIcon(int src_width, int src_height, int fb_x, int fb_y, int width, int height);
#endif
int m_transparent_default, m_transparent;
#ifdef USE_OPENGL
GLThreadObj *mpGLThreadObj; /* the thread object */
#endif
public:
fb_pixel_t realcolor[256];