GBUFFER.INC 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ;
  2. ; Copyright 2020 Electronic Arts Inc.
  3. ;
  4. ; TiberianDawn.DLL and RedAlert.dll and corresponding source code is free
  5. ; software: you can redistribute it and/or modify it under the terms of
  6. ; the GNU General Public License as published by the Free Software Foundation,
  7. ; either version 3 of the License, or (at your option) any later version.
  8. ; TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed
  9. ; in the hope that it will be useful, but with permitted additional restrictions
  10. ; under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT
  11. ; distributed with this program. You should have received a copy of the
  12. ; GNU General Public License along with permitted additional restrictions
  13. ; with this program. If not, see [https://github.com/electronicarts/CnC_Remastered_Collection]>.
  14. ;***************************************************************************
  15. ;** C O N F I D E N T I A L --- W E S T W O O D A S S O C I A T E S **
  16. ;***************************************************************************
  17. ;* *
  18. ;* Project Name : Westwood 32 Bit Library *
  19. ;* *
  20. ;* File Name : GBUFFER.INC *
  21. ;* *
  22. ;* Programmer : Phil W. Gorrow *
  23. ;* *
  24. ;* Start Date : May 26, 1994 *
  25. ;* *
  26. ;* Last Update : May 26, 1994 [PWG] *
  27. ;* *
  28. ;* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
  29. ;******************************************************************************
  30. ; Much testing was done to determine that only when there are 14 or more bytes
  31. ; being copied does it speed the time it takes to do copies in this algorithm.
  32. ; For this reason and because 1 and 2 byte copies crash, is the special case
  33. ; used. SKB 4/21/94. Tested on 486 66mhz. Copied by PWG 6/7/04.
  34. OPTIMAL_BYTE_COPY equ 14
  35. GraphicViewPort struct
  36. GVPOffset DD ? ; offset to virtual viewport
  37. GVPWidth DD ? ; width of virtual viewport
  38. GVPHeight DD ? ; height of virtual viewport
  39. GVPXAdd DD ? ; x mod to get to next line
  40. GVPXPos DD ? ; x pos relative to Graphic Buff
  41. GVPYPos DD ? ; y pos relative to Graphic Buff
  42. GVPPitch dd ? ; modulo of graphic view port
  43. GVPBuffPtr DD ? ; ptr to associated Graphic Buff
  44. GraphicViewPort ends