home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / grafik / hgraphic / graphics.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-01-20  |  352 b   |  20 lines

  1. #define UP    1
  2. #define DOWN    2
  3. #define LEFT    3
  4. #define RIGHT    4
  5.  
  6. #define OVERWRITE 2
  7. #define WHITE    1
  8. #define BLACK    0
  9. #define XOR    -1
  10.  
  11. #define byte_addr(x,y) (((y)/4)*90 + ((y)&3)*0x2000 + ((x)/8))
  12. #define bit_pos(x)     (1 << (7 - ((x)&7)))
  13. #define bit_num(x)     ((x)&7)
  14.  
  15. struct shape_type {
  16.   int x;
  17.   int y;
  18.   char *shape_array;
  19. };
  20.