1 |
/* |
2 |
* rayshade interface |
3 |
*/ |
4 |
|
5 |
#ifndef RAY_INT_H |
6 |
#define RAY_INT_H |
7 |
|
8 |
#include "interface.h" |
9 |
#include "attr.h" |
10 |
#include "matrix.h" |
11 |
|
12 |
using namespace std; |
13 |
|
14 |
class ray_int : public gfx_int { |
15 |
ostream &o; |
16 |
|
17 |
vec diffuse; |
18 |
vec color; |
19 |
double width; |
20 |
|
21 |
double x1, y1, z1, x2, y2, z2; |
22 |
|
23 |
void clip (const vec &v) t_no; |
24 |
void check_attrs (const attribute_set &attr) t_err; |
25 |
public: |
26 |
ray_int (ostream &out) t_no; |
27 |
~ray_int () t_no; |
28 |
|
29 |
void begin_fig () t_no; |
30 |
void end_fig () t_no; |
31 |
|
32 |
void segment (const point &a, const point &b) t_err; |
33 |
void object (const points &v) t_err; |
34 |
}; |
35 |
|
36 |
#endif |