DRAWBUFF.INC 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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 : DRAWBUFF.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 DRAWBUFF library
  32. GLOBAL C Buffer_Size_Of_Region :NEAR
  33. ; Externs from GETPIX.ASM module of the DRAWBUFF library
  34. GLOBAL C Buffer_Get_Pixel :NEAR
  35. ; Externs from PUTPIX.ASM module of the DRAWBUFF library
  36. GLOBAL C Buffer_Put_Pixel :NEAR
  37. ; Externs from CLEAR.ASM module of the DRAWBUFF library
  38. GLOBAL C Buffer_Clear :NEAR
  39. ; Externs from BITBLIT.ASM module of the DRAWBUFF library
  40. GLOBAL C Linear_Blit_To_Linear :NEAR
  41. ; Externs from TOBUFF.ASM module of the DRAWBUFF library
  42. GLOBAL C Buffer_To_Buffer :NEAR
  43. ; Externs from TOPAGE.ASM module of the DRAWBUFF library
  44. GLOBAL C Buffer_To_Page :NEAR
  45. ; Externs from SCALE.ASM module of the DRAWBUFF library
  46. GLOBAL C Linear_Scale_To_Linear :NEAR
  47. ; Externs from TXTPRNT.ASM module of the DRAWBUFF library
  48. GLOBAL C Buffer_Print :NEAR
  49. ;*-------------------------------------------------------------------------*
  50. ;* Define Buffer only assembly GLOBALS *
  51. ;*-------------------------------------------------------------------------*
  52. ; Externs from DRAWLINE.ASM module of the DRAWBUFF library
  53. GLOBAL C Buffer_Draw_Line:NEAR
  54. ; Externs from FILLQUAD.ASM module of the DRAWBUFF library
  55. GLOBAL C Buffer_Fill_Quad :NEAR
  56. ; Externs from FILLRECT.ASM module of the DRAWBUFF library
  57. GLOBAL C Buffer_Fill_Rect :NEAR
  58. ; Externs from REMAP.ASM module of the DRAWBUFF library
  59. GLOBAL C Buffer_Remap :NEAR
  60. ; Externs from STAMP.ASM module of the DRAWBUFF library
  61. GLOBAL C Buffer_Draw_Stamp :NEAR
  62. GLOBAL C get_clip : NEAR
  63. struc RECTANGLE
  64. x0 dd ?
  65. y0 dd ?
  66. x1 dd ?
  67. y1 dd ?
  68. ends RECTANGLE