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