JunkBox_Lib  1.10.2
graph.h
Go to the documentation of this file.
1 #ifndef __JBXL_GRAPHIC_HEADER_
2 #define __JBXL_GRAPHIC_HEADER_
3 
11 #include "gdata.h"
12 
13 
14 void local2world(WSGraph gd, WSGraph vp, vector ox, vector oz, vector ex, double* csf, double* snf);
15 void topola(vector nv, double* cst, double* snt, double* csf, double* snf);
16 void set_around(WSGraph vp, int cc);
17 
18 void bline (BSGraph vp, int xs, int ys, int xe, int ye, int c);
19 void bline3d (BSGraph vp, int xs, int ys, int zs, int xe, int ye, int ze, int c);
20 
21 void line (WSGraph vp, int xs, int ys, int xe, int ye, int c);
22 void line3d (WSGraph vp, int xs, int ys, int zs, int xe, int ye, int ze, int c);
23 void circle (WSGraph vp, int x, int y, int r, int c, int mode);
24 void paint (WSGraph vp, int x, int y, int mn, int mx, int c, int m);
25 void paint3d (WSGraph vp, int x, int y, int z, int mn, int mx, int c, int m);
26 void _paint_3d(WSGraph vp, int x, int y, int z, int mn, int mx, int c, int m);
27 
28 void box (WSGraph vp, int xs, int ys, int xe, int ye ,int c, int m);
29 void triangle(WSGraph vp, int x1, int y1, int x2, int y2, int x3, int y3, int c, int m);
30 
31 void circle3d(WSGraph vp, vector a, vector b, int rr, int cc, int mode);
32 void sphere (WSGraph vp, vector a, int r, int c, int mode);
33 void pool (WSGraph vp, vector a, vector b, int rr, int c);
34 void torus (WSGraph vp, vector a, vector b, int rr, int ra, int c);
35 
37 WSGraph cut_object (WSGraph vp, int cc, IRBound* rb, int blank);
38 WSGraph zoom_WSGraph(WSGraph vp, int zm, int mode);
39 WSGraph grab_WSGraph(WSGraph vp, int x1, int y1, int x2, int y2);
40 void copy_WSGraph(WSGraph src, WSGraph dst);
41 
42 int get_wdat(WSGraph, double, double, double, IRBound);
43 int get_idat(WSGraph, int, int, int);
44 void set_wdat(WSGraph, double, double, double, int, IRBound);
45 void set_idat(WSGraph, int, int, int, int);
46 
47 int get_bdat(BSGraph, int, int, int);
48 void set_bdat(BSGraph, int, int, int, int);
49 
50 int isinctri(int x1, int y1, int x2, int y2, int x3, int y3, int xx, int yy);
51 
52 #define set_around_space(vp) set_around((vp), 0)
53 
54 
72 #define SetPixel(vp, x, y, cc) set_idat((vp), (x), (y), 0, (cc))
73 
74 
92 #define GetPixel(vp, x, y) get_idat((vp), (x), (y), 0)
93 
94 
104 #define isCrossLine(x1, y1, x2, y2, x3, y3, x4, y4) (((x1)-(x2))*((y3)-(y1))+((y1)-(y2))*((x1)-(x3)))*(((x1)-(x2))*((y4)-(y1))+((y1)-(y2))*((x1)-(x4)))
105 
106 
107 #endif // __JBXL_GRAPHIC_HEADER_
108 
グラフィックデータ定義用ヘッダ
void triangle(WSGraph vp, int x1, int y1, int x2, int y2, int x3, int y3, int c, int m)
Definition: graph.c:522
void circle3d(WSGraph vp, vector a, vector b, int rr, int cc, int mode)
Definition: graph.c:896
void box(WSGraph vp, int xs, int ys, int xe, int ye, int c, int m)
Definition: graph.c:589
void torus(WSGraph vp, vector a, vector b, int rr, int ra, int c)
Definition: graph.c:962
void set_around(WSGraph vp, int cc)
Definition: graph.c:1215
WSGraph grab_WSGraph(WSGraph vp, int x1, int y1, int x2, int y2)
Definition: graph.c:1311
WSGraph cut_object(WSGraph vp, int cc, IRBound *rb, int blank)
Definition: graph.c:1150
void set_idat(WSGraph, int, int, int, int)
Definition: graph.c:96
WSGraph zoom_WSGraph(WSGraph vp, int zm, int mode)
Definition: graph.c:1245
void local2world(WSGraph gd, WSGraph vp, vector ox, vector oz, vector ex, double *csf, double *snf)
Definition: graph.c:189
void circle(WSGraph vp, int x, int y, int r, int c, int mode)
Definition: graph.c:794
void paint3d(WSGraph vp, int x, int y, int z, int mn, int mx, int c, int m)
Definition: graph.c:334
void sphere(WSGraph vp, vector a, int r, int c, int mode)
Definition: graph.c:1008
void bline3d(BSGraph vp, int xs, int ys, int zs, int xe, int ye, int ze, int c)
Definition: graph.c:613
int get_wdat(WSGraph, double, double, double, IRBound)
Definition: graph.c:46
void pool(WSGraph vp, vector a, vector b, int rr, int c)
Definition: graph.c:924
void line(WSGraph vp, int xs, int ys, int xe, int ye, int c)
Definition: graph.c:462
void set_bdat(BSGraph, int, int, int, int)
Definition: graph.c:166
int get_idat(WSGraph, int, int, int)
Definition: graph.c:23
void set_wdat(WSGraph, double, double, double, int, IRBound)
Definition: graph.c:117
void copy_WSGraph(WSGraph src, WSGraph dst)
Definition: graph.c:1352
int isinctri(int x1, int y1, int x2, int y2, int x3, int y3, int xx, int yy)
Definition: graph.c:559
void bline(BSGraph vp, int xs, int ys, int xe, int ye, int c)
Definition: graph.c:404
void topola(vector nv, double *cst, double *snt, double *csf, double *snf)
Definition: graph.c:1111
void line3d(WSGraph vp, int xs, int ys, int zs, int xe, int ye, int ze, int c)
Definition: graph.c:703
WSGraph x_reverse_wsg(WSGraph vp)
Definition: graph.c:1075
void paint(WSGraph vp, int x, int y, int mn, int mx, int c, int m)
Definition: graph.c:247
void _paint_3d(WSGraph vp, int x, int y, int z, int mn, int mx, int c, int m)
Definition: graph.c:350
int get_bdat(BSGraph, int, int, int)
Definition: graph.c:75
Definition: gdata.h:27
Definition: gdata.h:113
Definition: gdata.h:42
Definition: matrix.h:29