]> de.git.xonotic.org Git - xonotic/darkplaces.git/blob - vid_shared.c
cleaned up nearly all of the externs in .c files (moved to appropriate .h files)
[xonotic/darkplaces.git] / vid_shared.c
1
2 #include "quakedef.h"
3
4 // LordHavoc: these are only set in wgl
5 qboolean isG200 = false; // LordHavoc: the Matrox G200 can't do per pixel alpha, and it uses a D3D driver for GL... ugh...
6 qboolean isRagePro = false; // LordHavoc: the ATI Rage Pro has limitations with per pixel alpha (the color scaler does not apply to per pixel alpha images...), although not as bad as a G200.
7
8 // LordHavoc: compiled vertex array support
9 qboolean gl_supportslockarrays = false;
10 // LordHavoc: ARB multitexture support
11 qboolean gl_mtexable = false;
12 int gl_mtex_enum = 0;
13
14 cvar_t vid_mode = {"vid_mode", "0", false};
15 cvar_t vid_mouse = {"vid_mouse", "1", true};
16 cvar_t vid_fullscreen = {"vid_fullscreen", "1"};
17
18 void (GLAPIENTRY *qglMTexCoord2f) (GLenum, GLfloat, GLfloat);
19 void (GLAPIENTRY *qglSelectTexture) (GLenum);
20 void (GLAPIENTRY *qglLockArraysEXT) (GLint first, GLint count);
21 void (GLAPIENTRY *qglUnlockArraysEXT) (void);
22
23 void VID_InitCvars(void)
24 {
25         Cvar_RegisterVariable(&vid_mode);
26         Cvar_RegisterVariable(&vid_mouse);
27         Cvar_RegisterVariable(&vid_fullscreen);
28 }