… | |
… | |
6 | using namespace std; |
6 | using namespace std; |
7 | |
7 | |
8 | #include "util.h" |
8 | #include "util.h" |
9 | #include "view.h" |
9 | #include "view.h" |
10 | |
10 | |
11 | struct octant : vector<entity *>, recv_occ_query, visible |
11 | struct octant : vector<entity *>, visible |
12 | { |
12 | { |
13 | struct octant *parent; |
13 | struct octant *parent; |
14 | /* front 23 back 67 |
14 | /* front 23 back 67 |
15 | * 01 45 */ |
15 | * 01 45 */ |
16 | struct octant *sub[8]; |
16 | struct octant *sub[8]; |
… | |
… | |
25 | |
25 | |
26 | void draw_depth (view &ctx); |
26 | void draw_depth (view &ctx); |
27 | void draw_postdepth (view &ctx); |
27 | void draw_postdepth (view &ctx); |
28 | void draw_lighted (view &ctx); |
28 | void draw_lighted (view &ctx); |
29 | |
29 | |
30 | void event (occ_query &ev); |
|
|
31 | visibility_base *new_visibility (); |
30 | visibility_base *new_visibility (); |
32 | void clear_visibility (visibility_base *vs); |
31 | void clear_visibility (visibility_base *vs); |
33 | |
32 | |
34 | octant (octant *parent, const sector &orig, uoffs extent); |
33 | octant (octant *parent, const sector &orig, uoffs extent); |
35 | ~octant (); |
34 | ~octant (); |