home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 19 / CD_ASCQ_19_010295.iso / dos / prg / midas / vgatext.inc < prev    next >
Text File  |  1994-08-06  |  3KB  |  90 lines

  1. ;*    VGATEXT.INC
  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. ;*
  16. ;* Function:     void vgaWriteText(int x, int y, char *txt);
  17. ;*
  18. ;* Description:  Writes text on the screen
  19. ;*
  20. ;* Input:     int x             X coordinate of string (up-left
  21. ;*                     corner is (1,1))
  22. ;*         int y             Y coordinate
  23. ;*         char *txt         pointer to null-terminated text
  24. ;*                     string, which may contain also the
  25. ;*                     following special characters:
  26. ;*                         \xFF - next char is attribute
  27. ;*                         \x7F - next char is RLE count for
  28. ;*                         the character following it
  29. ;*
  30. ;\***************************************************************************/
  31.  
  32. GLOBAL    LANG vgaWriteText : FAR
  33.  
  34.  
  35.  
  36.  
  37. ;/***************************************************************************\
  38. ;*
  39. ;* Function:     void vgaWriteStr(int x, int y, char *str, char attr);
  40. ;*
  41. ;* Description:  Writes a string on the screen
  42. ;*
  43. ;* Input:     int x             X coordinate of the string
  44. ;*         int y             Y coordinate
  45. ;*         char *str         pointer to a ASCIIZ string
  46. ;*         char attr         attribute for the string
  47. ;*         int txtlen         number of characters to be printed on
  48. ;*                     screen - padded with spaces
  49. ;*
  50. ;\***************************************************************************/
  51.  
  52. GLOBAL    LANG vgaWriteStr : FAR
  53.  
  54.  
  55.  
  56. ;/***************************************************************************\
  57. ;*
  58. ;* Function:     void vgaWriteByte(int x, int y, uchar byte, char attr);
  59. ;*
  60. ;* Description:  Writes a hex byte on the screen
  61. ;*
  62. ;* Input:     int x             X coordinate
  63. ;*         int y             Y coordinate
  64. ;*         uchar byte         byte to be written
  65. ;*         char attr         attribute for the byte
  66. ;*
  67. ;\***************************************************************************/
  68.  
  69. GLOBAL    LANG vgaWriteByte : FAR
  70.  
  71.  
  72. ;/***************************************************************************\
  73. ;*
  74. ;* Function:     void vgaDrawMeter(int x, int y, int val, int max, char mchr,
  75. ;*         char hlattr, char nattr);
  76. ;*
  77. ;* Description:  Draws a meter on the screen
  78. ;*
  79. ;* Input:     int x             X coordinate
  80. ;*         int y             Y coordinate
  81. ;*         int val         meter value
  82. ;*         int max         meter max. value (length)
  83. ;*         char mchr         character used for meter
  84. ;*         char hlattr         attribute for highlighted characters
  85. ;*         char nattr         attribute for normal characters
  86. ;*
  87. ;\***************************************************************************/
  88.  
  89. GLOBAL    vgaDrawMeter : FAR
  90.