MCGAPRIM.INC (4632B)
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 S T U D I O S ** 18 ;*************************************************************************** 19 ;* * 20 ;* Project Name : Westwood 32 bit Library * 21 ;* * 22 ;* File Name : MCGAPRIM.INC * 23 ;* * 24 ;* Programmer : Phil W. Gorrow * 25 ;* * 26 ;* Start Date : January 16, 1995 * 27 ;* * 28 ;* Last Update : January 16, 1995 [PWG] * 29 ;* * 30 ;*-------------------------------------------------------------------------* 31 ;* Functions: * 32 ;* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * 33 34 ; Externs from REGIONSZ.ASM module of the MCGAPRIM library 35 GLOBAL MCGA_Size_Of_Region :NEAR 36 37 ; Externs from GETPIX.ASM module of the MCGAPRIM library 38 GLOBAL MCGA_Get_Pixel :NEAR 39 40 ; Externs from VGETPIX.ASM module of the SVGA/MCGAPRIM library 41 GLOBAL Vesa_Get_Pixel :NEAR 42 43 ; Externs from PUTPIX.ASM module of the MCGAPRIM library 44 GLOBAL MCGA_Put_Pixel :NEAR 45 46 ; Externs from VPUTTPIX.ASM module of the SVGA/MCGAPRIM library 47 GLOBAL Vesa_Put_Pixel :NEAR 48 49 ; Externs from CLEAR.ASM module of the MCGAPRIM library 50 GLOBAL MCGA_Clear :NEAR 51 52 ; Externs from VCLEAR.ASM module of the MCGA/SVGAPRIM library 53 GLOBAL Vesa_Clear :NEAR 54 ; Externs from BITBLIT.ASM module of the MCGAPRIM library 55 GLOBAL Linear_Blit_To_Linear :NEAR 56 57 ; Externs from VBITBLIT.ASM module of the MCGA/SVGAPRIM library 58 GLOBAL Linear_Blit_To_Vesa :NEAR 59 GLOBAL Vesa_Blit_To_Linear :NEAR 60 GLOBAL Vesa_Blit_To_Vesa :NEAR 61 62 ; Externs from TOBUFF.ASM module of the MCGAPRIM library 63 GLOBAL MCGA_To_Buffer :NEAR 64 65 ; Externs from VTOBUFF.ASM module of the SVGA/MCGAPRIM library 66 GLOBAL Vesa_To_Buffer :NEAR 67 68 ; Externs from TOPAGE.ASM module of the MCGAPRIM library 69 GLOBAL MCGA_Buffer_To_Page :NEAR 70 71 ; Externs from VTOPAGE.ASM module of the SVGA/MCGAPRIM library 72 GLOBAL Vesa_Buffer_To_Page :NEAR 73 74 ; Externs from SCALE.ASM module of the MCGAPRIM library 75 GLOBAL Linear_Scale_To_Linear :NEAR 76 77 ; Externs from VSCALE.ASM module of the SVGA/MCGAPRIM library 78 GLOBAL Linear_Scale_To_Vesa :NEAR 79 GLOBAL Vesa_Scale_To_Linear :NEAR 80 GLOBAL Vesa_Scale_To_Vesa :NEAR 81 82 ; Externs from TXTPRNT.ASM module of the MCGAPRIM library 83 GLOBAL MCGA_Print :NEAR 84 85 ; Externs from VTXTPRNT.ASM module of the SVGA/MCGAPRIM library 86 GLOBAL Vesa_Print :NEAR 87 88 ;*-------------------------------------------------------------------------* 89 ;* Define MCGA only assembly GLOBALS * 90 ;*-------------------------------------------------------------------------* 91 92 ; Externs from DRAWLINE.ASM module of the MCGAPRIM library 93 GLOBAL MCGA_Draw_Line :NEAR 94 95 ; Externs from FILLQUAD.ASM module of the MCGAPRIM library 96 GLOBAL MCGA_Fill_Quad :NEAR 97 98 ; Externs from FILLRECT.ASM module of the MCGAPRIM library 99 GLOBAL MCGA_Fill_Rect :NEAR 100 101 ; Externs from REMAP.ASM module of the MCGAPRIM library 102 GLOBAL MCGA_Remap :NEAR 103 104 ; Externs from STAMP.ASM module of the MCGAPRIM library 105 GLOBAL MCGA_Draw_Stamp :NEAR 106 107 GLOBAL get_clip : NEAR 108 109 struc RECTANGLE 110 x0 dd ? 111 y0 dd ? 112 x1 dd ? 113 y1 dd ? 114 ends RECTANGLE 115 116 117 118 119