mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-16 14:10:11 +01:00
46 lines
904 B
C
46 lines
904 B
C
#pragma once
|
|
#ifndef VID_COMMON
|
|
#define VID_COMMON
|
|
|
|
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
|
|
qboolean software;
|
|
|
|
|
|
} glwstate_t;
|
|
|
|
extern glwstate_t glw_state;
|
|
|
|
#define VID_MIN_HEIGHT 200
|
|
#define VID_MIN_WIDTH 320
|
|
|
|
extern convar_t *vid_fullscreen;
|
|
extern convar_t *vid_displayfrequency;
|
|
extern convar_t *vid_highdpi;
|
|
extern convar_t *vid_rotate;
|
|
extern convar_t *vid_scale;
|
|
|
|
extern convar_t *gl_wgl_msaa_samples;
|
|
void R_SaveVideoMode( int w, int h, int render_w, int render_h );
|
|
void VID_CheckChanges( void );
|
|
const char *VID_GetModeString( int vid_mode );
|
|
void VID_StartupGamma( void );
|
|
|
|
#endif // VID_COMMON
|