| 1 |
$extern void InitVideo(); |
| 2 |
void InitVideo(); |
| 3 |
|
| 4 |
extern bool UseOpenGL; |
| 5 |
|
| 6 |
class CVideo |
| 7 |
{ |
| 8 |
public: |
| 9 |
int Width; |
| 10 |
int Height; |
| 11 |
int Depth; |
| 12 |
bool FullScreen; |
| 13 |
bool ResizeScreen(int width, int height); |
| 14 |
}; |
| 15 |
|
| 16 |
CVideo Video; |
| 17 |
void ToggleFullScreen(void); |
| 18 |
|
| 19 |
class CGraphic |
| 20 |
{ |
| 21 |
public: |
| 22 |
static CGraphic *New(const std::string file, int w = 0, int h = 0); |
| 23 |
static void Free(CGraphic *); |
| 24 |
void Load(); |
| 25 |
void Resize(int w, int h); |
| 26 |
}; |
| 27 |
|
| 28 |
class CPlayerColorGraphic : public CGraphic |
| 29 |
{ |
| 30 |
public: |
| 31 |
static CPlayerColorGraphic *New(const std::string file, int w = 0, int h = 0); |
| 32 |
}; |
| 33 |
|
| 34 |
class CColor { |
| 35 |
CColor(unsigned char r = 0, unsigned char g = 0, unsigned char b = 0, |
| 36 |
unsigned char a = 0); |
| 37 |
|
| 38 |
unsigned char R; |
| 39 |
unsigned char G; |
| 40 |
unsigned char B; |
| 41 |
unsigned char A; |
| 42 |
}; |
| 43 |
|
| 44 |
extern bool UseGLTextureCompression; |
| 45 |
|