BUFFGLBL.CPP 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. ** Command & Conquer Red Alert(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /***************************************************************************
  19. ** 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 **
  20. ***************************************************************************
  21. * *
  22. * Project Name : Westwood 32 bit Library *
  23. * *
  24. * File Name : BUFFGLBL.CPP *
  25. * *
  26. * Programmer : Phil W. Gorrow *
  27. * *
  28. * Start Date : January 10, 1995 *
  29. * *
  30. * Last Update : January 10, 1995 [PWG] *
  31. * *
  32. * This module holds the global fixup tables for the MCGA buffer class. *
  33. *-------------------------------------------------------------------------*
  34. * Functions: *
  35. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  36. #include "gbuffer.h"
  37. /*=========================================================================*/
  38. /* The following PRIVATE functions are in this file: */
  39. /*=========================================================================*/
  40. /*= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =*/
  41. /*=========================================================================*/
  42. /* Globals required by GraphicBufferClass for function pointers. These */
  43. /* pointers will be set to the proper function when set mode is called. */
  44. /*=========================================================================*/
  45. BOOL (*GVPC_Blit_to_VVPC_Func)(void *, void *, int, int, int, int, int, int, BOOL);
  46. BOOL (*GVPC_Scale_To_VVPC)( void *, void *, int, int, int, int, int, int, int, int, BOOL, char *);
  47. #ifdef not_any_more_it_doesnt
  48. /*=========================================================================*/
  49. /* Globals required by VideoBufferClass for function pointers. These */
  50. /* pointers will be set to the proper function when set mode is called. */
  51. /*=========================================================================*/
  52. void (*VVPC_Clear_Func)(void *, unsigned char);
  53. long (*VVPC_To_Buffer_Func)(void *,int x, int y, int w, int h, void *buff, long size);
  54. void (*VVPC_Put_Pixel_Func)(void *,int x, int y, unsigned char color);
  55. int (*VVPC_Get_Pixel_Func)(void *, int x, int y);
  56. long (*VVPC_Buffer_To_Page)(int x, int y, int w, int h, void *Buffer, void *view);
  57. BOOL (*VVPC_Blit_to_GVPC_Func)(void *, void *, int, int, int, int, int, int, BOOL);
  58. BOOL (*VVPC_Blit_to_VVPC_Func)(void *, void *, int, int, int, int, int, int, BOOL);
  59. BOOL (*VVPC_Scale_To_GVPC)( void *, void *, int, int, int, int, int, int, int, int, BOOL, char *);
  60. BOOL (*VVPC_Scale_To_VVPC)( void *, void *, int, int, int, int, int, int, int, int, BOOL, char *);
  61. LONG (*VVPC_Print_Func)( void *, const char *, int, int, int, int);
  62. void (*VVPC_Draw_Stamp)(void *, void *, int, int, int, void *);
  63. long (*VVPC_Size_Of_Region)(void *, int, int);
  64. #endif //not_any_more_it_doesnt
  65. /*=========================================================================*/
  66. /* We need to keep a pointer to the logic page hanging around somewhere */
  67. /*=========================================================================*/
  68. GraphicViewPortClass *LogicPage;
  69. BOOL IconCacheAllowed = TRUE;
  70. /*
  71. ** Pointer to a function we will call if we detect loss of focus
  72. */
  73. void (*Gbuffer_Focus_Loss_Function)(void) = NULL;