2005-01-23 18:45:25 +01:00
|
|
|
#ifndef GFX_H__
|
|
|
|
#define GFX_H__
|
|
|
|
|
2004-06-19 16:45:04 +02:00
|
|
|
|
2004-11-19 23:41:05 +01:00
|
|
|
// useful for choosing a video mode.
|
2004-06-19 16:45:04 +02:00
|
|
|
// if we fail, outputs are unchanged (assumed initialized to defaults)
|
|
|
|
extern int get_cur_vmode(int* xres, int* yres, int* bpp, int* freq);
|
|
|
|
|
2004-11-19 23:41:05 +01:00
|
|
|
// useful for determining aspect ratio.
|
2004-06-19 16:45:04 +02:00
|
|
|
// if we fail, outputs are unchanged (assumed initialized to defaults)
|
|
|
|
extern int get_monitor_size(int& width_mm, int& height_mm);
|
|
|
|
|
|
|
|
|
2005-03-20 22:34:01 +01:00
|
|
|
const size_t GFX_CARD_LEN = 128;
|
2004-11-19 23:41:05 +01:00
|
|
|
extern char gfx_card[GFX_CARD_LEN]; // default: ""
|
|
|
|
const size_t GFX_DRV_VER_LEN = 16;
|
|
|
|
extern char gfx_drv_ver[GFX_DRV_VER_LEN]; // default: ""
|
2004-06-19 16:45:04 +02:00
|
|
|
|
|
|
|
// attempt to detect graphics card without OpenGL (in case ogl init fails,
|
|
|
|
// or we want more detailed info). gfx_card[] is unchanged on failure.
|
2005-01-23 18:45:25 +01:00
|
|
|
extern void get_gfx_info(void);
|
|
|
|
|
|
|
|
#endif // #ifndef GFX_H__
|