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

Comparing libgender/oct.C (file contents):
Revision 1.88 by root, Tue Mar 1 22:25:58 2005 UTC vs.
Revision 1.89 by root, Mon Jul 18 01:40:01 2005 UTC

6#include "opengl.h" 6#include "opengl.h"
7 7
8#include "oct.h" 8#include "oct.h"
9#include "view.h" 9#include "view.h"
10#include "entity.h" 10#include "entity.h"
11#include "material.h" //DEBUG
11 12
12enum visibility_state { FULL, PARTIAL, OCCLUDED }; 13enum visibility_state { FULL, PARTIAL, OCCLUDED };
13 14
14struct evis { 15struct evis {
15 entity *e; 16 entity *e;
318 oct_visibility &vs = *(oct_visibility *)get_visibility (ctx); 319 oct_visibility &vs = *(oct_visibility *)get_visibility (ctx);
319 320
320#if 1 321#if 1
321 if (vs.state == PARTIAL || vs.state == OCCLUDED) 322 if (vs.state == PARTIAL || vs.state == OCCLUDED)
322 { 323 {
323 if (orig.z + extent < -10000000) { 324 if (1 || orig.z + extent < -10000000) {
324 sector s = orig - ctx.orig; 325 sector s = orig - ctx.orig;
326 debugmat->enable (ctx);
325 gl::draw_bbox (s - extent, s + extent); 327 gl::draw_bbox (s - extent, s + extent);
328 debugmat->disable (ctx);
326 //printf ("DLP %ld %ld %ld (%ld)\n", orig.x, orig.y, orig.z, extent);//D 329 //printf ("DLP %ld %ld %ld (%ld)\n", orig.x, orig.y, orig.z, extent);//D
327 } 330 }
328 } 331 }
329#endif 332#endif
330 333

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines