JunkBox_Lib  1.10.2
shape_file.h
Go to the documentation of this file.
1 #ifndef __JBL_SHAPE_FILE_H_
2 #define __JBL_SHAPE_FILE_H_
3 
10 #include "gio.h"
11 #include "graph.h"
12 
13 //#include "jpeg_tool.h"
14 
15 #define SHAPE_TYPE_NULL_SHAPE 0
16 #define SHAPE_TYPE_POINT 1
17 #define SHAPE_TYPE_POLY_LINE 3
18 #define SHAPE_TYPE_POLYGON 5
19 #define SHAPE_TYPE_MULTI_POINT 8
20 #define SHAPE_TYPE_POINTZ 11
21 #define SHAPE_TYPE_MULTI_PATCH 31
22 
23 
24 typedef struct {
25  int datanum;
26  int offset;
27  int size;
28  int type;
29  int maxnum;
30 } ShapeIndex;
31 
32 
34 
36 BSGraph* read_shape_main_file(ShapeIndex* idx, BSGraph* mp, vector og, vector dd, FILE* fp);
37 
38 void draw_shape_polygon(ShapeIndex* idx, BSGraph* mp, vector og, vector dd, int cc, FILE* fp);
39 
40 
41 #endif
42 
43 
グラフィック用ファイル入出力関数ヘッダ
2D & 3D グラフィックライブラリ ヘッダ
void draw_shape_polygon(ShapeIndex *idx, BSGraph *mp, vector og, vector dd, int cc, FILE *fp)
Definition: shape_file.c:138
ShapeIndex * read_shape_index_file(FILE *fp)
Definition: shape_file.c:11
BSGraph * read_shape_main_file(ShapeIndex *idx, BSGraph *mp, vector og, vector dd, FILE *fp)
Definition: shape_file.c:62
Definition: gdata.h:27
int maxnum
Definition: shape_file.h:29
int datanum
Definition: shape_file.h:25
int offset
Definition: shape_file.h:26
Definition: matrix.h:29