X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=vid.h;h=3c845043275a4549d0bfc5356b5570530f3f82ef;hb=2d3e69bcc8ddc5d1ed1a397c5a8944d44bcd44f4;hp=bbd593d65e932a7d85d3a28077f05abdff34afa8;hpb=af4d8d7892ace10b13321577a55dc0630e315129;p=xonotic%2Fdarkplaces.git diff --git a/vid.h b/vid.h index bbd593d6..3c845043 100644 --- a/vid.h +++ b/vid.h @@ -43,8 +43,7 @@ extern void (*vid_menukeyfn)(int key); extern int vid_hidden; extern int vid_activewindow; -extern int vid_allowhwgamma; -extern int vid_hardwaregammasupported; +extern cvar_t vid_hardwaregammasupported; extern int vid_usinghwgamma; extern cvar_t vid_fullscreen; @@ -119,6 +118,10 @@ int VID_SetMode (int modenum); // sets the mode; only used by the Quake engine for resetting to mode 0 (the // base mode) on memory allocation failures +int VID_InitMode(int fullscreen, int width, int height, int bpp); +// allocates and opens an appropriate OpenGL context (and its window) + + // sets hardware gamma correction, returns false if the device does not // support gamma control int VID_SetGamma (unsigned short *ramps);