ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/oct.h
Revision: 1.7
Committed: Tue Oct 5 02:17:57 2004 UTC (19 years, 8 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: knowngood, old_matrix
Changes since 1.6: +1 -0 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    
10 root 1.1 struct entity_base;
11    
12 root 1.2 struct octant : protected vector<entity_base *> {
13 root 1.1 struct octant *parent;
14 root 1.3 /* front 23 back 67
15     * 01 45 */
16 root 1.1 struct octant *sub[8];
17 root 1.2 int fill;
18 root 1.3 sector orig;
19     uoffs extent;
20 root 1.6 GLuint occ_query;
21 root 1.1
22 root 1.5 void add (entity_base *e);
23 root 1.1 void remove (entity_base *e);
24    
25 root 1.7 void detect_visibility (draw_context &ctx);
26 root 1.4 void draw (draw_context &ctx);
27 root 1.2
28 root 1.6 octant (octant *parent, const sector &orig, uoffs extent);
29 root 1.1 ~octant ();
30     };
31    
32 root 1.2 extern octant world;
33    
34 root 1.1 #endif
35 root 1.2
36