typedef struct viddef_mode_s
{
+ int display;
+ qbool fullscreen;
+ qbool desktopfullscreen; ///< whether the display hardware mode can be changed
int width;
int height;
int bitsperpixel;
- qbool fullscreen;
float refreshrate;
- qbool userefreshrate;
qbool stereobuffer;
int samples;
}
typedef struct viddef_s
{
// these are set by VID_Mode
- viddef_mode_t mode;
// used in many locations in the renderer
- int width;
- int height;
- int bitsperpixel;
- qbool fullscreen;
- float refreshrate;
- qbool userefreshrate;
- qbool stereobuffer;
- int samples;
+ viddef_mode_t mode; ///< currently active video mode
qbool stencil;
qbool sRGB2D; // whether 2D rendering is sRGB corrected (based on sRGBcapable2D)
qbool sRGB3D; // whether 3D rendering is sRGB corrected (based on sRGBcapable3D)
int forcetextype; // always use GL_BGRA for D3D, always use GL_RGBA for GLES, etc
int xPos, yPos; // current virtual position of the top left corner of the SDL window
- unsigned char displayindex; // the monitor it's on currently
} viddef_t;
// global video state
extern viddef_t vid;
-extern void (*vid_menudrawfn)(void);
-extern void (*vid_menukeyfn)(int key);
#define MAXJOYAXIS 16
// if this is changed, the corresponding code in vid_shared.c must be updated
qbool VID_JoyBlockEmulatedKeys(int keycode);
void VID_EnableJoystick(qbool enable);
+extern cvar_t cl_demo_mousegrab;
+extern qbool scr_loading;
+
extern qbool vid_hidden;
extern qbool vid_activewindow;
extern qbool vid_supportrefreshrate;
extern cvar_t vid_bitsperpixel;
extern cvar_t vid_samples;
extern cvar_t vid_refreshrate;
-extern cvar_t vid_userefreshrate;
extern cvar_t vid_touchscreen_density;
extern cvar_t vid_touchscreen_xdpi;
extern cvar_t vid_touchscreen_ydpi;
extern cvar_t vid_vsync;
extern cvar_t vid_mouse;
extern cvar_t vid_mouse_clickthrough;
+extern cvar_t vid_minimize_on_focus_loss;
extern cvar_t vid_grabkeyboard;
extern cvar_t vid_touchscreen;
extern cvar_t vid_touchscreen_showkeyboard;
// sets the mode; only used by the Quake engine for resetting to mode 0 (the
// base mode) on memory allocation failures
-qbool VID_InitMode(viddef_mode_t *mode);
+qbool VID_InitMode(const viddef_mode_t *mode);
// allocates and opens an appropriate OpenGL context (and its window)
void VID_ShowKeyboard(qbool show);
qbool VID_ShowingKeyboard(void);
-void VID_SetMouse(qbool relative, qbool hidecursor);
void VID_Finish (void);
void VID_Restart_f(struct cmd_state_s *cmd);