ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/oct.h
(Generate patch)

Comparing libgender/oct.h (file contents):
Revision 1.14 by root, Sun Oct 10 14:15:15 2004 UTC vs.
Revision 1.15 by root, Sat Oct 16 12:33:46 2004 UTC

6using namespace std; 6using namespace std;
7 7
8#include "util.h" 8#include "util.h"
9#include "view.h" 9#include "view.h"
10 10
11struct octant : vector<entity *>, recv_occ_query 11struct octant : vector<entity *>, recv_occ_query, 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];
19 uoffs extent; 19 uoffs extent;
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 void detect_visibility (view &ctx); 24 bool detect_visibility (view &ctx); // is this octant actually visible?
25 void display (view &ctx); 25 void display (view &ctx);
26 void draw_bbox (view &ctx); 26 void draw_bbox (view &ctx);
27 27
28 void event (occ_query &ev); 28 void event (occ_query &ev);
29 visibility_base *new_visibility ();
30 void clear_visibility (visibility_base *vs);
29 31
30 octant (octant *parent, const sector &orig, uoffs extent); 32 octant (octant *parent, const sector &orig, uoffs extent);
31 ~octant (); 33 ~octant ();
32}; 34};
33 35

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines