… | |
… | |
66 | } |
66 | } |
67 | |
67 | |
68 | void view::begin () |
68 | void view::begin () |
69 | { |
69 | { |
70 | vismap.clear (); |
70 | vismap.clear (); |
|
|
71 | vislist.clear (); |
71 | |
72 | |
72 | generation++; |
73 | generation++; |
73 | |
74 | |
74 | reset_projection (); |
75 | reset_projection (); |
75 | |
76 | |
76 | // check occlusion queries here |
77 | // check occlusion queries here |
|
|
78 | for (vector<octant *>::iterator i = checklist.begin (); i != checklist.end (); ++i) |
|
|
79 | printf ("%p %d\n", *i, occ_query_result ((*i)->occ_query)); |
|
|
80 | |
77 | checklist.clear (); |
81 | checklist.clear (); |
78 | |
82 | |
79 | world.detect_visibility (*this); |
83 | world.detect_visibility (*this); |
80 | } |
84 | } |
81 | |
85 | |
… | |
… | |
101 | //cgGLDisableProfile (CG_PROFILE_ARBVP1); |
105 | //cgGLDisableProfile (CG_PROFILE_ARBVP1); |
102 | cgGLDisableProfile (CG_PROFILE_ARBFP1); |
106 | cgGLDisableProfile (CG_PROFILE_ARBFP1); |
103 | } |
107 | } |
104 | else |
108 | else |
105 | { |
109 | { |
|
|
110 | #if 0 |
106 | glEnable (GL_MINMAX); |
111 | glEnable (GL_MINMAX); |
|
|
112 | #endif |
107 | glDisable (GL_POLYGON_OFFSET_FILL); |
113 | glDisable (GL_POLYGON_OFFSET_FILL); |
108 | glDepthFunc (GL_LESS); |
114 | glDepthFunc (GL_LESS); |
109 | glDepthMask (0); |
115 | glDepthMask (0); |
110 | cgGLEnableProfile (CG_PROFILE_ARBVP1); |
116 | cgGLEnableProfile (CG_PROFILE_ARBVP1); |
111 | cgGLEnableProfile (CG_PROFILE_ARBFP1); |
117 | cgGLEnableProfile (CG_PROFILE_ARBFP1); |