home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 3 / FREEWARE.BIN / towns_os / whisper / source / graphic.h < prev    next >
Text File  |  1980-01-02  |  1KB  |  41 lines

  1. #define    CHR_COL    15
  2. #define    BAK_COL    8
  3.  
  4. #define    PAGE0    0x00000
  5. #define    PAGE1    0x40000
  6.  
  7. typedef struct {
  8.     char        *ptn;
  9.     short int   sel;
  10.     short int   x1,y1;
  11.     short int   x2,y2;
  12.     char        img[1];
  13. } BLOCK;
  14.  
  15. extern int    page_ofs;
  16. extern char    work[];
  17. extern char    mwork[];
  18. extern char    swork[];
  19. extern int    col_cnv[];
  20.  
  21. void    DSP_writePage(int page);
  22. void    DSP_mos(int no);
  23. BLOCK    *DSP_push_vram(int x1,int y1,int x2,int y2);
  24. void    DSP_pop_vram(BLOCK *para);
  25. void    DSP_msg(char *str,int x,int y,int font,int forcol,int bakcol);
  26. void    DSP_line(int x1,int y1,int x2,int y2,int col,int mod);
  27. void    DSP_xline(int x1,int y1,int x2,int y2,int col,int mod);
  28. void    DSP_box(int x1,int y1,int x2,int y2,int forcol,int boxcol);
  29. void    DSP_rbox(int x1,int y1,int x2,int y2,int forcol,int bakcol,int boxcol);
  30. void    DSP_putptn(char *ptn,int x,int y,int col,int md);
  31. void    DSP_init(void);
  32. void    DSP_reinit(void);
  33. void    DSP_end(void);
  34.  
  35. void    ctblset(int chr,int bak);
  36. void    putstr(int adr,char *str);
  37. void    wrtstr(char *str,int page,int adr,int ccol,int bcol,int font);
  38.  
  39. #define    DSP_string(str,x,y,c,b)    wrtstr(str,page_ofs,(x)/2+(y)*512,col_cnv[c],col_cnv[b],8)
  40.  
  41.