JunkBox_Lib
1.10.1
Loading...
Searching...
No Matches
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
35
ShapeIndex
*
read_shape_index_file
(FILE* fp);
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
gio.h
グラフィック用ファイル入出力関数ヘッダ
graph.h
2D & 3D グラフィックライブラリ ヘッダ
read_shape_main_file
BSGraph * read_shape_main_file(ShapeIndex *idx, BSGraph *mp, vector og, vector dd, FILE *fp)
Definition
shape_file.c:62
read_shape_index_file
ShapeIndex * read_shape_index_file(FILE *fp)
Definition
shape_file.c:11
draw_shape_polygon
void draw_shape_polygon(ShapeIndex *idx, BSGraph *mp, vector og, vector dd, int cc, FILE *fp)
Definition
shape_file.c:138
BSGraph
Definition
gdata.h:27
ShapeIndex
Definition
shape_file.h:24
ShapeIndex::size
int size
Definition
shape_file.h:27
ShapeIndex::maxnum
int maxnum
Definition
shape_file.h:29
ShapeIndex::datanum
int datanum
Definition
shape_file.h:25
ShapeIndex::type
int type
Definition
shape_file.h:28
ShapeIndex::offset
int offset
Definition
shape_file.h:26
vector
Definition
matrix.h:29
gLib
shape_file.h
Generated on Sat Oct 12 2024 19:31:03 for JunkBox_Lib by
1.11.0