1 /* 2 d_vars.c 3 4 global refresh variables 5 6 Copyright (C) 1996-1997 Id Software, Inc. 7 8 This program is free software; you can redistribute it and/or 9 modify it under the terms of the GNU General Public License 10 as published by the Free Software Foundation; either version 2 11 of the License, or (at your option) any later version. 12 13 This program is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 16 17 See the GNU General Public License for more details. 18 19 You should have received a copy of the GNU General Public License 20 along with this program; if not, write to: 21 22 Free Software Foundation, Inc. 23 59 Temple Place - Suite 330 24 Boston, MA 02111-1307, USA 25 26 */ 27 #ifdef HAVE_CONFIG_H 28 # include "config.h" 29 #endif 30 31 #define NH_DEFINE 32 #include "namehack.h" 33 34 #include "QF/qtypes.h" 35 36 // all global and static refresh variables are collected in a contiguous block 37 // to avoid cache conflicts. 38 39 // global refresh variables ----------------------------- 40 41 // FIXME: make into one big structure, like cl or sv 42 // FIXME: do separately for refresh engine and driver 43 44 float sw32_d_sdivzstepu, sw32_d_tdivzstepu, sw32_d_zistepu; 45 float sw32_d_sdivzstepv, sw32_d_tdivzstepv, sw32_d_zistepv; 46 float sw32_d_sdivzorigin, sw32_d_tdivzorigin, sw32_d_ziorigin; 47 48 fixed16_t sw32_sadjust, sw32_tadjust, sw32_bbextents, sw32_bbextentt; 49 50 byte *sw32_cacheblock; 51 int sw32_cachewidth; 52 byte *sw32_d_viewbuffer; 53 short *sw32_d_pzbuffer; 54 int sw32_d_zrowbytes; 55 int sw32_d_zwidth; 56