CAPTOKEN.H 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. #ifndef VQMCAPTOKEN_H
  19. #define VQMCAPTOKEN_H
  20. /****************************************************************************
  21. *
  22. * 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
  23. *
  24. *----------------------------------------------------------------------------
  25. *
  26. * FILE
  27. * captoken.h
  28. *
  29. * DESCRIPTION
  30. * Text caption script definitions.
  31. *
  32. * PROGRAMMER
  33. * Denzil E. Long, Jr.
  34. *
  35. * DATE
  36. * July 26, 1995
  37. *
  38. ****************************************************************************/
  39. /* CaptionText: This structure describes a line of text to be displayed
  40. * with the video/audio.
  41. *
  42. * Size - Size of caption in bytes.
  43. * OnFrame - Frame number to display caption.
  44. * OffFrame - Frame number to clear caption.
  45. * Flags - Display modifiers.
  46. * CPF - Characters to draw per frame.
  47. * Xpos - X pixel position to display caption.
  48. * Ypos - Y pixel position to display caption.
  49. * BgPen - Background pen to use.
  50. * FgPen - Foreground pen to use.
  51. * Text - Text string to display. (WORD aligned)
  52. */
  53. typedef struct _CaptionText {
  54. unsigned short Size;
  55. unsigned short OnFrame;
  56. unsigned short OffFrame;
  57. unsigned char Flags;
  58. char CPF;
  59. unsigned short Xpos;
  60. unsigned short Ypos;
  61. char BgPen;
  62. char FgPen;
  63. char Text[];
  64. } CaptionText;
  65. /* CaptionText flag definitions. */
  66. #define CTF_JUSTIFY (3<<0) /* Justification field. */
  67. #define CTF_ABS (0<<0) /* Use absolute X,Y positions. */
  68. #define CTF_CENTER (1<<0) /* Justify on Center */
  69. #define CTF_LEFT (2<<0) /* Justify on left */
  70. #define CTF_RIGHT (3<<0) /* Justify on right */
  71. #define CTF_FLASH (1<<4) /* Flash text. */
  72. /* Function prototypes. */
  73. long BuildCaptions(char *name, char *buffer);
  74. #endif /* VQMCAPTOKEN_H */