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

Comparing libgender/oct.h (file contents):
Revision 1.1 by root, Sat Oct 2 15:54:43 2004 UTC vs.
Revision 1.12 by root, Sat Oct 9 16:36:31 2004 UTC

1#ifndef OCT_H 1#ifndef OCT_H
2#define OCT_H 2#define OCT_H
3 3
4#include <vector>
5
4using namespace std; 6using namespace std;
5 7
6struct entity_base; 8#include "util.h"
9#include "view.h"
7 10
8struct octant { 11struct octant : protected vector<entity *>, public recv_occ_query {
9 struct octant *parent; 12 struct octant *parent;
10 /* front 01 back 45 13 /* front 23 back 67
11 * 23 67 */ 14 * 01 45 */
12 struct octant *sub[8]; 15 struct octant *sub[8];
16 int fill;
17 sector orig;
18 uoffs extent;
13 19
14 void add (entity_base *e); 20 void add (entity *e);
15 void remove (entity_base *e); 21 void remove (entity *e);
16 22
23 void detect_visibility (view &ctx);
24 void display (view &ctx);
25 void draw_bbox (view &ctx);
26
27 void event (occ_query &ev);
28
29 octant (octant *parent, const sector &orig, uoffs extent);
17 ~octant (); 30 ~octant ();
18}; 31};
19 32
33extern octant world;
34
20#endif 35#endif
36
37

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines