d_vars.c 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. Copyright (C) 1996-1997 Id Software, Inc.
  3. This program is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU General Public License
  5. as published by the Free Software Foundation; either version 2
  6. of the License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. See the GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  14. */
  15. // r_vars.c: global refresh variables
  16. #if !id386
  17. #include "quakedef.h"
  18. // all global and static refresh variables are collected in a contiguous block
  19. // to avoid cache conflicts.
  20. //-------------------------------------------------------
  21. // global refresh variables
  22. //-------------------------------------------------------
  23. // FIXME: make into one big structure, like cl or sv
  24. // FIXME: do separately for refresh engine and driver
  25. float d_sdivzstepu, d_tdivzstepu, d_zistepu;
  26. float d_sdivzstepv, d_tdivzstepv, d_zistepv;
  27. float d_sdivzorigin, d_tdivzorigin, d_ziorigin;
  28. fixed16_t sadjust, tadjust, bbextents, bbextentt;
  29. pixel_t *cacheblock;
  30. int cachewidth;
  31. pixel_t *d_viewbuffer;
  32. short *d_pzbuffer;
  33. unsigned int d_zrowbytes;
  34. unsigned int d_zwidth;
  35. #endif // !id386