typedef struct
{
- pixel_t *buffer; // invisible buffer
- pixel_t *colormap; // 256 * VID_GRADES size
- unsigned short *colormap16; // 256 * VID_GRADES size
- int fullbright; // index of first fullbright color
unsigned width;
unsigned height;
float aspect; // width / height -- < 0 is taller than wide
- int numpages;
int recalc_refdef; // if true, recalc vid-based stuff
- pixel_t *conbuffer;
unsigned conwidth;
unsigned conheight;
- int maxwarpwidth;
- int maxwarpheight;
- pixel_t *direct; // direct drawing to framebuffer, if not
- // NULL
} viddef_t;
extern viddef_t vid; // global video state