MCGAPRIM.INC 4.5 KB

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