… | |
… | |
141 | struct entity : geometry_filter |
141 | struct entity : geometry_filter |
142 | { |
142 | { |
143 | sector orig; |
143 | sector orig; |
144 | point p; |
144 | point p; |
145 | sector a, b; // bounding box corners |
145 | sector a, b; // bounding box corners |
|
|
146 | gl::vertex_buffer_object vb_bbox; |
146 | |
147 | |
147 | vector<octant *> o; |
148 | vector<octant *> o; |
148 | |
149 | |
149 | void update (); |
150 | void update (); |
150 | void draw (view &ctx); |
151 | void draw (view &ctx); |
151 | |
152 | |
152 | void move (const vec3 &v); |
153 | void move (const vec3 &v); |
153 | |
154 | |
154 | virtual void show (); |
155 | virtual void show (); |
155 | virtual void hide (); |
156 | virtual void hide (); |
156 | void display (view &ctx); |
|
|
157 | |
157 | |
158 | entity (geometry *g = 0); |
158 | entity (geometry *g = 0); |
159 | ~entity (); |
159 | ~entity (); |
160 | }; |
160 | }; |
161 | |
161 | |