2018-04-17 02:44:17 +02:00
|
|
|
#pragma once
|
|
|
|
#ifndef VID_COMMON
|
|
|
|
#define VID_COMMON
|
|
|
|
|
2019-02-23 19:49:46 +01:00
|
|
|
typedef struct vidmode_s
|
|
|
|
{
|
|
|
|
const char *desc;
|
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
} vidmode_t;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
void* context; // handle to GL rendering context
|
|
|
|
int safe;
|
|
|
|
|
|
|
|
int desktopBitsPixel;
|
|
|
|
int desktopHeight;
|
|
|
|
|
|
|
|
qboolean initialized; // OpenGL subsystem started
|
|
|
|
qboolean extended; // extended context allows to GL_Debug
|
2019-03-24 21:24:31 +01:00
|
|
|
qboolean software;
|
2019-02-23 19:49:46 +01:00
|
|
|
|
|
|
|
|
2019-03-16 03:15:32 +01:00
|
|
|
} glwstate_t;
|
|
|
|
|
|
|
|
extern glwstate_t glw_state;
|
2019-02-23 19:49:46 +01:00
|
|
|
|
|
|
|
#define VID_MIN_HEIGHT 200
|
|
|
|
#define VID_MIN_WIDTH 320
|
|
|
|
|
2023-05-19 04:41:43 +02:00
|
|
|
extern convar_t vid_fullscreen;
|
|
|
|
extern convar_t vid_highdpi;
|
|
|
|
extern convar_t window_xpos;
|
|
|
|
extern convar_t window_ypos;
|
2023-05-19 04:55:06 +02:00
|
|
|
extern convar_t gl_msaa_samples;
|
2019-10-30 19:36:07 +01:00
|
|
|
|
|
|
|
void R_SaveVideoMode( int w, int h, int render_w, int render_h );
|
2023-05-19 04:41:43 +02:00
|
|
|
void VID_SetDisplayTransform( int *render_w, int *render_h );
|
2019-02-23 19:49:46 +01:00
|
|
|
void VID_CheckChanges( void );
|
|
|
|
const char *VID_GetModeString( int vid_mode );
|
|
|
|
void VID_StartupGamma( void );
|
2018-04-17 02:44:17 +02:00
|
|
|
|
|
|
|
#endif // VID_COMMON
|