You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.2 KiB
61 lines
1.2 KiB
#include "quakedef.h"
|
|
|
|
viddef_t vid; // global video state
|
|
modestate_t modestate = MS_UNINIT;
|
|
|
|
#if !defined(USE_LIBSDL) && !defined(USE_OPENGL)
|
|
|
|
int gl_stencilbits = 0;
|
|
qboolean gl_texture_NPOT = true; // No need to resample textures to power-of-two sizes
|
|
qboolean gl_glsl_gamma_able = false;
|
|
qboolean gl_mtexable = false;
|
|
float gl_max_anisotropy = 1;
|
|
qboolean gl_texture_env_combine = false;
|
|
qboolean gl_texture_env_add = false;
|
|
|
|
cvar_t vid_gamma = { "gamma", "1", CVAR_ARCHIVE };
|
|
cvar_t vid_contrast = { "contrast", "1", CVAR_ARCHIVE };
|
|
|
|
void VID_Init(void)
|
|
{
|
|
Cvar_RegisterVariable(&vid_gamma);
|
|
Cvar_RegisterVariable(&vid_contrast);
|
|
|
|
memset(&vid, 0, sizeof(viddef_t));
|
|
vid.width = 320;
|
|
vid.height = 200;
|
|
vid.conwidth = 320;
|
|
vid.conheight = 200;
|
|
vid.maxwarpwidth = 320;
|
|
vid.maxwarpheight = 200;
|
|
|
|
vid.colormap = host_colormap;
|
|
vid.fullbright = 256 - LittleLong(*((int *)vid.colormap + 2048));
|
|
|
|
vid.recalc_refdef = 1;
|
|
}
|
|
|
|
void VID_Shutdown(void)
|
|
{
|
|
}
|
|
|
|
void VID_Toggle(void)
|
|
{
|
|
}
|
|
|
|
void VID_Lock(void)
|
|
{
|
|
}
|
|
|
|
void GL_BeginRendering(int *x, int *y, int *width, int *height)
|
|
{
|
|
*x = *y = 0;
|
|
*width = vid.width;
|
|
*height = vid.height;
|
|
}
|
|
|
|
void GL_EndRendering(void)
|
|
{
|
|
}
|
|
|
|
#endif // !USE_LIBSDL && !USE_OPENGL
|