home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Acorn User 10
/
AU_CD10.iso
/
Archived
/
Updates
/
Flash
/
writeflash
/
!MakeFlash
/
c
/
readdraw
< prev
next >
Wrap
Text File
|
2000-04-21
|
770b
|
38 lines
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
// this file will eventually allow Drawfiles to be #include'd in scripts
#define MAXSTYLES 255
#define LINESTYLE_WIDTH 0
#define LINESTYLE_COLOUR 1
U32 linestyles[MAXSTYLES][2];
U32 fillstyles[MAXSTYLES];
int fillstylecount, linestylecount;
int currentfillstyle0, currentfillstyle1, currentlinestyle;
S32 addx, addy;
int convert_draw(char *filename, U16 id, int center, (int)insertline(char *)) {
char *drawfile;
FILE *fh;
fillstylecount = linestylecount = 0;
currentfillstyle0 = currentfillstyle1 = currentlinestyle = 0;
fh = fopen(filename, "rb");
if (!fh) {
fprintf(stderr, "Failed to open '%s'\n", filename);
return 1;
}
// read/convert Drawfile
return 0;
}