home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_06_08 / v6n8046a.txt < prev    next >
Text File  |  1989-09-28  |  1KB  |  39 lines

  1. /* hr_apple2.h - Header file for hr_apple2.lib Apple II graphics library */
  2.  
  3. /* library functions - Note: all return void.  Aztec C II 1.05
  4.                        does not recognize the void typedef */
  5.  
  6. int hr_init();                    /* initiate high resolution display mode */
  7. int hr_quit();                    /* quit high resolution display mode */
  8. int hr_clear();                    /* clear a display page and fill with color */
  9. int hr_pixel();                    /* set color of a pixel */
  10.  
  11. /* Apple II soft switch addresses */
  12.  
  13. #define    HR_ON        49239        /* enable hi res display mode */
  14. #define HR_OFF        49238        /* disable hi res display mode */
  15. #define HR_TXTON    49233        /* enable text display mode */
  16. #define HR_TXTOFF    49232        /* disable text display mode */
  17.  
  18. /* hi res page addresses */
  19.  
  20. #define HR_PG1BGN    8192        /* starting address of page 1 */
  21. #define HR_PG1END    16383        /* ending address of page 1 */
  22.  
  23. /* constants for hi res display size */
  24.  
  25. #define HR_ROWS        192            /* heigth in rows */
  26. #define HR_COLS        280            /* width in columns */
  27. #define HR_PPB        7            /* pixels per byte */
  28. #define HR_BPR        40            /* bytes per row */
  29.  
  30. /* constants for hi res colors */
  31.  
  32. #define HR_BLACK    0
  33. #define HR_PURPLE    1
  34. #define HR_BLUE        2
  35. #define HR_GREEN    3
  36. #define HR_ORANGE    4
  37. #define HR_WHITE    5
  38.  
  39.