ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/oct.h
Revision: 1.6
Committed: Mon Oct 4 07:04:58 2004 UTC (19 years, 8 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.5: +2 -1 lines
Log Message:
*** empty log message ***

File Contents

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