ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/oct.h
Revision: 1.12
Committed: Sat Oct 9 16:36:31 2004 UTC (19 years, 8 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.11: +4 -5 lines
Log Message:
*** empty log message ***

File Contents

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