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

Comparing libgender/oct.h (file contents):
Revision 1.8 by root, Wed Oct 6 00:55:37 2004 UTC vs.
Revision 1.12 by root, Sat Oct 9 16:36:31 2004 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines