1
// vi:ts=4:shiftwidth=4:expandtab
2
/***************************************************************************
5
begin : Fri July 20 2001
6
copyright : (C) 2001 by huyong
7
email : ccpaging@online.sh.cn
9
***************************************************************************/
11
/***************************************************************************
13
* This program is free software; you can redistribute it and/or modify *
14
* it under the terms of the GNU General Public License as published by *
15
* the Free Software Foundation; either version 2 of the License, or *
16
* (at your option) any later version. *
18
***************************************************************************/
27
class LIBGGI : public GraphDev {
29
static bool TryOpen();
32
void PutPixel(int x,int y,int color);
33
void FillRect(int x1,int y1,int x2,int y2,int color);
34
void RevRect(int x1,int y1,int x2,int y2);
35
void DrawChar(int x,int y,int fg,int bg,struct CharBitMap* pFont);
40
string Name() { return "ggi"; }
43
int GetPixMap(char* expanded,int fg,int bg,struct CharBitMap* pFont);
45
static char* mpixMapBuf;
46
static size_t mPixMapBufSize;
47
static char* GetPixMapBuf(size_t size);
49
static ggi_visual_t visual;
51
static ggi_pixel mPixelColor[16];
52
static int mBytesPixel;