home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 10 / AU_CD10.iso / Archived / Updates / Flash / writeflash / !MakeFlash / c / readdraw < prev    next >
Text File  |  2000-04-21  |  770b  |  38 lines

  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <stdlib.h>
  4.  
  5. // this file will eventually allow Drawfiles to be #include'd in scripts
  6.  
  7. #define MAXSTYLES   255
  8.  
  9. #define LINESTYLE_WIDTH       0
  10. #define LINESTYLE_COLOUR      1
  11.  
  12. U32 linestyles[MAXSTYLES][2];
  13. U32 fillstyles[MAXSTYLES];
  14.  
  15. int fillstylecount, linestylecount;
  16. int currentfillstyle0, currentfillstyle1, currentlinestyle;
  17. S32 addx, addy;
  18.  
  19.  
  20. int convert_draw(char *filename, U16 id, int center, (int)insertline(char *)) {
  21.  
  22.   char *drawfile;
  23.   FILE *fh;
  24.  
  25.   fillstylecount = linestylecount = 0;
  26.   currentfillstyle0 = currentfillstyle1 = currentlinestyle = 0;
  27.  
  28.   fh = fopen(filename, "rb");
  29.   if (!fh) {
  30.     fprintf(stderr, "Failed to open '%s'\n", filename);
  31.     return 1;
  32.   }
  33.  
  34. // read/convert Drawfile
  35.  
  36.   return 0;
  37. }
  38.