JunkBox_Lib 1.10.1
Loading...
Searching...
No Matches
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
14void local2world(WSGraph gd, WSGraph vp, vector ox, vector oz, vector ex, double* csf, double* snf);
15void topola(vector nv, double* cst, double* snt, double* csf, double* snf);
16void set_around(WSGraph vp, int cc);
17
18void bline (BSGraph vp, int xs, int ys, int xe, int ye, int c);
19void bline3d (BSGraph vp, int xs, int ys, int zs, int xe, int ye, int ze, int c);
20
21void line (WSGraph vp, int xs, int ys, int xe, int ye, int c);
22void line3d (WSGraph vp, int xs, int ys, int zs, int xe, int ye, int ze, int c);
23void circle (WSGraph vp, int x, int y, int r, int c, int mode);
24void paint (WSGraph vp, int x, int y, int mn, int mx, int c, int m);
25void paint3d (WSGraph vp, int x, int y, int z, int mn, int mx, int c, int m);
26void _paint_3d(WSGraph vp, int x, int y, int z, int mn, int mx, int c, int m);
27
28void box (WSGraph vp, int xs, int ys, int xe, int ye ,int c, int m);
29void triangle(WSGraph vp, int x1, int y1, int x2, int y2, int x3, int y3, int c, int m);
30
31void circle3d(WSGraph vp, vector a, vector b, int rr, int cc, int mode);
32void sphere (WSGraph vp, vector a, int r, int c, int mode);
33void pool (WSGraph vp, vector a, vector b, int rr, int c);
34void torus (WSGraph vp, vector a, vector b, int rr, int ra, int c);
35
37WSGraph cut_object (WSGraph vp, int cc, IRBound* rb, int blank);
38WSGraph zoom_WSGraph(WSGraph vp, int zm, int mode);
39WSGraph grab_WSGraph(WSGraph vp, int x1, int y1, int x2, int y2);
40void copy_WSGraph(WSGraph src, WSGraph dst);
41
42int get_wdat(WSGraph, double, double, double, IRBound);
43int get_idat(WSGraph, int, int, int);
44void set_wdat(WSGraph, double, double, double, int, IRBound);
45void set_idat(WSGraph, int, int, int, int);
46
47int get_bdat(BSGraph, int, int, int);
48void set_bdat(BSGraph, int, int, int, int);
49
50int 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