X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=vid.h;h=3c845043275a4549d0bfc5356b5570530f3f82ef;hb=f58d94957b6413228170173c555521e5c7b160cd;hp=2280e2b84925ca80ad874c0a56c855576741a822;hpb=cd21cb3be9de4da3b2c1d2cb029352947b48166c;p=xonotic%2Fdarkplaces.git diff --git a/vid.h b/vid.h index 2280e2b8..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; @@ -52,7 +51,6 @@ extern cvar_t vid_width; extern cvar_t vid_height; extern cvar_t vid_bitsperpixel; extern cvar_t vid_mouse; -extern cvar_t vid_stencil; extern cvar_t v_gamma; extern cvar_t v_contrast; @@ -120,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);