home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 373.lha / route_v1.0 / src / bitblt.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-25  |  1.3 KB  |  35 lines

  1. #include "cell.h"
  2.  
  3. #define ZOOM0    3    /* 3x3 pixels per cell        */
  4. #define ZOOM1    6    /* 6x6 pixels per cell        */
  5. #define ZOOM2    10    /* 10x10 pixels per cell    */
  6. #define ZOOM3    18    /* 18x18 pixels per cell    */
  7.  
  8. /*
  9. ** the templates assume the pixels on your screen have a 1:1 aspect ratio. for
  10. ** almost all screens, this is not true. therefore, the screen view will be
  11. ** slightly distorted (things will look like they are stretched top to bottom,
  12. ** or squashed side to side). if you really want things to look like reality,
  13. ** you could change the dimensions of the templates. for example, if your
  14. ** screen has a 2:1 aspect ratio (most are more like 1.4:1), use a [3][6]
  15. ** template instead of a [3][3] one. as long as you keep this in mind while
  16. ** viewing the results, it's probably not worth the effort.
  17. */
  18.  
  19. struct templates { /* group the bit templates for an object */
  20.     long t;                /* the object type */
  21.     struct Image im[4];    /* tiny, small, medium, large zoom templates */
  22. };
  23.  
  24. /* these got too big to keep in one file, so i moved them to include files */
  25.  
  26. #include "bitblt1.h"
  27.  
  28. #include "bitblt2.h"
  29.  
  30. #include "bitblt3.h"
  31.  
  32. int z1 = sizeof(y1)/sizeof(y1[0]);  /* number of hole types        */
  33. int z2 = sizeof(y2)/sizeof(y2[0]);  /* number of hole-related types    */
  34. int z3 = sizeof(y3)/sizeof(y3[0]);  /* number of non-hole-related types    */
  35.