BUFFGLBL.CPP 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 : BUFFGLBL.CPP *
  21. * *
  22. * Programmer : Phil W. Gorrow *
  23. * *
  24. * Start Date : January 10, 1995 *
  25. * *
  26. * Last Update : January 10, 1995 [PWG] *
  27. * *
  28. * This module holds the global fixup tables for the MCGA buffer class. *
  29. *-------------------------------------------------------------------------*
  30. * Functions: *
  31. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  32. #include "gbuffer.h"
  33. /*=========================================================================*/
  34. /* The following PRIVATE functions are in this file: */
  35. /*=========================================================================*/
  36. /*= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =*/
  37. /*=========================================================================*/
  38. /* Globals required by GraphicBufferClass for function pointers. These */
  39. /* pointers will be set to the proper function when set mode is called. */
  40. /*=========================================================================*/
  41. BOOL (*GVPC_Blit_to_VVPC_Func)(void *, void *, int, int, int, int, int, int, BOOL);
  42. BOOL (*GVPC_Scale_To_VVPC)( void *, void *, int, int, int, int, int, int, int, int, BOOL, char *);
  43. #ifdef not_any_more_it_doesnt
  44. /*=========================================================================*/
  45. /* Globals required by VideoBufferClass for function pointers. These */
  46. /* pointers will be set to the proper function when set mode is called. */
  47. /*=========================================================================*/
  48. void (*VVPC_Clear_Func)(void *, unsigned char);
  49. long (*VVPC_To_Buffer_Func)(void *,int x, int y, int w, int h, void *buff, long size);
  50. void (*VVPC_Put_Pixel_Func)(void *,int x, int y, unsigned char color);
  51. int (*VVPC_Get_Pixel_Func)(void *, int x, int y);
  52. long (*VVPC_Buffer_To_Page)(int x, int y, int w, int h, void *Buffer, void *view);
  53. BOOL (*VVPC_Blit_to_GVPC_Func)(void *, void *, int, int, int, int, int, int, BOOL);
  54. BOOL (*VVPC_Blit_to_VVPC_Func)(void *, void *, int, int, int, int, int, int, BOOL);
  55. BOOL (*VVPC_Scale_To_GVPC)( void *, void *, int, int, int, int, int, int, int, int, BOOL, char *);
  56. BOOL (*VVPC_Scale_To_VVPC)( void *, void *, int, int, int, int, int, int, int, int, BOOL, char *);
  57. LONG (*VVPC_Print_Func)( void *, const char *, int, int, int, int);
  58. void (*VVPC_Draw_Stamp)(void *, void *, int, int, int, void *);
  59. long (*VVPC_Size_Of_Region)(void *, int, int);
  60. #endif //not_any_more_it_doesnt
  61. /*=========================================================================*/
  62. /* We need to keep a pointer to the logic page hanging around somewhere */
  63. /*=========================================================================*/
  64. GraphicViewPortClass *LogicPage;
  65. BOOL IconCacheAllowed = TRUE;
  66. /*
  67. ** Pointer to a function we will call if we detect loss of focus
  68. */
  69. void (*Gbuffer_Focus_Loss_Function)(void) = NULL;