… | |
… | |
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]; |
17 | int fill; |
17 | int fill; |
18 | sector orig; |
18 | sector orig; // center |
19 | uoffs extent; |
19 | uoffs extent; // half the edge size, "radius" |
20 | |
20 | |
21 | void add (entity *e); |
21 | void add (entity *e); |
22 | void remove (entity *e); |
22 | void remove (entity *e); |
23 | |
23 | |
24 | bool detect_visibility (view &ctx); // is this octant actually visible? |
24 | bool detect_visibility (view &ctx); // is this octant actually visible? |
|
|
25 | |
|
|
26 | void draw_depth (view &ctx); |
25 | void display (view &ctx); |
27 | void draw_postdepth (view &ctx); |
|
|
28 | void draw_lighted (view &ctx); |
26 | |
29 | |
27 | void event (occ_query &ev); |
30 | void event (occ_query &ev); |
28 | visibility_base *new_visibility (); |
31 | visibility_base *new_visibility (); |
29 | void clear_visibility (visibility_base *vs); |
32 | void clear_visibility (visibility_base *vs); |
30 | |
33 | |