-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscribe.h
executable file
·50 lines (30 loc) · 1.01 KB
/
scribe.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* writer.h
* Nathan W Brei
* 6.087 Final Project: image2dxf
* 26 January 2010
*/
/* Header file for scribe.c */
#ifndef SCRIBE_H_
#define SCRIBE_H_
extern FILE* fout; /* The output file */
/* void dxf_start (char* filename)
Open the output file, and write the initial header data. This is
supposed to be data such as units, line colors, etc. However, we
don't either don't have any of that information, or don't care, so
long as our file is readable by most CAD software.
*/
void dxf_start (char* filename);
/* void dxf_end (void)
Write any remaining DXF nonsense, and close file.
*/
void dxf_end (void);
/* void dxf_point (float x, float y)
Write the data for a point to our DXF file. This is pretty intuitive.
*/
void dxf_point (float x, float y);
/* void dxf_line (float x1, float y1, float x2, float y2)
Write the data for a line to our DXF file. This is pretty intuitive.
*/
void dxf_line (float x1, float y1, float x2, float y2);
void dxf_face (void);
#endif /* SCRIBE_H_ */