00001 00006 /* 00007 All original material Copyright (C) 2002-2010 UFO: Alien Invasion. 00008 00009 Original file from Quake 2 v3.21: quake2-2.31/client/vid.h 00010 Copyright (C) 1997-2001 Id Software, Inc. 00011 00012 This program is free software; you can redistribute it and/or 00013 modify it under the terms of the GNU General Public License 00014 as published by the Free Software Foundation; either version 2 00015 of the License, or (at your option) any later version. 00016 00017 This program is distributed in the hope that it will be useful, 00018 but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00020 00021 See the GNU General Public License for more details. 00022 00023 You should have received a copy of the GNU General Public License 00024 along with this program; if not, write to the Free Software 00025 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00026 00027 */ 00028 00029 #ifndef CLIENT_VID_H 00030 #define CLIENT_VID_H 00031 00032 #define VID_NORM_WIDTH 1024 00033 #define VID_NORM_HEIGHT 768 00034 00049 typedef struct { 00050 unsigned width; 00051 unsigned height; 00052 int mode; 00053 qboolean fullscreen; 00054 qboolean strech; 00056 float rx; 00057 float ry; 00059 int virtualWidth, virtualHeight; 00061 int x, y, viewWidth, viewHeight; 00065 } viddef_t; 00066 00067 typedef struct vidmode_s { 00068 int width, height; 00069 int mode; 00070 } vidmode_t; 00071 00072 extern memPool_t *vid_genericPool; 00073 extern memPool_t *vid_imagePool; 00074 extern memPool_t *vid_lightPool; 00075 extern memPool_t *vid_modelPool; 00076 00077 extern viddef_t viddef; /* global video state */ 00078 00079 extern cvar_t *vid_fullscreen; 00080 extern cvar_t *vid_strech; 00081 extern cvar_t *vid_mode; 00082 extern cvar_t *vid_gamma; 00083 extern cvar_t *vid_ignoregamma; 00084 extern cvar_t *vid_grabmouse; 00085 00086 /* Video module initialisation etc */ 00087 void VID_Init(void); 00088 int VID_GetModeNums(void); 00089 void VID_Restart_f(void); 00090 qboolean VID_GetModeInfo(int modeIndex, vidmode_t *modeInfo); 00091 00092 #endif /* CLIENT_VID_H */