2001-02-19 21:15:25 +00:00
|
|
|
/*
|
|
|
|
d_vars.c
|
|
|
|
|
2001-05-18 20:19:20 +00:00
|
|
|
global refresh variables
|
2001-02-19 21:15:25 +00:00
|
|
|
|
|
|
|
Copyright (C) 1996-1997 Id Software, Inc.
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to:
|
|
|
|
|
|
|
|
Free Software Foundation, Inc.
|
|
|
|
59 Temple Place - Suite 330
|
|
|
|
Boston, MA 02111-1307, USA
|
|
|
|
|
|
|
|
*/
|
2001-09-28 06:26:31 +00:00
|
|
|
static const char rcsid[] =
|
|
|
|
"$Id$";
|
2001-02-19 21:15:25 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include "config.h"
|
|
|
|
#endif
|
|
|
|
|
2001-05-24 19:22:35 +00:00
|
|
|
#include "QF/qtypes.h"
|
2001-02-19 21:15:25 +00:00
|
|
|
|
2001-06-11 20:59:48 +00:00
|
|
|
#ifdef PIC
|
2001-08-25 02:47:11 +00:00
|
|
|
# undef USE_INTEL_ASM //XXX asm pic hack
|
2001-06-11 20:59:48 +00:00
|
|
|
#endif
|
2001-05-25 14:57:31 +00:00
|
|
|
|
|
|
|
#ifndef USE_INTEL_ASM
|
|
|
|
|
2001-02-19 21:15:25 +00:00
|
|
|
// all global and static refresh variables are collected in a contiguous block
|
|
|
|
// to avoid cache conflicts.
|
|
|
|
|
2001-05-18 20:19:20 +00:00
|
|
|
// global refresh variables -----------------------------
|
2001-02-19 21:15:25 +00:00
|
|
|
|
|
|
|
// FIXME: make into one big structure, like cl or sv
|
|
|
|
// FIXME: do separately for refresh engine and driver
|
|
|
|
|
2001-02-26 06:48:02 +00:00
|
|
|
float d_sdivzstepu, d_tdivzstepu, d_zistepu;
|
|
|
|
float d_sdivzstepv, d_tdivzstepv, d_zistepv;
|
|
|
|
float d_sdivzorigin, d_tdivzorigin, d_ziorigin;
|
2001-02-19 21:15:25 +00:00
|
|
|
|
2001-02-26 06:48:02 +00:00
|
|
|
fixed16_t sadjust, tadjust, bbextents, bbextentt;
|
2001-02-19 21:15:25 +00:00
|
|
|
|
2001-08-25 02:47:11 +00:00
|
|
|
byte *cacheblock;
|
2001-02-26 06:48:02 +00:00
|
|
|
int cachewidth;
|
2001-08-25 02:47:11 +00:00
|
|
|
byte *d_viewbuffer;
|
2001-02-26 06:48:02 +00:00
|
|
|
short *d_pzbuffer;
|
|
|
|
unsigned int d_zrowbytes;
|
|
|
|
unsigned int d_zwidth;
|
2001-02-19 21:15:25 +00:00
|
|
|
|
2001-05-18 20:19:20 +00:00
|
|
|
#endif // !USE_INTEL_ASM
|