home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 19 / CD_ASCQ_19_010295.iso / dos / prg / midas / vgatext.h < prev    next >
C/C++ Source or Header  |  1994-08-06  |  4KB  |  107 lines

  1. /*      VGATEXT.H
  2.  *
  3.  * VGA text output routines for MIDAS Module Player
  4.  *
  5.  * Copyright 1994 Petteri Kangaslampi and Jarno Paananen
  6.  *
  7.  * This file is part of the MIDAS Sound System, and may only be
  8.  * used, modified and distributed under the terms of the MIDAS
  9.  * Sound System license, LICENSE.TXT. By continuing to use,
  10.  * modify or distribute this file you indicate that you have
  11.  * read the license and understand and accept it fully.
  12. */
  13.  
  14.  
  15. #ifndef __VGATEXT_H
  16. #define __VGATEXT_H
  17.  
  18.  
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22.  
  23. /****************************************************************************\
  24. *
  25. * Function:     void vgaWriteText(int x, int y, char *txt);
  26. *
  27. * Description:  Writes text on the screen
  28. *
  29. * Input:        int x                   X coordinate of string (up-left
  30. *                                       corner is (1,1))
  31. *               int y                   Y coordinate
  32. *               char *txt               pointer to null-terminated text
  33. *                                       string, which may contain also the
  34. *                                       following special characters:
  35. *                                           \xFF - next char is attribute
  36. *                                           \x7F - next char is RLE count for
  37. *                                               the character following it
  38. *
  39. \****************************************************************************/
  40.  
  41. void CALLING vgaWriteText(int x, int y, char *txt);
  42.  
  43.  
  44. /****************************************************************************\
  45. *
  46. * Function:     void vgaWriteStr(int x, int y, char *str, char attr);
  47. *
  48. * Description:  Writes a string on the screen
  49. *
  50. * Input:        int x                   X coordinate of the string
  51. *               int y                   Y coordinate
  52. *               char *str               pointer to a ASCIIZ string
  53. *               char attr               attribute for the string
  54. *               int txtlen              number of characters to be printed on
  55. *                                       screen - padded with spaces
  56. *
  57. \****************************************************************************/
  58.  
  59. void CALLING vgaWriteStr(int x, int y, char *str, char attr, int txtlen);
  60.  
  61.  
  62.  
  63. /****************************************************************************\
  64. *
  65. * Function:     void vgaWriteByte(int x, int y, uchar byte, char attr);
  66. *
  67. * Description:  Writes a hex byte on the screen
  68. *
  69. * Input:        int x                   X coordinate
  70. *               int y                   Y coordinate
  71. *               uchar byte              byte to be written
  72. *               char attr               attribute for the byte
  73. *
  74. \****************************************************************************/
  75.  
  76. void CALLING vgaWriteByte(int x, int y, uchar byte, char attr);
  77.  
  78.  
  79.  
  80. /****************************************************************************\
  81. *
  82. * Function:     void vgaDrawMeter(int x, int y, int val, int max, char mchr,
  83. *               char hlattr, char nattr);
  84. *
  85. * Description:  Draws a meter on the screen
  86. *
  87. * Input:        int x                   X coordinate
  88. *               int y                   Y coordinate
  89. *               int val                 meter value
  90. *               int max                 meter max. value (length)
  91. *               char mchr               character used for meter
  92. *               char hlattr             attribute for highlighted characters
  93. *               char nattr              attribute for normal characters
  94. *
  95. \****************************************************************************/
  96.  
  97. void CALLING vgaDrawMeter(int x, int y, int val, int max, char mchr,
  98.     char hlattr, char nattr);
  99.  
  100.  
  101. #ifdef __cplusplus
  102. }
  103. #endif
  104.  
  105.  
  106. #endif
  107.