graphics.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* $Id$
  2. * MegaZeux
  3. *
  4. * Copyright (C) 1996 Greg Janson
  5. * Copyright (C) 1998 Matthew D. Williams - dbwilli@scsn.net
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. */
  21. /* GRAPHICS.H- Declarations for GRAPHICS.ASM */
  22. #ifndef __GRAPHICS_H
  23. #define __GRAPHICS_H
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. //Note- NONE of these functions preserve the mouse cursor
  28. void color_string(char far *string,int x_start,int y_start,
  29. unsigned char color,unsigned int segment);
  30. void write_string(char far *string,int x_start,int y_start,
  31. unsigned char color,unsigned int segment,char taballowed=1);
  32. void write_line(char far *string,int x_start,int y_start,
  33. unsigned char color,unsigned int segment,char taballowed=1);
  34. void color_line(int length,int x_start,int y_start,unsigned char color,
  35. unsigned int segment);
  36. void fill_line(int length,int x_start,int y_start,unsigned int char_col,
  37. unsigned int segment);
  38. void draw_char(int chr,int color,int x_pos,int y_pos,unsigned int segment);
  39. void clear_screen(int with,unsigned int segment);
  40. void page_flip(unsigned int page);
  41. /* Page segments-
  42. 0 is at segment 0xB800
  43. 1 is at segment 0xB900
  44. 2 is at segment 0xBA00
  45. 3 is at segment 0xBB00 */
  46. #ifdef __cplusplus
  47. }
  48. #endif
  49. #endif